Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001373/0.001373, allocations: 101.8 kB / 16.5 MB, free: 6.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001247/0.001247, allocations: 195.1 kB / 17.42 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.418/1.418, allocations: 222.9 MB / 241.1 MB, free: 15.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001208/0.001208, allocations: 43.88 kB / 300.1 MB, free: 6.176 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1754/0.1766, allocations: 49.45 MB / 349.5 MB, free: 4.719 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter): time 0.007327/0.184, allocations: 3.391 MB / 352.9 MB, free: 1.301 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001686/0.1857, allocations: 0.7987 MB / 353.7 MB, free: 0.5 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002145/0.186, allocations: 4 kB / 353.7 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002696/0.1863, allocations: 51.61 kB / 353.8 MB, free: 456 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002389/0.1866, allocations: 107.2 kB / 353.9 MB, free: 348 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003851/0.187, allocations: 119.8 kB / 354 MB, free: 228 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005806/0.1876, allocations: 466 kB / 354.4 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003739/0.1879, allocations: 153.4 kB / 354.6 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002717/0.1882, allocations: 171.3 kB / 354.8 MB, free: 15.44 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00026/0.1885, allocations: 187.1 kB / 354.9 MB, free: 15.26 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.008e-05/0.1886, allocations: 28 kB / 355 MB, free: 15.23 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.01e-05/0.1886, allocations: 24 kB / 355 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.689e-05/0.1888, allocations: 71.75 kB / 355.1 MB, free: 15.14 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002358/0.189, allocations: 198.9 kB / 355.3 MB, free: 14.94 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006192/0.1896, allocations: 0.5453 MB / 355.8 MB, free: 14.39 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.816e-06/0.1896, allocations: 4 kB / 355.8 MB, free: 14.39 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.345e-06/0.1896, allocations: 0 / 355.8 MB, free: 14.39 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.588e-06/0.1897, allocations: 0 / 355.8 MB, free: 14.39 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 87 * Number of variables: 87 Notification: Performance of Generate backend data structure: time 0.001529/0.1912, allocations: 0.6902 MB / 356.5 MB, free: 13.65 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.362e-05/0.1913, allocations: 12.03 kB / 356.5 MB, free: 13.64 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001186/0.1914, allocations: 70.72 kB / 356.6 MB, free: 13.56 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000107/0.1915, allocations: 48.41 kB / 356.6 MB, free: 13.52 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005257/0.1921, allocations: 316.6 kB / 356.9 MB, free: 13.16 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.658e-05/0.1921, allocations: 25.38 kB / 357 MB, free: 13.14 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.723e-05/0.1922, allocations: 39.94 kB / 357 MB, free: 13.1 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008433/0.193, allocations: 382.2 kB / 357.4 MB, free: 12.72 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.261e-05/0.1931, allocations: 7.984 kB / 357.4 MB, free: 12.71 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.782e-05/0.1931, allocations: 12 kB / 357.4 MB, free: 12.7 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.018e-05/0.1932, allocations: 15.94 kB / 357.4 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007149/0.1939, allocations: 303.8 kB / 357.7 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002647/0.1965, allocations: 1.451 MB / 359.2 MB, free: 10.84 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006862/0.1972, allocations: 238.7 kB / 359.4 MB, free: 10.6 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002419/0.1975, allocations: 100.8 kB / 359.5 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.996e-05/0.1975, allocations: 4 kB / 359.5 MB, free: 10.49 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.423e-05/0.1976, allocations: 30.56 kB / 359.5 MB, free: 10.45 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.172e-06/0.1976, allocations: 0 / 359.5 MB, free: 10.45 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.002395/0.2, allocations: 0.7582 MB / 360.3 MB, free: 9.648 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.898e-05/0.2001, allocations: 63.28 kB / 360.3 MB, free: 9.574 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000414/0.2005, allocations: 303.4 kB / 360.6 MB, free: 9.27 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.862e-05/0.2005, allocations: 33.7 kB / 360.7 MB, free: 9.23 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002178/0.2008, allocations: 231.6 kB / 360.9 MB, free: 8.996 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.567e-05/0.2008, allocations: 59.19 kB / 361 MB, free: 8.938 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.641e-05/0.2009, allocations: 49.61 kB / 361 MB, free: 8.883 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002021/0.2011, allocations: 338.8 kB / 361.3 MB, free: 8.543 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000239/0.2014, allocations: 79.95 kB / 361.4 MB, free: 8.465 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002818/0.2017, allocations: 165.4 kB / 361.6 MB, free: 8.27 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000489/0.2022, allocations: 245.2 kB / 361.8 MB, free: 7.996 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.2022, allocations: 0 / 361.8 MB, free: 7.996 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009846/0.2032, allocations: 429.6 kB / 362.2 MB, free: 7.566 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.501e-05/0.2032, allocations: 4 kB / 362.2 MB, free: 7.562 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/0.2032, allocations: 4 kB / 362.2 MB, free: 7.559 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005051/0.2038, allocations: 121.6 kB / 362.4 MB, free: 7.434 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001601/0.2039, allocations: 31.98 kB / 362.4 MB, free: 7.402 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004292/0.2082, allocations: 3.267 MB / 365.7 MB, free: 3.871 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002423/0.2085, allocations: 35.67 kB / 365.7 MB, free: 3.836 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.556e-05/0.2085, allocations: 11.94 kB / 365.7 MB, free: 3.824 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0002354/0.2088, allocations: 161.8 kB / 365.9 MB, free: 3.656 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.194e-05/0.2088, allocations: 31.61 kB / 365.9 MB, free: 3.625 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.556e-05/0.2089, allocations: 34.36 kB / 365.9 MB, free: 3.59 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.987e-06/0.2089, allocations: 7.938 kB / 365.9 MB, free: 3.582 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.2089, allocations: 0 / 365.9 MB, free: 3.582 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.643e-06/0.209, allocations: 3.984 kB / 365.9 MB, free: 3.578 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004629/0.2094, allocations: 369.3 kB / 366.3 MB, free: 3.168 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.2094, allocations: 0 / 366.3 MB, free: 3.168 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.092e-05/0.2095, allocations: 15.92 kB / 366.3 MB, free: 3.152 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003702/0.2099, allocations: 113.6 kB / 366.4 MB, free: 3.035 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.648e-05/0.2099, allocations: 0 / 366.4 MB, free: 3.035 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3338/0.5438, allocations: 3.165 MB / 369.6 MB, free: 24.37 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.861e-06/0.5438, allocations: 0.5156 kB / 369.6 MB, free: 24.37 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001339/0.5452, allocations: 434.4 kB / 370 MB, free: 24.23 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001931/0.5454, allocations: 106 kB / 370.1 MB, free: 24.13 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.653e-05/0.5455, allocations: 10.81 kB / 370.1 MB, free: 24.13 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002982/0.5458, allocations: 27.7 kB / 370.2 MB, free: 24.13 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.834e-05/0.5459, allocations: 11.31 kB / 370.2 MB, free: 24.13 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.018e-05/0.546, allocations: 11.12 kB / 370.2 MB, free: 24.13 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004403/0.5464, allocations: 220.5 kB / 370.4 MB, free: 24.05 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5464, allocations: 0.5312 kB / 370.4 MB, free: 24.05 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008521/0.5473, allocations: 101 kB / 370.5 MB, free: 24.05 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001924/0.5492, allocations: 0.9636 MB / 371.5 MB, free: 23.39 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001907/0.5512, allocations: 0.5096 MB / 372 MB, free: 23.17 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.192e-06/0.5512, allocations: 0 / 372 MB, free: 23.17 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007309/0.5519, allocations: 341.3 kB / 372.3 MB, free: 22.95 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007967/0.5527, allocations: 45.31 kB / 372.3 MB, free: 22.95 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007597/0.5604, allocations: 3.39 MB / 375.7 MB, free: 21.11 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005016/0.5609, allocations: 0.7823 MB / 376.5 MB, free: 20.4 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000207/0.5612, allocations: 25.62 kB / 376.5 MB, free: 20.4 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000174/0.5613, allocations: 104.8 kB / 376.6 MB, free: 20.32 MB / 302.1 MB Notification: Performance of SimCode: time 1.463e-06/0.5614, allocations: 3.828 kB / 376.6 MB, free: 20.32 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02774/0.5891, allocations: 6.631 MB / 383.3 MB, free: 19.14 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002122/0.5894, allocations: 242.5 kB / 383.5 MB, free: 18.89 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.079/2.668, allocations: 7.938 kB / 383.5 MB, free: 18.88 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Subtracter.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Subtracter/Subtracter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches