Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a1.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.Media.Examples.R134a.R134a1,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_R134a_R134a1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.R134a.R134a1,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_R134a_R134a1",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.001846/0.001846, allocations: 109 kB / 16.92 MB, free: 6.145 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.001892/0.001892, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.285/2.285, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001863/0.001863, allocations: 54.45 kB / 300.7 MB, free: 5.789 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1416/0.1435, allocations: 49.44 MB / 350.2 MB, free: 4.344 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.R134a.R134a1): time 0.3381/0.4817, allocations: 26.57 MB / 376.7 MB, free: 9.176 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.04313/0.5249, allocations: 24.86 MB / 401.6 MB, free: 11.5 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006439/0.5256, allocations: 8.812 kB / 401.6 MB, free: 11.5 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001399/0.5271, allocations: 284.9 kB / 401.9 MB, free: 11.34 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001525/0.5286, allocations: 370.6 kB / 402.2 MB, free: 11.12 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0258/0.5545, allocations: 4.018 MB / 406.3 MB, free: 8.812 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002438/0.5569, allocations: 0.9413 MB / 407.2 MB, free: 8.289 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004516/0.5574, allocations: 116.9 kB / 407.3 MB, free: 8.223 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001397/0.5588, allocations: 384.5 kB / 407.7 MB, free: 8.023 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009308/0.5598, allocations: 305.1 kB / 408 MB, free: 7.852 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002042/0.56, allocations: 38.69 kB / 408 MB, free: 7.852 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.04334/0.6034, allocations: 10.4 MB / 418.4 MB, free: 15.87 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004908/0.6039, allocations: 103.7 kB / 418.5 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008986/0.6049, allocations: 232.8 kB / 418.8 MB, free: 15.54 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.06511/0.67, allocations: 11.48 MB / 430.2 MB, free: 4.047 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.005e-05/0.6701, allocations: 0 / 430.2 MB, free: 4.047 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.116e-06/0.6701, allocations: 0 / 430.2 MB, free: 4.047 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.495e-05/0.6702, allocations: 0 / 430.2 MB, free: 4.047 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.009592/0.6798, allocations: 1.136 MB / 431.4 MB, free: 2.863 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.484e-05/0.6799, allocations: 12.03 kB / 431.4 MB, free: 2.852 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001617/0.68, allocations: 76.19 kB / 431.5 MB, free: 2.77 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001195/0.6813, allocations: 62.66 kB / 431.5 MB, free: 2.711 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008267/0.6821, allocations: 318.8 kB / 431.8 MB, free: 2.359 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.843e-05/0.6822, allocations: 28.66 kB / 431.9 MB, free: 2.332 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.507e-05/0.6823, allocations: 29.72 kB / 431.9 MB, free: 2.305 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001963/0.6843, allocations: 467.2 kB / 432.3 MB, free: 1.812 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.269e-05/0.6843, allocations: 3.906 kB / 432.3 MB, free: 1.809 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.716e-05/0.6844, allocations: 16 kB / 432.4 MB, free: 1.793 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.021e-05/0.6845, allocations: 15.94 kB / 432.4 MB, free: 1.777 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001676/0.6862, allocations: 386.3 kB / 432.7 MB, free: 1.402 MB / 334.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.006546/0.6927, allocations: 2.945 MB / 435.7 MB, free: 14.22 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001426/0.6942, allocations: 303.6 kB / 436 MB, free: 13.92 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004006/0.6946, allocations: 134 kB / 436.1 MB, free: 13.79 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004527/0.6992, allocations: 2.462 MB / 438.6 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.749e-05/0.6993, allocations: 46.55 kB / 438.6 MB, free: 10.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 5.611e-06/0.6993, allocations: 4 kB / 438.6 MB, free: 10.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=34): time 0.01095/0.7102, allocations: 1.282 MB / 439.9 MB, free: 9.406 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.458e-05/0.7104, allocations: 55.41 kB / 440 MB, free: 9.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005508/0.7109, allocations: 258.5 kB / 440.2 MB, free: 9.082 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.498e-05/0.711, allocations: 37.7 kB / 440.3 MB, free: 9.039 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002431/0.7113, allocations: 192 kB / 440.4 MB, free: 8.844 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001804/0.7115, allocations: 118.3 kB / 440.6 MB, free: 8.727 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002491/0.7118, allocations: 86.03 kB / 440.6 MB, free: 8.637 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002228/0.712, allocations: 334.8 kB / 441 MB, free: 8.301 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003858/0.7124, allocations: 116.8 kB / 441.1 MB, free: 8.188 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000554/0.713, allocations: 226 kB / 441.3 MB, free: 7.922 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001077/0.7141, allocations: 378.6 kB / 441.7 MB, free: 7.504 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.7141, allocations: 0 / 441.7 MB, free: 7.504 MB / 350.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.001753/0.7159, allocations: 466.7 kB / 442.1 MB, free: 7.035 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.961e-05/0.7159, allocations: 11.94 kB / 442.1 MB, free: 7.023 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.801e-05/0.716, allocations: 5.016 kB / 442.1 MB, free: 7.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009385/0.7253, allocations: 233.4 kB / 442.4 MB, free: 6.785 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007465/0.7261, allocations: 84.94 kB / 442.5 MB, free: 6.703 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003083/0.7293, allocations: 1.958 MB / 444.4 MB, free: 4.582 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004983/0.7298, allocations: 12 kB / 444.4 MB, free: 4.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.656e-05/0.7299, allocations: 20 kB / 444.4 MB, free: 4.551 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 3 (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 (48): * Single equations (assignments): 46 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.000412/0.7303, allocations: 157.9 kB / 444.6 MB, free: 4.387 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002239/0.7306, allocations: 35.66 kB / 444.6 MB, free: 4.352 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002132/0.7327, allocations: 0.6896 MB / 445.3 MB, free: 3.648 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-05/0.7328, allocations: 11.98 kB / 445.3 MB, free: 3.637 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/0.7328, allocations: 4 kB / 445.3 MB, free: 3.633 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001636/0.7344, allocations: 0.8631 MB / 446.2 MB, free: 2.684 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00296/0.7374, allocations: 1.183 MB / 447.4 MB, free: 1.438 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.04e-05/0.7375, allocations: 0 / 447.4 MB, free: 1.438 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004909/0.738, allocations: 67.91 kB / 447.5 MB, free: 1.371 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00294/0.7409, allocations: 180.4 kB / 447.6 MB, free: 1.191 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.691e-05/0.741, allocations: 8 kB / 447.6 MB, free: 1.184 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000735/0.7418, allocations: 0.5797 MB / 448.2 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.564e-06/0.7418, allocations: 3.938 kB / 448.2 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001929/0.7437, allocations: 0.7298 MB / 449 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002098/0.744, allocations: 108.6 kB / 449.1 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001076/0.7441, allocations: 11.94 kB / 449.1 MB, free: 15.69 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003824/0.7445, allocations: 8 kB / 449.1 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.619e-05/0.7446, allocations: 24.06 kB / 449.1 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.329e-05/0.7447, allocations: 19.98 kB / 449.1 MB, free: 15.64 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004642/0.7452, allocations: 225.9 kB / 449.3 MB, free: 15.41 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.7452, allocations: 0 / 449.3 MB, free: 15.41 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00822/0.7534, allocations: 0.7379 MB / 450.1 MB, free: 14.67 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 4 ($cse3.phase,$cse4,$cse5.phase,$cse6) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.07813/0.8316, allocations: 7.566 MB / 457.6 MB, free: 7.07 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002/0.8336, allocations: 0.4902 MB / 458.1 MB, free: 6.566 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.081e-06/0.8337, allocations: 4 kB / 458.1 MB, free: 6.562 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008791/0.8346, allocations: 221.5 kB / 458.4 MB, free: 6.344 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002102/0.8367, allocations: 200.7 kB / 458.6 MB, free: 6.156 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01453/0.8513, allocations: 4.052 MB / 462.6 MB, free: 1.922 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006539/0.852, allocations: 0.8046 MB / 463.4 MB, free: 1.094 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0008812/0.8529, allocations: 192.9 kB / 463.6 MB, free: 0.9102 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003518/0.8533, allocations: 135.4 kB / 463.7 MB, free: 0.7773 MB / 366.1 MB Notification: Performance of SimCode: time 1.793e-06/0.8533, allocations: 0 / 463.7 MB, free: 0.7773 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1246/0.9779, allocations: 33.56 MB / 497.3 MB, free: 15.3 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.12/13.1, allocations: 11.83 kB / 497.3 MB, free: 15.29 MB / 414.1 MB (rm -f Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a1.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a1.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a1.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a1_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_4_0_0_Modelica_Media_Examples_R134a_R134a1.fmu > Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/R134a/R134a1/R134a1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches