Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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) 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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Media_Examples_R134a_R134a2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.R134a.R134a2,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_R134a_R134a2",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.001169/0.001169, allocations: 110.6 kB / 17.73 MB, free: 5.34 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.001285/0.001285, allocations: 194.9 kB / 18.67 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.308/1.308, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001436/0.001436, allocations: 56.41 kB / 328 MB, free: 3.789 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08019/0.08164, allocations: 46.62 MB / 374.7 MB, free: 5.055 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.R134a.R134a2): time 0.1994/0.281, allocations: 37.66 MB / 412.3 MB, free: 5.203 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03071/0.3118, allocations: 30.6 MB / 442.9 MB, free: 11.55 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00063/0.3125, allocations: 8 kB / 442.9 MB, free: 11.54 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001238/0.3138, allocations: 425.7 kB / 443.3 MB, free: 11.12 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001425/0.3152, allocations: 0.5322 MB / 443.9 MB, free: 10.59 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01486/0.3301, allocations: 5.23 MB / 449.1 MB, free: 5.336 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001955/0.3321, allocations: 1.355 MB / 450.5 MB, free: 3.977 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003413/0.3325, allocations: 174.5 kB / 450.6 MB, free: 3.801 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001033/0.3335, allocations: 0.5449 MB / 451.2 MB, free: 3.254 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005636/0.3341, allocations: 430.4 kB / 451.6 MB, free: 2.832 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.821e-05/0.3342, allocations: 52 kB / 451.7 MB, free: 2.781 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02377/0.358, allocations: 12.8 MB / 464.5 MB, free: 5.957 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003/0.3583, allocations: 151.5 kB / 464.6 MB, free: 5.809 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004788/0.3588, allocations: 318.9 kB / 464.9 MB, free: 5.496 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03296/0.3918, allocations: 14.93 MB / 479.8 MB, free: 6.547 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.833e-06/0.3918, allocations: 4 kB / 479.8 MB, free: 6.543 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.776e-06/0.3918, allocations: 3.984 kB / 479.9 MB, free: 6.539 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.191e-05/0.3918, allocations: 0 / 479.9 MB, free: 6.539 MB / 398.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.007274/0.3991, allocations: 1.472 MB / 481.3 MB, free: 5.012 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.237e-05/0.3992, allocations: 11.89 kB / 481.3 MB, free: 5 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.697e-05/0.3993, allocations: 86.52 kB / 481.4 MB, free: 4.906 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006961/0.4, allocations: 99.58 kB / 481.5 MB, free: 4.809 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005094/0.4005, allocations: 390.1 kB / 481.9 MB, free: 4.387 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.885e-05/0.4005, allocations: 37 kB / 481.9 MB, free: 4.352 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.391e-05/0.4006, allocations: 47.94 kB / 482 MB, free: 4.305 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001092/0.4017, allocations: 0.6205 MB / 482.6 MB, free: 3.637 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.456e-05/0.4017, allocations: 11.94 kB / 482.6 MB, free: 3.625 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.783e-05/0.4018, allocations: 20 kB / 482.6 MB, free: 3.605 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.083e-05/0.4018, allocations: 16 kB / 482.6 MB, free: 3.59 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009372/0.4027, allocations: 0.5268 MB / 483.2 MB, free: 3.062 MB / 398.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.004104/0.4069, allocations: 3.809 MB / 487 MB, free: 14.95 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000909/0.4078, allocations: 411.8 kB / 487.4 MB, free: 14.54 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000287/0.4081, allocations: 221.1 kB / 487.6 MB, free: 14.32 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002966/0.4111, allocations: 3.455 MB / 491.1 MB, free: 10.16 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.851e-05/0.4111, allocations: 38.88 kB / 491.1 MB, free: 10.12 MB / 414.1 MB Notification: Performance of pre-optimization done (n=46): time 3.016e-06/0.4111, allocations: 0 / 491.1 MB, free: 10.12 MB / 414.1 MB Notification: Performance of matching and sorting (n=54): time 0.00937/0.4205, allocations: 2.028 MB / 493.1 MB, free: 8.012 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.649e-05/0.4206, allocations: 67.72 kB / 493.2 MB, free: 7.934 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003284/0.4209, allocations: 304.5 kB / 493.5 MB, free: 7.625 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.55e-05/0.421, allocations: 37.7 kB / 493.5 MB, free: 7.582 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00015/0.4212, allocations: 241.2 kB / 493.8 MB, free: 7.344 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001428/0.4213, allocations: 198.2 kB / 494 MB, free: 7.148 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001702/0.4215, allocations: 118.3 kB / 494.1 MB, free: 7.023 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001287/0.4216, allocations: 350.8 kB / 494.4 MB, free: 6.672 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002986/0.4219, allocations: 177.2 kB / 494.6 MB, free: 6.5 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004046/0.4223, allocations: 332.7 kB / 494.9 MB, free: 6.117 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000717/0.4231, allocations: 0.5507 MB / 495.5 MB, free: 5.508 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.4231, allocations: 4 kB / 495.5 MB, free: 5.504 MB / 414.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001216/0.4243, allocations: 0.6739 MB / 496.1 MB, free: 4.812 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.346e-05/0.4243, allocations: 11.94 kB / 496.1 MB, free: 4.801 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.098e-05/0.4244, allocations: 4 kB / 496.2 MB, free: 4.797 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009008/0.4334, allocations: 442.3 kB / 496.6 MB, free: 4.355 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005983/0.434, allocations: 151.7 kB / 496.7 MB, free: 4.207 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002019/0.436, allocations: 3.089 MB / 499.8 MB, free: 0.9023 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00035/0.4364, allocations: 16.69 kB / 499.8 MB, free: 0.8867 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.899e-05/0.4365, allocations: 28 kB / 499.9 MB, free: 0.8594 MB / 414.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.0002985/0.4368, allocations: 191.1 kB / 0.4883 GB, free: 0.6641 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001447/0.4369, allocations: 43.72 kB / 0.4884 GB, free: 0.6211 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001508/0.4385, allocations: 1.054 MB / 0.4894 GB, free: 15.55 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.458e-05/0.4385, allocations: 12 kB / 0.4894 GB, free: 15.54 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.447e-06/0.4385, allocations: 2.25 kB / 0.4894 GB, free: 15.54 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001146/0.4396, allocations: 1.091 MB / 0.4905 GB, free: 14.38 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002201/0.4419, allocations: 1.722 MB / 0.4922 GB, free: 12.59 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.052e-06/0.4419, allocations: 0 / 0.4922 GB, free: 12.59 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003783/0.4423, allocations: 107.8 kB / 0.4923 GB, free: 12.48 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002962/0.4452, allocations: 353 kB / 0.4926 GB, free: 12.13 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.612e-05/0.4453, allocations: 12 kB / 0.4926 GB, free: 12.12 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006725/0.446, allocations: 1.152 MB / 0.4937 GB, free: 10.92 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.446, allocations: 0 / 0.4937 GB, free: 10.92 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001521/0.4475, allocations: 1.125 MB / 0.4948 GB, free: 9.77 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000152/0.4477, allocations: 128.8 kB / 0.495 GB, free: 9.625 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.648e-05/0.4478, allocations: 12 kB / 0.495 GB, free: 9.613 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002809/0.4481, allocations: 11.94 kB / 0.495 GB, free: 9.602 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.488e-05/0.4482, allocations: 40.7 kB / 0.495 GB, free: 9.562 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.481e-05/0.4482, allocations: 23.97 kB / 0.495 GB, free: 9.539 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002719/0.4485, allocations: 251 kB / 0.4953 GB, free: 9.293 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4485, allocations: 0 / 0.4953 GB, free: 9.293 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.005275/0.4538, allocations: 0.9817 MB / 0.4962 GB, free: 8.309 MB / 430.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.03215/0.4859, allocations: 9.456 MB / 0.5055 GB, free: 14.81 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001676/0.4877, allocations: 0.724 MB / 0.5062 GB, free: 14.07 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.4877, allocations: 0 / 0.5062 GB, free: 14.07 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000611/0.4883, allocations: 367.5 kB / 0.5065 GB, free: 13.72 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001382/0.4897, allocations: 260.9 kB / 0.5068 GB, free: 13.46 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01064/0.5003, allocations: 5.333 MB / 0.512 GB, free: 7.914 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004188/0.5008, allocations: 0.8686 MB / 0.5128 GB, free: 7.02 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0005503/0.5014, allocations: 236.2 kB / 0.5131 GB, free: 6.785 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002547/0.5016, allocations: 195.4 kB / 0.5133 GB, free: 6.594 MB / 446.1 MB Notification: Performance of SimCode: time 5.2e-07/0.5016, allocations: 0 / 0.5133 GB, free: 6.594 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2398/0.7415, allocations: 42.22 MB / 0.5545 GB, free: 147.5 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.95/13.69, allocations: 13.81 kB / 0.5545 GB, free: 147.5 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.R134a.R134a2.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.R134a.R134a2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.R134a.R134a2.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.R134a.R134a2.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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.000404 Modelica_3_2_3_Modelica_Media_Examples_R134a_R134a2.fmu > Modelica_3.2.3_Modelica.Media.Examples.R134a.R134a2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.R134a.R134a2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/R134a/R134a2/R134a2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Media.Examples.R134a.R134a2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches