Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir1.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.ReferenceAir.DryAir1,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_ReferenceAir_DryAir1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.DryAir1,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_ReferenceAir_DryAir1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007986/0.0007987, allocations: 98.11 kB / 17 MB, free: 6.121 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000869/0.0008691, allocations: 198.3 kB / 17.91 MB, free: 5.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.31/1.31, allocations: 227.3 MB / 246 MB, free: 11.97 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002426/0.0002428, allocations: 8 kB / 306.8 MB, free: 1.473 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09714/0.0974, allocations: 51.47 MB / 358.3 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir1): time 0.1896/0.287, allocations: 24.95 MB / 383.2 MB, free: 9.121 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004731/0.2918, allocations: 3.878 MB / 387.1 MB, free: 6.535 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000522/0.2924, allocations: 6.469 kB / 387.1 MB, free: 6.531 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000699/0.2931, allocations: 160 kB / 387.3 MB, free: 6.449 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009063/0.294, allocations: 321.7 kB / 387.6 MB, free: 6.266 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004621/0.2987, allocations: 1.15 MB / 388.7 MB, free: 5.676 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001462/0.3001, allocations: 1.107 MB / 389.9 MB, free: 5.246 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002089/0.3003, allocations: 82.17 kB / 389.9 MB, free: 5.203 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01094/0.3113, allocations: 7.485 MB / 397.4 MB, free: 3.984 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003436/0.3117, allocations: 266.7 kB / 397.7 MB, free: 3.844 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.411e-05/0.3117, allocations: 13.47 kB / 397.7 MB, free: 3.844 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001401/0.3131, allocations: 0.6829 MB / 398.4 MB, free: 3.535 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.086e-05/0.3132, allocations: 70.34 kB / 398.4 MB, free: 3.484 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.62e-05/0.3133, allocations: 98.08 kB / 398.5 MB, free: 3.426 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005852/0.3139, allocations: 0.6048 MB / 399.1 MB, free: 3.031 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.87e-06/0.3139, allocations: 0 / 399.1 MB, free: 3.031 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3139, allocations: 0 / 399.1 MB, free: 3.031 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.871e-06/0.3139, allocations: 0 / 399.1 MB, free: 3.031 MB / 302.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.0006555/0.3146, allocations: 0.584 MB / 399.7 MB, free: 2.508 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.688e-05/0.3146, allocations: 18.34 kB / 399.7 MB, free: 2.5 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.052e-05/0.3147, allocations: 64.31 kB / 399.8 MB, free: 2.438 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004178/0.3151, allocations: 59.09 kB / 399.9 MB, free: 2.41 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002713/0.3154, allocations: 277.2 kB / 400.1 MB, free: 2.133 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.673e-05/0.3154, allocations: 21.31 kB / 400.2 MB, free: 2.125 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.877e-05/0.3155, allocations: 24.31 kB / 400.2 MB, free: 2.117 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004209/0.3159, allocations: 335.7 kB / 400.5 MB, free: 1.859 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.541e-05/0.3159, allocations: 1.812 kB / 400.5 MB, free: 1.859 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.929e-05/0.316, allocations: 12.22 kB / 400.5 MB, free: 1.852 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.077e-06/0.316, allocations: 5.656 kB / 400.5 MB, free: 1.852 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002867/0.3163, allocations: 207.4 kB / 400.7 MB, free: 1.758 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01062/0.3269, allocations: 5.913 MB / 406.6 MB, free: 11.79 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000322/0.3272, allocations: 179.2 kB / 406.8 MB, free: 11.6 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001275/0.3274, allocations: 89.16 kB / 406.9 MB, free: 11.51 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009146/0.3365, allocations: 3.877 MB / 410.8 MB, free: 7.336 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.539e-05/0.3366, allocations: 30.75 kB / 410.8 MB, free: 7.297 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 2.174e-06/0.3366, allocations: 7.938 kB / 410.8 MB, free: 7.289 MB / 318.1 MB Notification: Performance of matching and sorting (n=26): time 0.005842/0.3425, allocations: 1.417 MB / 412.2 MB, free: 5.809 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.818e-05/0.3425, allocations: 55.41 kB / 412.3 MB, free: 5.742 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002792/0.3428, allocations: 266.5 kB / 412.6 MB, free: 5.477 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.347e-05/0.3429, allocations: 25.7 kB / 412.6 MB, free: 5.445 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001246/0.343, allocations: 192 kB / 412.8 MB, free: 5.254 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.896e-05/0.3431, allocations: 98.58 kB / 412.9 MB, free: 5.156 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.514e-05/0.3431, allocations: 8 kB / 412.9 MB, free: 5.148 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001335/0.3432, allocations: 334.8 kB / 413.2 MB, free: 4.812 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001438/0.3434, allocations: 87.97 kB / 413.3 MB, free: 4.727 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002193/0.3436, allocations: 183.1 kB / 413.5 MB, free: 4.508 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002071/0.3438, allocations: 124.4 kB / 413.6 MB, free: 4.387 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.05e-06/0.3438, allocations: 4 kB / 413.6 MB, free: 4.383 MB / 318.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0006388/0.3445, allocations: 394.7 kB / 414 MB, free: 3.984 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.767e-05/0.3445, allocations: 6.5 kB / 414 MB, free: 3.98 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.655e-06/0.3445, allocations: 4 kB / 414 MB, free: 3.977 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002804/0.3473, allocations: 409.6 kB / 414.4 MB, free: 3.57 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002987/0.3477, allocations: 67.91 kB / 414.5 MB, free: 3.504 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001442/0.3491, allocations: 1.879 MB / 416.3 MB, free: 1.465 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002454/0.3494, allocations: 20.09 kB / 416.4 MB, free: 1.445 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.684e-05/0.3494, allocations: 19.98 kB / 416.4 MB, free: 1.426 MB / 318.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.0001809/0.3496, allocations: 158.4 kB / 416.5 MB, free: 1.262 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.761e-05/0.3497, allocations: 32.81 kB / 416.6 MB, free: 1.23 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006924/0.3504, allocations: 494.2 kB / 417 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/0.3504, allocations: 0 / 417 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.3504, allocations: 4 kB / 417 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006322/0.351, allocations: 0.7241 MB / 417.8 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001174/0.3522, allocations: 0.9377 MB / 418.7 MB, free: 14.91 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/0.3522, allocations: 0 / 418.7 MB, free: 14.91 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000181/0.3524, allocations: 47.91 kB / 418.8 MB, free: 14.87 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001545/0.354, allocations: 324.4 kB / 419.1 MB, free: 14.55 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.198e-05/0.354, allocations: 8.875 kB / 419.1 MB, free: 14.54 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004403/0.3544, allocations: 0.6461 MB / 419.7 MB, free: 13.86 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.3545, allocations: 0 / 419.7 MB, free: 13.86 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008611/0.3553, allocations: 0.7282 MB / 420.5 MB, free: 13.11 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001026/0.3554, allocations: 112.8 kB / 420.6 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.233e-05/0.3555, allocations: 8 kB / 420.6 MB, free: 12.97 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001852/0.3557, allocations: 11.98 kB / 420.6 MB, free: 12.96 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.308e-05/0.3557, allocations: 15.98 kB / 420.6 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.476e-05/0.3557, allocations: 15.98 kB / 420.6 MB, free: 12.93 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001751/0.3559, allocations: 182 kB / 420.8 MB, free: 12.75 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.3559, allocations: 4 kB / 420.8 MB, free: 12.75 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007058/0.3566, allocations: 187.9 kB / 421 MB, free: 12.57 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.001658/0.3583, allocations: 1.433 MB / 422.4 MB, free: 11.1 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007568/0.3591, allocations: 438.7 kB / 422.8 MB, free: 10.66 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.528e-06/0.3591, allocations: 3.938 kB / 422.8 MB, free: 10.66 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004751/0.3596, allocations: 236.5 kB / 423.1 MB, free: 10.43 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009423/0.3605, allocations: 168.1 kB / 423.2 MB, free: 10.27 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00298/0.3635, allocations: 2.042 MB / 425.3 MB, free: 8.137 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003019/0.3639, allocations: 0.7879 MB / 426.1 MB, free: 7.324 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002565/0.3641, allocations: 50.95 kB / 426.1 MB, free: 7.277 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001381/0.3643, allocations: 95.41 kB / 426.2 MB, free: 7.184 MB / 334.1 MB Notification: Performance of SimCode: time 7.81e-07/0.3643, allocations: 0 / 426.2 MB, free: 7.184 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02618/0.3905, allocations: 12.53 MB / 438.7 MB, free: 10.82 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001699/0.3907, allocations: 221.5 kB / 439 MB, free: 10.57 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.228/2.619, allocations: 0 / 439 MB, free: 10.57 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir1.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir1.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Media_Examples_ReferenceAir_DryAir1_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Media_Examples_ReferenceAir_DryAir1.fmu > Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Media.Examples.ReferenceAir.DryAir1_res.mat does not exist to compare? outputFormat=mat