Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.DryAir2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.DryAir2,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_ReferenceAir_DryAir2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.DryAir2,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_ReferenceAir_DryAir2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001583/0.001588, allocations: 186.7 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.102/2.102, allocations: 205.4 MB / 222.5 MB, free: 13.75 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001169/0.001169, allocations: 90.92 kB / 270.9 MB, free: 13.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003951/0.0003952, allocations: 8 kB / 327.1 MB, free: 14.99 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.1104, allocations: 47.57 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir2): time 0.2981/0.4085, allocations: 22.34 MB / 397 MB, free: 9.496 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01134/0.4199, allocations: 5.31 MB / 402.3 MB, free: 8.164 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008929/0.4209, allocations: 8.5 kB / 402.3 MB, free: 8.16 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00149/0.4224, allocations: 238.3 kB / 402.5 MB, free: 8.082 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001655/0.4241, allocations: 326.2 kB / 402.8 MB, free: 7.988 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007001/0.4312, allocations: 1.35 MB / 404.2 MB, free: 7.316 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.002101/0.4333, allocations: 0.7 MB / 404.9 MB, free: 6.953 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003924/0.4337, allocations: 119.4 kB / 405 MB, free: 6.891 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001216/0.435, allocations: 345.7 kB / 405.3 MB, free: 6.762 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009173/0.4359, allocations: 250.1 kB / 405.6 MB, free: 6.656 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001483/0.4361, allocations: 22.16 kB / 405.6 MB, free: 6.656 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003104/0.4392, allocations: 0.7487 MB / 406.4 MB, free: 6.5 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002894/0.4396, allocations: 99.84 kB / 406.5 MB, free: 6.453 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000411/0.44, allocations: 128.9 kB / 406.6 MB, free: 6.383 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002463/0.4425, allocations: 0.7522 MB / 407.3 MB, free: 6.211 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.4426, allocations: 0 / 407.3 MB, free: 6.211 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.845e-06/0.4426, allocations: 5.312 kB / 407.3 MB, free: 6.207 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.922e-05/0.4427, allocations: 0 / 407.3 MB, free: 6.207 MB / 282.7 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.001827/0.4445, allocations: 0.6827 MB / 408 MB, free: 5.664 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.507e-05/0.4446, allocations: 9.812 kB / 408 MB, free: 5.664 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001652/0.4447, allocations: 76.56 kB / 408.1 MB, free: 5.602 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008609/0.4456, allocations: 76.16 kB / 408.2 MB, free: 5.578 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006829/0.4463, allocations: 336.6 kB / 408.5 MB, free: 5.293 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.128e-05/0.4464, allocations: 28.69 kB / 408.5 MB, free: 5.281 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.381e-05/0.4465, allocations: 46.39 kB / 408.6 MB, free: 5.262 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001152/0.4476, allocations: 463.7 kB / 409 MB, free: 4.984 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.21e-05/0.4477, allocations: 1.594 kB / 409 MB, free: 4.984 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.344e-05/0.4478, allocations: 17.72 kB / 409.1 MB, free: 4.973 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.675e-05/0.4478, allocations: 10.41 kB / 409.1 MB, free: 4.973 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008164/0.4487, allocations: 302.4 kB / 409.4 MB, free: 4.867 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03758/0.4863, allocations: 6.74 MB / 416.1 MB, free: 15.67 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001238/0.4876, allocations: 268.8 kB / 416.4 MB, free: 15.52 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02485/0.5125, allocations: 3.874 MB / 420.2 MB, free: 12.8 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.802e-05/0.5126, allocations: 41.22 kB / 420.3 MB, free: 12.76 MB / 298.7 MB Notification: Performance of pre-optimization done (n=35): time 5.621e-06/0.5127, allocations: 0 / 420.3 MB, free: 12.76 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.03172/0.5444, allocations: 2.477 MB / 422.8 MB, free: 11.41 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.896e-05/0.5445, allocations: 58.25 kB / 422.8 MB, free: 11.34 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007867/0.5453, allocations: 296.6 kB / 423.1 MB, free: 11.15 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001409/0.5455, allocations: 36.36 kB / 423.1 MB, free: 11.11 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003062/0.5458, allocations: 285.4 kB / 423.4 MB, free: 10.84 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002894/0.5462, allocations: 166.6 kB / 423.6 MB, free: 10.7 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.95e-05/0.5462, allocations: 9.375 kB / 423.6 MB, free: 10.69 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002102/0.5465, allocations: 331.8 kB / 423.9 MB, free: 10.36 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007246/0.5472, allocations: 152.2 kB / 424.1 MB, free: 10.29 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000832/0.5481, allocations: 273.6 kB / 424.3 MB, free: 10.06 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008551/0.549, allocations: 194.4 kB / 424.5 MB, free: 9.961 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.135e-06/0.549, allocations: 2.156 kB / 424.5 MB, free: 9.961 MB / 298.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002926/0.552, allocations: 0.5817 MB / 425.1 MB, free: 9.598 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.068e-05/0.5521, allocations: 8 kB / 425.1 MB, free: 9.59 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.781e-05/0.5521, allocations: 4 kB / 425.1 MB, free: 9.586 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01808/0.5702, allocations: 0.7717 MB / 425.9 MB, free: 8.805 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001272/0.5715, allocations: 107.8 kB / 426 MB, free: 8.699 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004394/0.576, allocations: 2.463 MB / 428.5 MB, free: 6.051 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001059/0.5771, allocations: 31.89 kB / 428.5 MB, free: 6.02 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001178/0.5773, allocations: 23.98 kB / 428.5 MB, free: 5.996 MB / 298.7 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.0006128/0.5779, allocations: 185.7 kB / 428.7 MB, free: 5.805 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002249/0.5781, allocations: 39.53 kB / 428.7 MB, free: 5.766 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003126/0.5813, allocations: 0.8475 MB / 429.6 MB, free: 4.898 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.699e-05/0.5814, allocations: 19.92 kB / 429.6 MB, free: 4.879 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.5814, allocations: 3.938 kB / 429.6 MB, free: 4.875 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002682/0.5841, allocations: 0.9573 MB / 430.6 MB, free: 3.84 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004338/0.5885, allocations: 1.489 MB / 432 MB, free: 2.289 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.173e-05/0.5886, allocations: 7.984 kB / 432.1 MB, free: 2.281 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005851/0.5892, allocations: 67.91 kB / 432.1 MB, free: 2.215 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006109/0.5953, allocations: 0.6492 MB / 432.8 MB, free: 1.559 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001061/0.5955, allocations: 15.98 kB / 432.8 MB, free: 1.543 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001481/0.597, allocations: 1.28 MB / 434.1 MB, free: 216 kB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.597, allocations: 0 / 434.1 MB, free: 216 kB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002777/0.5998, allocations: 1.225 MB / 435.3 MB, free: 14.95 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002753/0.6001, allocations: 124.6 kB / 435.4 MB, free: 14.81 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000101/0.6002, allocations: 12 kB / 435.4 MB, free: 14.8 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005109/0.6008, allocations: 27.94 kB / 435.4 MB, free: 14.77 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.444e-05/0.6009, allocations: 31.91 kB / 435.5 MB, free: 14.74 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.055e-05/0.6009, allocations: 19.98 kB / 435.5 MB, free: 14.72 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003722/0.6013, allocations: 213.9 kB / 435.7 MB, free: 14.51 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.6013, allocations: 0 / 435.7 MB, free: 14.51 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001371/0.6027, allocations: 231.9 kB / 435.9 MB, free: 14.28 MB / 314.7 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.00421/0.607, allocations: 2.014 MB / 437.9 MB, free: 12.24 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002123/0.6091, allocations: 0.6874 MB / 438.6 MB, free: 11.54 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.6092, allocations: 0 / 438.6 MB, free: 11.54 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001623/0.6108, allocations: 424.8 kB / 439 MB, free: 11.12 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002412/0.6133, allocations: 229.6 kB / 439.3 MB, free: 10.9 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009365/0.6227, allocations: 5.284 MB / 444.6 MB, free: 5.477 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005975/0.6233, allocations: 0.8555 MB / 445.4 MB, free: 4.598 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004159/0.6238, allocations: 163.4 kB / 445.6 MB, free: 4.438 MB / 314.7 MB Notification: Performance of SimCode: time 1.312e-06/0.6238, allocations: 4 kB / 445.6 MB, free: 4.434 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.028/3.652, allocations: 14.66 MB / 460.2 MB, free: 5.754 MB / 330.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.DryAir2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.DryAir2_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Media_Examples_ReferenceAir_DryAir2_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Media_Examples_ReferenceAir_DryAir2.fmu > Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.DryAir2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.DryAir2_res.mat does not exist to compare? outputFormat=mat