Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.R134a.R134a2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.R134a.R134a2,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_R134a_R134a2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.R134a.R134a2,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_R134a_R134a2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001501/0.001502, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001974/0.001974, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.379/1.379, allocations: 227.4 MB / 246.8 MB, free: 10.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001184/0.001184, allocations: 68.12 kB / 307 MB, free: 0.5273 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08643/0.08763, allocations: 50.53 MB / 357.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.R134a.R134a2): time 0.1897/0.2774, allocations: 37.73 MB / 395.3 MB, free: 13.72 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03094/0.3084, allocations: 30.65 MB / 426 MB, free: 6.145 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005453/0.309, allocations: 6.125 kB / 426 MB, free: 6.145 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001044/0.31, allocations: 409.8 kB / 426.4 MB, free: 5.812 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009794/0.3111, allocations: 0.517 MB / 426.9 MB, free: 5.379 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01369/0.3248, allocations: 5.148 MB / 432 MB, free: 272 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001642/0.3264, allocations: 1.355 MB / 433.4 MB, free: 14.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002859/0.3267, allocations: 154.7 kB / 433.5 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007571/0.3275, allocations: 0.5411 MB / 434.1 MB, free: 14.21 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004767/0.328, allocations: 438.3 kB / 434.5 MB, free: 13.78 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.773e-05/0.3281, allocations: 52 kB / 434.6 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02489/0.3529, allocations: 12.79 MB / 447.3 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003054/0.3533, allocations: 151.6 kB / 447.5 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005004/0.3538, allocations: 326.7 kB / 447.8 MB, free: 456 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04245/0.3963, allocations: 14.91 MB / 462.7 MB, free: 1.523 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.394e-06/0.3963, allocations: 0 / 462.7 MB, free: 1.523 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3963, allocations: 8 kB / 462.7 MB, free: 1.516 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.584e-05/0.3964, allocations: 0 / 462.7 MB, free: 1.516 MB / 366.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.009321/0.4057, allocations: 1.415 MB / 464.1 MB, free: 48 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.287e-05/0.4058, allocations: 12.03 kB / 464.2 MB, free: 36 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000133/0.4059, allocations: 90.45 kB / 464.2 MB, free: 15.94 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000745/0.4067, allocations: 95.33 kB / 464.3 MB, free: 15.84 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005028/0.4072, allocations: 378 kB / 464.7 MB, free: 15.43 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.043e-05/0.4072, allocations: 41 kB / 464.7 MB, free: 15.39 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.728e-05/0.4073, allocations: 47.94 kB / 464.8 MB, free: 15.35 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001186/0.4085, allocations: 0.6205 MB / 465.4 MB, free: 14.68 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.044e-05/0.4085, allocations: 0 / 465.4 MB, free: 14.68 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.474e-05/0.4086, allocations: 24 kB / 465.4 MB, free: 14.66 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.423e-05/0.4086, allocations: 12 kB / 465.4 MB, free: 14.64 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001027/0.4096, allocations: 0.5307 MB / 466 MB, free: 14.11 MB / 382.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.004319/0.414, allocations: 3.815 MB / 469.8 MB, free: 9.992 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009548/0.4149, allocations: 415.7 kB / 470.2 MB, free: 9.578 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003006/0.4153, allocations: 205.5 kB / 470.4 MB, free: 9.375 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003289/0.4186, allocations: 3.466 MB / 473.9 MB, free: 5.207 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.08e-05/0.4186, allocations: 42.94 kB / 473.9 MB, free: 5.156 MB / 382.1 MB Notification: Performance of pre-optimization done (n=46): time 2.435e-06/0.4186, allocations: 0 / 473.9 MB, free: 5.156 MB / 382.1 MB Notification: Performance of matching and sorting (n=54): time 0.009544/0.4282, allocations: 2.024 MB / 475.9 MB, free: 3.055 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.3e-05/0.4282, allocations: 59.78 kB / 476 MB, free: 2.984 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003441/0.4286, allocations: 308.5 kB / 476.3 MB, free: 2.68 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.815e-05/0.4287, allocations: 33.7 kB / 476.3 MB, free: 2.641 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001561/0.4288, allocations: 236.6 kB / 476.6 MB, free: 2.402 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001441/0.429, allocations: 185.3 kB / 476.7 MB, free: 2.219 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001644/0.4291, allocations: 118.2 kB / 476.9 MB, free: 2.098 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001279/0.4293, allocations: 346.8 kB / 477.2 MB, free: 1.75 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002967/0.4296, allocations: 181.2 kB / 477.4 MB, free: 1.574 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004434/0.43, allocations: 336.6 kB / 477.7 MB, free: 1.18 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008029/0.4309, allocations: 0.547 MB / 478.2 MB, free: 0.5742 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.7e-06/0.4309, allocations: 4 kB / 478.2 MB, free: 0.5703 MB / 382.1 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001268/0.4321, allocations: 0.662 MB / 478.9 MB, free: 15.89 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.29e-05/0.4322, allocations: 11.94 kB / 478.9 MB, free: 15.88 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.152e-05/0.4322, allocations: 7.984 kB / 478.9 MB, free: 15.87 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009388/0.4416, allocations: 450.3 kB / 479.4 MB, free: 15.42 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006515/0.4423, allocations: 139.8 kB / 479.5 MB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002167/0.4445, allocations: 3.094 MB / 482.6 MB, free: 11.98 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003422/0.4448, allocations: 19.94 kB / 482.6 MB, free: 11.96 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.72e-05/0.4449, allocations: 31.92 kB / 482.7 MB, free: 11.93 MB / 398.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.0002705/0.4452, allocations: 197.7 kB / 482.8 MB, free: 11.73 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001347/0.4453, allocations: 39.53 kB / 482.9 MB, free: 11.69 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001598/0.4469, allocations: 1.052 MB / 483.9 MB, free: 10.62 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.664e-05/0.447, allocations: 11.98 kB / 483.9 MB, free: 10.61 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.447, allocations: 0 / 483.9 MB, free: 10.61 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001248/0.4482, allocations: 1.095 MB / 485 MB, free: 9.441 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002406/0.4506, allocations: 1.738 MB / 486.8 MB, free: 7.637 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.065e-06/0.4507, allocations: 0 / 486.8 MB, free: 7.637 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003966/0.4511, allocations: 103.8 kB / 486.9 MB, free: 7.535 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003096/0.4542, allocations: 345.1 kB / 487.2 MB, free: 7.191 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.154e-05/0.4543, allocations: 19.98 kB / 487.2 MB, free: 7.172 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006831/0.455, allocations: 1.151 MB / 488.4 MB, free: 5.969 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.455, allocations: 4.031 kB / 488.4 MB, free: 5.965 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001498/0.4565, allocations: 1.12 MB / 489.5 MB, free: 4.824 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001395/0.4566, allocations: 120.7 kB / 489.6 MB, free: 4.688 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.72e-05/0.4567, allocations: 23.78 kB / 489.7 MB, free: 4.664 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002677/0.457, allocations: 15.94 kB / 489.7 MB, free: 4.648 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.818e-05/0.4571, allocations: 40.48 kB / 489.7 MB, free: 4.609 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.058e-05/0.4571, allocations: 23.98 kB / 489.7 MB, free: 4.586 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002726/0.4574, allocations: 247 kB / 490 MB, free: 4.348 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4574, allocations: 3.938 kB / 490 MB, free: 4.344 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.005175/0.4626, allocations: 0.9605 MB / 490.9 MB, free: 3.383 MB / 398.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.04503/0.5076, allocations: 9.44 MB / 0.4886 GB, free: 9.902 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002003/0.5097, allocations: 0.7357 MB / 0.4894 GB, free: 9.152 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.943e-06/0.5097, allocations: 0 / 0.4894 GB, free: 9.152 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007337/0.5104, allocations: 375.4 kB / 0.4897 GB, free: 8.785 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001662/0.5121, allocations: 263.5 kB / 0.49 GB, free: 8.535 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01208/0.5242, allocations: 5.393 MB / 0.4952 GB, free: 2.922 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004586/0.5247, allocations: 0.8686 MB / 0.4961 GB, free: 2.023 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006038/0.5253, allocations: 236.1 kB / 0.4963 GB, free: 1.793 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002675/0.5256, allocations: 203.4 kB / 0.4965 GB, free: 1.598 MB / 414.1 MB Notification: Performance of SimCode: time 8.62e-07/0.5256, allocations: 3.938 kB / 0.4965 GB, free: 1.594 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2347/0.7604, allocations: 42.02 MB / 0.5375 GB, free: 140.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.64/13.4, allocations: 14.59 kB / 0.5376 GB, free: 140.5 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Media.Examples.R134a.R134a2.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.R134a.R134a2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.R134a.R134a2.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.R134a.R134a2.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Media_Examples_R134a_R134a2.fmu > Modelica_trunk_Modelica.Media.Examples.R134a.R134a2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Media.Examples.R134a.R134a2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/R134a/R134a2/R134a2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Media.Examples.R134a.R134a2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches