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.001204/0.001203, allocations: 100 kB / 16.31 MB, free: 6.461 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.001132/0.001131, allocations: 172.9 kB / 17.19 MB, free: 6.348 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.351/1.351, allocations: 223.2 MB / 241.1 MB, free: 14.64 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003468/0.000347, allocations: 4 kB / 300.8 MB, free: 6.137 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1175/0.1179, allocations: 50.41 MB / 351.2 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.R134a.R134a1): time 0.2422/0.3601, allocations: 22.51 MB / 373.7 MB, free: 9.52 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.03894/0.3991, allocations: 20.78 MB / 394.5 MB, free: 1.492 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007293/0.3999, allocations: 2.531 kB / 394.5 MB, free: 1.492 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00127/0.4012, allocations: 244.6 kB / 394.8 MB, free: 1.359 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001275/0.4025, allocations: 258.8 kB / 395 MB, free: 1.18 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02183/0.4243, allocations: 3.109 MB / 398.1 MB, free: 15.55 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001817/0.4262, allocations: 0.5318 MB / 398.7 MB, free: 15.27 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003608/0.4266, allocations: 79.78 kB / 398.7 MB, free: 15.23 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009332/0.4276, allocations: 295.6 kB / 399 MB, free: 15.1 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004159/0.428, allocations: 190.7 kB / 399.2 MB, free: 15.03 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.237e-05/0.4281, allocations: 15.66 kB / 399.2 MB, free: 15.03 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.07431/0.5024, allocations: 53.57 MB / 452.8 MB, free: 13.84 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002311/0.5027, allocations: 79.73 kB / 452.9 MB, free: 13.76 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002793/0.503, allocations: 105.5 kB / 453 MB, free: 13.65 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02932/0.5323, allocations: 10.65 MB / 463.6 MB, free: 2.992 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.868e-06/0.5323, allocations: 4 kB / 463.6 MB, free: 2.988 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.5324, allocations: 0 / 463.6 MB, free: 2.988 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.516e-06/0.5324, allocations: 0 / 463.6 MB, free: 2.988 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: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.006945/0.5393, allocations: 1.061 MB / 464.7 MB, free: 1.879 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.156e-05/0.5394, allocations: 8.031 kB / 464.7 MB, free: 1.871 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.175e-05/0.5395, allocations: 71.22 kB / 464.8 MB, free: 1.793 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006211/0.5401, allocations: 71.55 kB / 464.8 MB, free: 1.723 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003852/0.5405, allocations: 306.4 kB / 465.1 MB, free: 1.383 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.364e-05/0.5405, allocations: 28.66 kB / 465.2 MB, free: 1.355 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.535e-05/0.5406, allocations: 28 kB / 465.2 MB, free: 1.328 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008035/0.5414, allocations: 459.8 kB / 465.6 MB, free: 0.8438 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.684e-05/0.5414, allocations: 3.938 kB / 465.6 MB, free: 0.8398 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.588e-05/0.5415, allocations: 16 kB / 465.7 MB, free: 0.8242 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.041e-05/0.5415, allocations: 8 kB / 465.7 MB, free: 0.8164 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007659/0.5423, allocations: 386.3 kB / 466 MB, free: 448 kB / 366.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.003506/0.5458, allocations: 2.953 MB / 469 MB, free: 13.25 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007186/0.5465, allocations: 291.3 kB / 469.3 MB, free: 12.95 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002457/0.549, allocations: 2.54 MB / 471.8 MB, free: 9.914 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.884e-05/0.549, allocations: 39.06 kB / 471.9 MB, free: 9.867 MB / 382.1 MB Notification: Performance of pre-optimization done (n=30): time 2.274e-06/0.549, allocations: 4 kB / 471.9 MB, free: 9.863 MB / 382.1 MB Notification: Performance of matching and sorting (n=34): time 0.005137/0.5542, allocations: 1.298 MB / 473.2 MB, free: 8.492 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.439e-05/0.5542, allocations: 55.41 kB / 473.2 MB, free: 8.426 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000293/0.5545, allocations: 266.4 kB / 473.5 MB, free: 8.16 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.391e-05/0.5546, allocations: 29.7 kB / 473.5 MB, free: 8.125 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001191/0.5547, allocations: 192 kB / 473.7 MB, free: 7.934 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.48e-05/0.5548, allocations: 118.3 kB / 473.8 MB, free: 7.816 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.688e-05/0.5548, allocations: 8 kB / 473.8 MB, free: 7.809 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002433/0.5551, allocations: 342.8 kB / 474.1 MB, free: 7.465 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001814/0.5553, allocations: 112.8 kB / 474.3 MB, free: 7.355 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002514/0.5555, allocations: 230 kB / 474.5 MB, free: 7.086 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002374/0.5558, allocations: 145 kB / 474.6 MB, free: 6.945 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.5558, allocations: 4 kB / 474.6 MB, free: 6.941 MB / 382.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008462/0.5566, allocations: 458.6 kB / 475.1 MB, free: 6.48 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.513e-05/0.5567, allocations: 8 kB / 475.1 MB, free: 6.473 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.076e-05/0.5567, allocations: 4 kB / 475.1 MB, free: 6.469 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004486/0.5612, allocations: 241.7 kB / 475.3 MB, free: 6.227 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003369/0.5615, allocations: 83.91 kB / 475.4 MB, free: 6.145 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001498/0.563, allocations: 1.848 MB / 477.3 MB, free: 4.137 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002978/0.5633, allocations: 31.92 kB / 477.3 MB, free: 4.105 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.96e-05/0.5634, allocations: 23.98 kB / 477.3 MB, free: 4.082 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002098/0.5636, allocations: 157.9 kB / 477.5 MB, free: 3.918 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.025e-05/0.5637, allocations: 35.61 kB / 477.5 MB, free: 3.883 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001096/0.5648, allocations: 0.6937 MB / 478.2 MB, free: 3.172 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-05/0.5648, allocations: 11.94 kB / 478.2 MB, free: 3.16 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.653e-06/0.5648, allocations: 3.938 kB / 478.2 MB, free: 3.156 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007994/0.5656, allocations: 0.8633 MB / 479.1 MB, free: 2.207 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001564/0.5672, allocations: 1.187 MB / 480.3 MB, free: 0.957 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.5672, allocations: 3.938 kB / 480.3 MB, free: 0.9531 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002452/0.5675, allocations: 75.86 kB / 480.3 MB, free: 0.8789 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001568/0.569, allocations: 172.6 kB / 480.5 MB, free: 0.707 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.676e-05/0.5691, allocations: 12 kB / 480.5 MB, free: 0.6953 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003392/0.5694, allocations: 0.5774 MB / 481.1 MB, free: 96 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.5694, allocations: 4.031 kB / 481.1 MB, free: 92 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000922/0.5704, allocations: 0.729 MB / 481.8 MB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00012/0.5705, allocations: 128.6 kB / 481.9 MB, free: 15.2 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.664e-05/0.5705, allocations: 8.156 kB / 482 MB, free: 15.19 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002554/0.5708, allocations: 12 kB / 482 MB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.95e-05/0.5709, allocations: 27.95 kB / 482 MB, free: 15.15 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.561e-05/0.5709, allocations: 8 kB / 482 MB, free: 15.14 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002211/0.5712, allocations: 221.9 kB / 482.2 MB, free: 14.93 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5712, allocations: 0 / 482.2 MB, free: 14.93 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.005428/0.5766, allocations: 0.7457 MB / 483 MB, free: 14.18 MB / 398.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.03762/0.6143, allocations: 7.564 MB / 490.5 MB, free: 6.578 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001128/0.6154, allocations: 482.1 kB / 491 MB, free: 6.098 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.08e-06/0.6155, allocations: 0 / 491 MB, free: 6.098 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003626/0.6158, allocations: 218.4 kB / 491.2 MB, free: 5.887 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001087/0.6169, allocations: 176 kB / 491.4 MB, free: 5.719 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008302/0.6252, allocations: 4.845 MB / 496.2 MB, free: 0.75 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003882/0.6257, allocations: 0.8168 MB / 497 MB, free: 15.91 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004668/0.6261, allocations: 191.8 kB / 497.2 MB, free: 15.72 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001807/0.6263, allocations: 135.4 kB / 497.4 MB, free: 15.59 MB / 414.1 MB Notification: Performance of SimCode: time 9.52e-07/0.6263, allocations: 0 / 497.4 MB, free: 15.59 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05849/0.6848, allocations: 32.56 MB / 0.5175 GB, free: 15.17 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001771/0.6851, allocations: 195.7 kB / 0.5177 GB, free: 14.93 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.056/3.741, allocations: 4 kB / 0.5177 GB, free: 14.93 MB / 446.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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Media_Examples_R134a_R134a1_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Media_Examples_R134a_R134a1.fmu > Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Media.Examples.R134a.R134a1_res.mat does not exist to compare? outputFormat=mat