Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir1.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.DryAir1,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_DryAir1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.DryAir1,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_DryAir1",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.001225/0.001224, allocations: 95.17 kB / 16.3 MB, free: 5.656 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.001301/0.001301, allocations: 180.7 kB / 17.19 MB, free: 5.59 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.345/1.345, allocations: 223.2 MB / 241.1 MB, free: 5.363 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002534/0.0002535, allocations: 10.22 kB / 300.8 MB, free: 6.062 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09469/0.09498, allocations: 50.42 MB / 351.2 MB, free: 11.55 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir1): time 0.01618/0.1112, allocations: 16.37 MB / 367.6 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005867/0.1171, allocations: 4.756 MB / 372.3 MB, free: 6.359 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002604/0.1174, allocations: 4 kB / 372.4 MB, free: 6.355 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007349/0.1181, allocations: 179.2 kB / 372.5 MB, free: 6.18 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005828/0.1187, allocations: 223.3 kB / 372.7 MB, free: 5.961 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003546/0.1223, allocations: 1.213 MB / 374 MB, free: 4.75 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007634/0.1231, allocations: 499 kB / 374.4 MB, free: 4.262 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001772/0.1232, allocations: 76.95 kB / 374.5 MB, free: 4.191 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009361/0.1326, allocations: 7.227 MB / 381.7 MB, free: 12.96 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003358/0.133, allocations: 167.4 kB / 381.9 MB, free: 12.8 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.78e-05/0.133, allocations: 20 kB / 381.9 MB, free: 12.78 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001457/0.1345, allocations: 0.7258 MB / 382.7 MB, free: 12.05 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.892e-05/0.1346, allocations: 67.8 kB / 382.7 MB, free: 11.98 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001005/0.1347, allocations: 101.5 kB / 382.8 MB, free: 11.88 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007704/0.1355, allocations: 0.6039 MB / 383.4 MB, free: 11.27 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.294e-06/0.1355, allocations: 0 / 383.4 MB, free: 11.27 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.1355, allocations: 0 / 383.4 MB, free: 11.27 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.831e-06/0.1355, allocations: 0 / 383.4 MB, free: 11.27 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 66 * Number of variables: 66 Notification: Performance of Generate backend data structure: time 0.0009495/0.1365, allocations: 0.5768 MB / 384 MB, free: 10.65 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.769e-05/0.1365, allocations: 12.03 kB / 384 MB, free: 10.64 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.147e-05/0.1366, allocations: 66.53 kB / 384.1 MB, free: 10.56 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004271/0.137, allocations: 55.59 kB / 384.1 MB, free: 10.51 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000337/0.1374, allocations: 278.5 kB / 384.4 MB, free: 10.2 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.847e-05/0.1374, allocations: 20.56 kB / 384.4 MB, free: 10.18 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.934e-05/0.1375, allocations: 27.91 kB / 384.5 MB, free: 10.15 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004701/0.138, allocations: 334.5 kB / 384.8 MB, free: 9.785 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.302e-05/0.138, allocations: 0 / 384.8 MB, free: 9.785 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.202e-05/0.138, allocations: 16 kB / 384.8 MB, free: 9.77 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.118e-05/0.138, allocations: 8 kB / 384.8 MB, free: 9.762 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003129/0.1383, allocations: 214 kB / 385 MB, free: 9.555 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01228/0.1506, allocations: 5.916 MB / 390.9 MB, free: 3.137 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000273/0.1509, allocations: 171.2 kB / 391.1 MB, free: 2.961 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009815/0.1608, allocations: 3.877 MB / 395 MB, free: 14.79 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.941e-05/0.1608, allocations: 42.67 kB / 395 MB, free: 14.73 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 2.074e-06/0.1609, allocations: 0 / 395 MB, free: 14.73 MB / 334.1 MB Notification: Performance of matching and sorting (n=26): time 0.005994/0.1669, allocations: 1.42 MB / 396.4 MB, free: 13.24 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.446e-05/0.1669, allocations: 59.41 kB / 396.5 MB, free: 13.17 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002709/0.1672, allocations: 254.6 kB / 396.7 MB, free: 12.91 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.884e-05/0.1672, allocations: 29.7 kB / 396.8 MB, free: 12.88 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001176/0.1673, allocations: 188 kB / 397 MB, free: 12.69 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.069e-05/0.1674, allocations: 94.59 kB / 397 MB, free: 12.6 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.368e-05/0.1674, allocations: 4 kB / 397 MB, free: 12.59 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001227/0.1676, allocations: 338.8 kB / 397.4 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001511/0.1677, allocations: 95.73 kB / 397.5 MB, free: 12.16 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001966/0.1679, allocations: 179.1 kB / 397.6 MB, free: 11.95 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001914/0.1681, allocations: 119.9 kB / 397.8 MB, free: 11.83 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.1681, allocations: 4 kB / 397.8 MB, free: 11.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0006752/0.1688, allocations: 398.7 kB / 398.2 MB, free: 11.42 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.952e-05/0.1689, allocations: 8 kB / 398.2 MB, free: 11.41 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.1689, allocations: 0 / 398.2 MB, free: 11.41 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003182/0.1721, allocations: 409.6 kB / 398.6 MB, free: 11.01 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002783/0.1723, allocations: 71.91 kB / 398.6 MB, free: 10.94 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001608/0.174, allocations: 1.875 MB / 400.5 MB, free: 8.906 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002523/0.1742, allocations: 24.27 kB / 400.5 MB, free: 8.883 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.725e-05/0.1743, allocations: 16 kB / 400.6 MB, free: 8.867 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (39): * Single equations (assignments): 37 * 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 {2 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001937/0.1745, allocations: 151 kB / 400.7 MB, free: 8.711 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.514e-05/0.1745, allocations: 35.61 kB / 400.7 MB, free: 8.676 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007076/0.1752, allocations: 498.1 kB / 401.2 MB, free: 8.168 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.484e-06/0.1753, allocations: 7.984 kB / 401.2 MB, free: 8.16 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.934e-06/0.1753, allocations: 0 / 401.2 MB, free: 8.16 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006143/0.1759, allocations: 0.7164 MB / 401.9 MB, free: 7.355 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001233/0.1771, allocations: 0.9494 MB / 402.9 MB, free: 6.34 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.672e-06/0.1772, allocations: 3.984 kB / 402.9 MB, free: 6.336 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001776/0.1773, allocations: 43.92 kB / 402.9 MB, free: 6.293 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001654/0.179, allocations: 328.3 kB / 403.3 MB, free: 5.969 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.097e-05/0.179, allocations: 4 kB / 403.3 MB, free: 5.965 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004437/0.1795, allocations: 0.646 MB / 403.9 MB, free: 5.293 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.1795, allocations: 4 kB / 403.9 MB, free: 5.289 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009147/0.1804, allocations: 0.7374 MB / 404.7 MB, free: 4.52 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001074/0.1805, allocations: 104.8 kB / 404.8 MB, free: 4.398 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.281e-05/0.1806, allocations: 8 kB / 404.8 MB, free: 4.391 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001926/0.1808, allocations: 11.91 kB / 404.8 MB, free: 4.379 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.923e-05/0.1808, allocations: 19.91 kB / 404.8 MB, free: 4.359 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.094e-05/0.1809, allocations: 12 kB / 404.8 MB, free: 4.348 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001831/0.181, allocations: 186 kB / 405 MB, free: 4.168 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1811, allocations: 0 / 405 MB, free: 4.168 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006781/0.1817, allocations: 191.9 kB / 405.2 MB, free: 3.98 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,volume.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 (25): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.00166/0.1834, allocations: 1.5 MB / 406.7 MB, free: 2.445 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007415/0.1842, allocations: 463 kB / 407.1 MB, free: 1.98 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.1842, allocations: 4 kB / 407.1 MB, free: 1.977 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004815/0.1847, allocations: 223.8 kB / 407.3 MB, free: 1.758 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008465/0.1855, allocations: 152.9 kB / 407.5 MB, free: 1.613 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003337/0.1889, allocations: 3.859 MB / 411.4 MB, free: 13.64 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003453/0.1892, allocations: 0.7919 MB / 412.1 MB, free: 12.82 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002179/0.1895, allocations: 46.95 kB / 412.2 MB, free: 12.78 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001307/0.1896, allocations: 103.4 kB / 412.3 MB, free: 12.68 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1896, allocations: 0 / 412.3 MB, free: 12.68 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02409/0.2137, allocations: 12.5 MB / 424.8 MB, free: 364 kB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001641/0.2139, allocations: 200.7 kB / 425 MB, free: 120 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.175/2.389, allocations: 3.938 kB / 425 MB, free: 116 kB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir1.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir1.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_DryAir1_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_DryAir1.fmu > Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.DryAir1_res.mat does not exist to compare? outputFormat=mat