Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Media.Examples.R134a.R134a2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001446/0.001446, allocations: 111.1 kB / 20.44 MB, free: 1.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001635/0.001635, allocations: 209.2 kB / 23.73 MB, free: 4.387 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.409/1.409, allocations: 230.6 MB / 257.5 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.R134a.R134a2,fileNamePrefix="Modelica_4_1_0_Modelica_Media_Examples_R134a_R134a2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.R134a.R134a2,fileNamePrefix="Modelica_4_1_0_Modelica_Media_Examples_R134a_R134a2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001504/0.001504, allocations: 47.92 kB / 377.7 MB, free: 3.047 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2424/0.2439, allocations: 53.37 MB / 431.1 MB, free: 6.648 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.R134a.R134a2): time 0.03948/0.2833, allocations: 34.79 MB / 465.9 MB, free: 3.738 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03351/0.3169, allocations: 27.16 MB / 493.1 MB, free: 8.484 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004373/0.3173, allocations: 11.94 kB / 493.1 MB, free: 8.473 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001015/0.3183, allocations: 369.8 kB / 493.4 MB, free: 8.109 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00106/0.3194, allocations: 0.5439 MB / 494 MB, free: 7.562 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01349/0.3329, allocations: 5.255 MB / 499.2 MB, free: 2.293 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001876/0.3347, allocations: 1.371 MB / 0.4889 GB, free: 0.918 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002682/0.335, allocations: 118.9 kB / 0.489 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009442/0.3359, allocations: 0.5489 MB / 0.4895 GB, free: 252 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006117/0.3366, allocations: 438.2 kB / 0.4899 GB, free: 15.82 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 8.622e-05/0.3366, allocations: 52 kB / 0.49 GB, free: 15.77 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02363/0.3603, allocations: 12.44 MB / 0.5021 GB, free: 3.297 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002868/0.3606, allocations: 155.5 kB / 0.5023 GB, free: 3.145 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004379/0.361, allocations: 286.9 kB / 0.5026 GB, free: 2.863 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04271/0.4037, allocations: 14.94 MB / 0.5171 GB, free: 3.91 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.66e-06/0.4037, allocations: 0 / 0.5171 GB, free: 3.91 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.4037, allocations: 3.938 kB / 0.5171 GB, free: 3.906 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.106e-05/0.4037, allocations: 0 / 0.5171 GB, free: 3.906 MB / 430.1 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.00727/0.411, allocations: 1.396 MB / 0.5185 GB, free: 2.473 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.97e-05/0.4111, allocations: 8.031 kB / 0.5185 GB, free: 2.465 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001597/0.4112, allocations: 94.47 kB / 0.5186 GB, free: 2.363 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008207/0.412, allocations: 99.56 kB / 0.5187 GB, free: 2.266 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006439/0.4127, allocations: 328.2 kB / 0.519 GB, free: 1.918 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.72e-05/0.4127, allocations: 40.98 kB / 0.5191 GB, free: 1.879 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.338e-05/0.4128, allocations: 48 kB / 0.5191 GB, free: 1.832 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001367/0.4142, allocations: 0.8213 MB / 0.5199 GB, free: 0.9102 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.544e-05/0.4142, allocations: 11.95 kB / 0.5199 GB, free: 0.8984 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.008e-05/0.4142, allocations: 20 kB / 0.5199 GB, free: 0.8789 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.283e-05/0.4142, allocations: 12 kB / 0.5199 GB, free: 0.8672 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001169/0.4154, allocations: 0.5268 MB / 0.5205 GB, free: 352 kB / 430.1 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.004626/0.42, allocations: 2.794 MB / 0.5232 GB, free: 13.46 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000956/0.421, allocations: 390.5 kB / 0.5236 GB, free: 13.07 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003088/0.4213, allocations: 197.5 kB / 0.5237 GB, free: 12.88 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001986/0.4233, allocations: 0.6246 MB / 0.5244 GB, free: 12.25 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.763e-05/0.4233, allocations: 38.94 kB / 0.5244 GB, free: 12.21 MB / 446.1 MB Notification: Performance of pre-optimization done (n=46): time 2.094e-06/0.4233, allocations: 0 / 0.5244 GB, free: 12.21 MB / 446.1 MB Notification: Performance of matching and sorting (n=54): time 0.009935/0.4333, allocations: 1.898 MB / 0.5262 GB, free: 10.27 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.551e-05/0.4333, allocations: 59.78 kB / 0.5263 GB, free: 10.2 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004638/0.4338, allocations: 312.4 kB / 0.5266 GB, free: 9.879 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.194e-05/0.4338, allocations: 37.7 kB / 0.5266 GB, free: 9.836 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002817/0.4341, allocations: 241 kB / 0.5269 GB, free: 9.598 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001926/0.4343, allocations: 198.3 kB / 0.5271 GB, free: 9.402 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001744/0.4345, allocations: 122.3 kB / 0.5272 GB, free: 9.277 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001868/0.4347, allocations: 350.8 kB / 0.5275 GB, free: 8.926 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000314/0.435, allocations: 181.2 kB / 0.5277 GB, free: 8.75 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005262/0.4355, allocations: 328.1 kB / 0.528 GB, free: 8.371 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008553/0.4364, allocations: 0.5407 MB / 0.5285 GB, free: 7.766 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.4364, allocations: 0 / 0.5285 GB, free: 7.766 MB / 446.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001463/0.4378, allocations: 0.6775 MB / 0.5292 GB, free: 7.07 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.273e-05/0.4379, allocations: 12.5 kB / 0.5292 GB, free: 7.059 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.918e-06/0.4379, allocations: 8 kB / 0.5292 GB, free: 7.051 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01116/0.449, allocations: 466 kB / 0.5296 GB, free: 6.586 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006283/0.4497, allocations: 147.8 kB / 0.5298 GB, free: 6.441 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002679/0.4523, allocations: 2.989 MB / 0.5327 GB, free: 3.266 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003446/0.4527, allocations: 16 kB / 0.5327 GB, free: 3.25 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.76e-05/0.4527, allocations: 31.98 kB / 0.5328 GB, free: 3.219 MB / 446.1 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.0003103/0.4531, allocations: 186 kB / 0.5329 GB, free: 3.027 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002548/0.4533, allocations: 43.77 kB / 0.533 GB, free: 2.984 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001764/0.4551, allocations: 1.086 MB / 0.534 GB, free: 1.879 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.388e-05/0.4551, allocations: 7.984 kB / 0.534 GB, free: 1.871 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.4551, allocations: 3.938 kB / 0.534 GB, free: 1.867 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001392/0.4565, allocations: 1.114 MB / 0.5351 GB, free: 0.6797 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1788/0.6353, allocations: 1.647 MB / 0.5367 GB, free: 97.76 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.504e-06/0.6353, allocations: 5.766 kB / 0.5367 GB, free: 97.76 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003981/0.6357, allocations: 101.8 kB / 0.5368 GB, free: 97.76 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002856/0.6386, allocations: 353.3 kB / 0.5372 GB, free: 97.74 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.855e-05/0.6386, allocations: 13.5 kB / 0.5372 GB, free: 97.74 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004593/0.6391, allocations: 1.152 MB / 0.5383 GB, free: 96.66 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.6391, allocations: 0.7969 kB / 0.5383 GB, free: 96.66 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001401/0.6405, allocations: 1.153 MB / 0.5394 GB, free: 96.11 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.825e-05/0.6406, allocations: 49.78 kB / 0.5395 GB, free: 96.11 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.412e-05/0.6406, allocations: 16.98 kB / 0.5395 GB, free: 96.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002368/0.6409, allocations: 10.38 kB / 0.5395 GB, free: 96.09 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.766e-05/0.6409, allocations: 38.39 kB / 0.5396 GB, free: 96.09 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.879e-05/0.641, allocations: 24.66 kB / 0.5396 GB, free: 96.08 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0002474/0.6412, allocations: 248.1 kB / 0.5398 GB, free: 95.96 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.6412, allocations: 0 / 0.5398 GB, free: 95.96 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004653/0.6459, allocations: 0.9815 MB / 0.5408 GB, free: 95.88 MB / 446.1 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.02838/0.6742, allocations: 9.472 MB / 0.55 GB, free: 89.84 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001504/0.6757, allocations: 0.6933 MB / 0.5507 GB, free: 89.22 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.509e-06/0.6758, allocations: 4 kB / 0.5507 GB, free: 89.22 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005587/0.6763, allocations: 352.6 kB / 0.551 GB, free: 88.91 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001388/0.6777, allocations: 265.4 kB / 0.5513 GB, free: 88.73 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009185/0.6869, allocations: 5.355 MB / 0.5565 GB, free: 83.74 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001886/0.6871, allocations: 271.2 kB / 0.5568 GB, free: 83.51 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0004897/0.6876, allocations: 227 kB / 0.557 GB, free: 83.37 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002146/0.6878, allocations: 201.7 kB / 0.5572 GB, free: 83.2 MB / 446.1 MB Notification: Performance of SimCode: time 8.31e-07/0.6878, allocations: 3.938 kB / 0.5572 GB, free: 83.19 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07244/0.7602, allocations: 43.7 MB / 0.5999 GB, free: 40.42 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.66/15.42, allocations: 10.25 kB / 0.5999 GB, free: 40.42 MB / 446.1 MB " [Timeout remaining time 644] (rm -f Modelica_4.1.0_Modelica.Media.Examples.R134a.R134a2.pipe ; mkfifo Modelica_4.1.0_Modelica.Media.Examples.R134a.R134a2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Media.Examples.R134a.R134a2.pipe >> ../files/Modelica_4.1.0_Modelica.Media.Examples.R134a.R134a2.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Media_Examples_R134a_R134a2.fmu > Modelica_4.1.0_Modelica.Media.Examples.R134a.R134a2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Media.Examples.R134a.R134a2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Media/Examples/R134a/R134a2/R134a2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 19.677758374717087]