Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.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.ReferenceAir.DryAir2,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_DryAir2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.DryAir2,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_DryAir2",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.0008826/0.0008826, allocations: 93.25 kB / 16.31 MB, free: 5.582 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.001076/0.001076, allocations: 181.5 kB / 17.21 MB, free: 5.5 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.352/1.352, allocations: 223.2 MB / 241.2 MB, free: 5.281 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002541/0.0002543, allocations: 7.953 kB / 300.9 MB, free: 5.602 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09088/0.09115, allocations: 50.42 MB / 351.3 MB, free: 11.37 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir2): time 0.03125/0.1224, allocations: 34.61 MB / 385.9 MB, free: 8.66 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005169/0.1277, allocations: 4.291 MB / 390.2 MB, free: 4.359 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004541/0.1282, allocations: 7.938 kB / 390.2 MB, free: 4.352 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007461/0.1289, allocations: 226.7 kB / 390.5 MB, free: 4.129 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008407/0.1298, allocations: 457.6 kB / 390.9 MB, free: 3.68 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003763/0.1335, allocations: 1.276 MB / 392.2 MB, free: 2.402 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001773/0.1353, allocations: 1.616 MB / 393.8 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002383/0.1356, allocations: 122.2 kB / 393.9 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006086/0.1362, allocations: 414.5 kB / 394.3 MB, free: 260 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005105/0.1367, allocations: 394.5 kB / 394.7 MB, free: 15.87 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.064e-05/0.1368, allocations: 20 kB / 394.7 MB, free: 15.85 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001522/0.1383, allocations: 0.7024 MB / 395.4 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001341/0.1385, allocations: 99.62 kB / 395.5 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000151/0.1386, allocations: 125.5 kB / 395.6 MB, free: 14.92 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008864/0.1395, allocations: 0.756 MB / 396.4 MB, free: 14.16 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.1395, allocations: 4 kB / 396.4 MB, free: 14.16 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1395, allocations: 0 / 396.4 MB, free: 14.16 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.412e-06/0.1395, allocations: 0 / 396.4 MB, free: 14.16 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: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.0009802/0.1405, allocations: 0.6861 MB / 397.1 MB, free: 13.42 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.027e-05/0.1406, allocations: 8.031 kB / 397.1 MB, free: 13.41 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.757e-05/0.1407, allocations: 78.53 kB / 397.2 MB, free: 13.33 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005349/0.1412, allocations: 83.41 kB / 397.3 MB, free: 13.25 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004127/0.1416, allocations: 330.2 kB / 397.6 MB, free: 12.88 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.428e-05/0.1417, allocations: 29 kB / 397.6 MB, free: 12.86 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.522e-05/0.1417, allocations: 40 kB / 397.6 MB, free: 12.82 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000675/0.1424, allocations: 463.6 kB / 398.1 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.076e-05/0.1425, allocations: 11.83 kB / 398.1 MB, free: 12.31 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.198e-05/0.1425, allocations: 20 kB / 398.1 MB, free: 12.29 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.268e-05/0.1425, allocations: 12 kB / 398.1 MB, free: 12.28 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004623/0.143, allocations: 299.7 kB / 398.4 MB, free: 11.98 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01248/0.1555, allocations: 6.727 MB / 405.2 MB, free: 4.668 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004787/0.156, allocations: 266.5 kB / 405.4 MB, free: 4.398 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002185/0.1562, allocations: 168.6 kB / 405.6 MB, free: 4.23 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009695/0.1659, allocations: 3.877 MB / 409.5 MB, free: 56 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.057e-05/0.166, allocations: 34.56 kB / 409.5 MB, free: 12 kB / 334.1 MB Notification: Performance of pre-optimization done (n=35): time 2.134e-06/0.166, allocations: 3.938 kB / 409.5 MB, free: 8 kB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.01108/0.1771, allocations: 2.495 MB / 412 MB, free: 13.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.298e-05/0.1772, allocations: 55.41 kB / 412 MB, free: 13.37 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003167/0.1775, allocations: 299.3 kB / 412.3 MB, free: 13.07 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.544e-05/0.1775, allocations: 41.7 kB / 412.4 MB, free: 13.03 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001464/0.1777, allocations: 220 kB / 412.6 MB, free: 12.8 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001193/0.1778, allocations: 165.6 kB / 412.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.601e-05/0.1779, allocations: 8 kB / 412.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001425/0.178, allocations: 346.8 kB / 413.1 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002408/0.1783, allocations: 149.1 kB / 413.3 MB, free: 12.14 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003164/0.1786, allocations: 279.7 kB / 413.5 MB, free: 11.82 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003315/0.1789, allocations: 192.8 kB / 413.7 MB, free: 11.63 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.1789, allocations: 0 / 413.7 MB, free: 11.63 MB / 350.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001047/0.18, allocations: 0.5878 MB / 414.3 MB, free: 11.03 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.686e-05/0.18, allocations: 8.422 kB / 414.3 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.867e-06/0.18, allocations: 8 kB / 414.3 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005636/0.1857, allocations: 0.7712 MB / 415.1 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003955/0.1861, allocations: 103.9 kB / 415.2 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001898/0.188, allocations: 2.475 MB / 417.7 MB, free: 7.465 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003407/0.1883, allocations: 35.95 kB / 417.7 MB, free: 7.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.299e-05/0.1884, allocations: 23.94 kB / 417.7 MB, free: 7.406 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 58 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 1,2 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.000226/0.1886, allocations: 173.7 kB / 417.9 MB, free: 7.227 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.094e-05/0.1887, allocations: 39.53 kB / 417.9 MB, free: 7.188 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001169/0.1899, allocations: 0.8553 MB / 418.8 MB, free: 6.316 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.267e-05/0.1899, allocations: 11.98 kB / 418.8 MB, free: 6.305 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.1899, allocations: 7.953 kB / 418.8 MB, free: 6.297 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009625/0.1909, allocations: 0.9611 MB / 419.8 MB, free: 5.266 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001904/0.1928, allocations: 1.492 MB / 421.3 MB, free: 3.707 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.912e-06/0.1928, allocations: 3.938 kB / 421.3 MB, free: 3.703 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002973/0.1931, allocations: 71.91 kB / 421.3 MB, free: 3.633 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00334/0.1965, allocations: 0.6335 MB / 422 MB, free: 2.992 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.741e-05/0.1965, allocations: 15.98 kB / 422 MB, free: 2.977 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009392/0.1975, allocations: 1.277 MB / 423.3 MB, free: 1.648 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/0.1975, allocations: 4.031 kB / 423.3 MB, free: 1.645 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001514/0.199, allocations: 1.223 MB / 424.5 MB, free: 404 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001376/0.1991, allocations: 120.5 kB / 424.6 MB, free: 264 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.865e-05/0.1992, allocations: 15.95 kB / 424.6 MB, free: 248 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002521/0.1995, allocations: 23.83 kB / 424.6 MB, free: 224 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.809e-05/0.1995, allocations: 27.97 kB / 424.7 MB, free: 196 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.325e-05/0.1996, allocations: 19.98 kB / 424.7 MB, free: 176 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.1629/0.3624, allocations: 207.5 kB / 424.9 MB, free: 70.57 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.3625, allocations: 0 / 424.9 MB, free: 70.57 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001107/0.3636, allocations: 233.9 kB / 425.1 MB, free: 70.57 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (volume.medium.p,volume.medium.T,volume1.medium.p,volume1.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 39 * 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: 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 2,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.002163/0.3658, allocations: 1.926 MB / 427 MB, free: 69.89 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001101/0.3669, allocations: 0.6805 MB / 427.7 MB, free: 69.77 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/0.3669, allocations: 3.031 kB / 427.7 MB, free: 69.77 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008172/0.3677, allocations: 429.6 kB / 428.1 MB, free: 69.77 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001125/0.3689, allocations: 235.5 kB / 428.4 MB, free: 69.77 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004255/0.3731, allocations: 3.007 MB / 431.4 MB, free: 68.74 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004426/0.3736, allocations: 0.8337 MB / 432.2 MB, free: 68.04 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003462/0.3739, allocations: 70.86 kB / 432.3 MB, free: 68.02 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002421/0.3742, allocations: 157.8 kB / 432.4 MB, free: 68.02 MB / 350.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3742, allocations: 4.5 kB / 432.4 MB, free: 68.02 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03108/0.4053, allocations: 16.12 MB / 448.6 MB, free: 59.03 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000156/0.4055, allocations: 208.6 kB / 448.8 MB, free: 58.79 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.327/2.732, allocations: 0 / 448.8 MB, free: 58.79 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_DryAir2_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_DryAir2.fmu > Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir2_res.mat does not exist to compare? outputFormat=mat