Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008688/0.0008688, allocations: 76.06 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001158/0.001158, allocations: 149.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8752/0.8752, allocations: 173.4 MB / 200.5 MB, free: 9.418 MB / 186.7 MB " [Timeout remaining time 179] 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.Media.Examples.R134a.R134a2,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_R134a_R134a2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.R134a.R134a2,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_R134a_R134a2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 318.4 MB, free: 6.344 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.543e-05/1.704e-05, allocations: 5.516 kB / 318.4 MB, free: 6.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.R134a.R134a2): time 0.02523/0.02525, allocations: 34.39 MB / 352.8 MB, free: 3.812 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01869/0.04394, allocations: 27.11 MB / 379.9 MB, free: 8.609 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000273/0.04421, allocations: 7.938 kB / 380 MB, free: 8.602 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007157/0.04492, allocations: 389.5 kB / 380.3 MB, free: 8.219 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006871/0.04561, allocations: 0.5473 MB / 380.9 MB, free: 7.668 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008811/0.05442, allocations: 5.356 MB / 386.2 MB, free: 2.293 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009804/0.0554, allocations: 1.374 MB / 387.6 MB, free: 0.9141 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000195/0.0556, allocations: 112 kB / 387.7 MB, free: 0.8047 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005833/0.05618, allocations: 0.7324 MB / 388.5 MB, free: 72 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003445/0.05653, allocations: 399.4 kB / 388.8 MB, free: 15.68 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 5.093e-05/0.05658, allocations: 52 kB / 388.9 MB, free: 15.63 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01417/0.07075, allocations: 12.46 MB / 401.4 MB, free: 3.137 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001843/0.07093, allocations: 159.4 kB / 401.5 MB, free: 2.98 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002886/0.07122, allocations: 243.6 kB / 401.8 MB, free: 2.742 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02133/0.09255, allocations: 15.56 MB / 417.3 MB, free: 3.168 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.727e-06/0.09256, allocations: 7.984 kB / 417.3 MB, free: 3.16 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.09256, allocations: 0 / 417.3 MB, free: 3.16 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.577e-06/0.09257, allocations: 0 / 417.3 MB, free: 3.16 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 116 * Number of variables: 116 Notification: Performance of Generate backend data structure: time 0.005473/0.09804, allocations: 1.384 MB / 418.7 MB, free: 1.738 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.487e-05/0.09808, allocations: 8.031 kB / 418.7 MB, free: 1.73 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.227e-05/0.09816, allocations: 90.45 kB / 418.8 MB, free: 1.633 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004056/0.09856, allocations: 99.58 kB / 418.9 MB, free: 1.535 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004132/0.09898, allocations: 328.2 kB / 419.2 MB, free: 1.188 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.426e-05/0.099, allocations: 37 kB / 419.3 MB, free: 1.152 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.09e-05/0.09905, allocations: 48 kB / 419.3 MB, free: 1.105 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007894/0.09984, allocations: 0.8206 MB / 420.1 MB, free: 192 kB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.644e-05/0.09986, allocations: 7.938 kB / 420.1 MB, free: 184 kB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.327e-05/0.09989, allocations: 20 kB / 420.1 MB, free: 164 kB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.078e-06/0.0999, allocations: 12 kB / 420.2 MB, free: 152 kB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006404/0.1005, allocations: 0.5307 MB / 420.7 MB, free: 15.62 MB / 394.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002595/0.1031, allocations: 2.801 MB / 423.5 MB, free: 12.73 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005684/0.1037, allocations: 397.9 kB / 423.9 MB, free: 12.33 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001933/0.1039, allocations: 193.3 kB / 424.1 MB, free: 12.14 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009605/0.1049, allocations: 0.6246 MB / 424.7 MB, free: 11.52 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.338e-05/0.1049, allocations: 42.88 kB / 424.7 MB, free: 11.46 MB / 394.7 MB Notification: Performance of pre-optimization done (n=46): time 1.843e-06/0.1049, allocations: 0 / 424.7 MB, free: 11.46 MB / 394.7 MB Notification: Performance of matching and sorting (n=54): time 0.004922/0.1098, allocations: 1.901 MB / 426.6 MB, free: 9.523 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.265e-05/0.1098, allocations: 55.91 kB / 426.7 MB, free: 9.457 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002191/0.1101, allocations: 312.4 kB / 427 MB, free: 9.141 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.948e-05/0.1101, allocations: 37.7 kB / 427 MB, free: 9.098 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001059/0.1102, allocations: 237.1 kB / 427.3 MB, free: 8.859 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.719e-05/0.1103, allocations: 198.3 kB / 427.5 MB, free: 8.664 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001067/0.1104, allocations: 114.3 kB / 427.6 MB, free: 8.547 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.101e-05/0.1105, allocations: 350.7 kB / 427.9 MB, free: 8.195 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004454/0.1109, allocations: 181.2 kB / 428.1 MB, free: 8.02 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002704/0.1112, allocations: 340.1 kB / 428.4 MB, free: 7.625 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005175/0.1117, allocations: 0.5457 MB / 429 MB, free: 7.02 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.1117, allocations: 0 / 429 MB, free: 7.02 MB / 394.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0007756/0.1125, allocations: 0.6674 MB / 429.6 MB, free: 6.332 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.644e-05/0.1125, allocations: 4 kB / 429.6 MB, free: 6.328 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/0.1125, allocations: 8 kB / 429.6 MB, free: 6.32 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004207/0.1167, allocations: 454.5 kB / 430.1 MB, free: 5.867 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002884/0.117, allocations: 139.8 kB / 430.2 MB, free: 5.73 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001314/0.1183, allocations: 2.986 MB / 433.2 MB, free: 2.559 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001375/0.1185, allocations: 16 kB / 433.2 MB, free: 2.543 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.209e-05/0.1185, allocations: 27.98 kB / 433.3 MB, free: 2.516 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 4 (volume1.medium.phase,ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,1), (1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001662/0.1187, allocations: 193.9 kB / 433.4 MB, free: 2.32 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.262e-05/0.1187, allocations: 51.7 kB / 433.5 MB, free: 2.27 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009764/0.1197, allocations: 1.079 MB / 434.6 MB, free: 1.176 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.338e-06/0.1197, allocations: 16.17 kB / 434.6 MB, free: 1.16 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.114e-06/0.1197, allocations: 4 kB / 434.6 MB, free: 1.156 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001038/0.1208, allocations: 1.103 MB / 435.7 MB, free: 15.98 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001387/0.1221, allocations: 1.666 MB / 437.4 MB, free: 14.25 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/0.1221, allocations: 0 / 437.4 MB, free: 14.25 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002128/0.1224, allocations: 99.88 kB / 437.5 MB, free: 14.16 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001339/0.1237, allocations: 349.1 kB / 437.8 MB, free: 13.81 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.932e-05/0.1237, allocations: 23.92 kB / 437.8 MB, free: 13.79 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004406/0.1242, allocations: 1.148 MB / 439 MB, free: 12.59 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.1242, allocations: 3.984 kB / 439 MB, free: 12.58 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009735/0.1251, allocations: 1.151 MB / 440.1 MB, free: 11.41 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.231e-05/0.1252, allocations: 55.64 kB / 440.2 MB, free: 11.36 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.762e-05/0.1252, allocations: 12 kB / 440.2 MB, free: 11.34 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001232/0.1254, allocations: 12 kB / 440.2 MB, free: 11.33 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.927e-05/0.1254, allocations: 40.36 kB / 440.2 MB, free: 11.29 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.389e-05/0.1254, allocations: 23.98 kB / 440.3 MB, free: 11.27 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001658/0.1256, allocations: 243 kB / 440.5 MB, free: 11.04 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1256, allocations: 192 / 440.5 MB, free: 11.04 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003729/0.1293, allocations: 0.9818 MB / 441.5 MB, free: 10.05 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (volume.medium.p,volume.medium.h,volume1.medium.p,volume1.medium.h) * Number of discrete variables: 6 ($cse1.phase,$cse2,$cse5.phase,$cse6,$cse7.phase,$cse8) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.02047/0.1498, allocations: 9.595 MB / 451.1 MB, free: 416 kB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.1257/0.2755, allocations: 0.6841 MB / 451.8 MB, free: 116.5 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.2755, allocations: 0.625 kB / 451.8 MB, free: 116.5 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005389/0.276, allocations: 357 kB / 452.1 MB, free: 116.5 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008866/0.2769, allocations: 265.6 kB / 452.4 MB, free: 116.5 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006753/0.2836, allocations: 5.264 MB / 457.6 MB, free: 114 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001402/0.2838, allocations: 263.8 kB / 457.9 MB, free: 113.9 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003419/0.2841, allocations: 245.5 kB / 458.1 MB, free: 113.9 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001529/0.2843, allocations: 202.5 kB / 458.3 MB, free: 113.7 MB / 410.7 MB Notification: Performance of SimCode: time 7.41e-07/0.2843, allocations: 3.938 kB / 458.3 MB, free: 113.7 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04482/0.3291, allocations: 43.95 MB / 0.4905 GB, free: 72.39 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.295/9.624, allocations: 6.797 kB / 0.4905 GB, free: 72.38 MB / 410.7 MB " [Timeout remaining time 650] (rm -f Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000201919 Modelica_4_0_0_Modelica_Media_Examples_R134a_R134a2.fmu > Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/R134a/R134a2/R134a2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.969479418359697]