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.0009298/0.0009301, allocations: 94.94 kB / 16.3 MB, free: 5.531 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.0008831/0.0008831, allocations: 178 kB / 17.19 MB, free: 5.465 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.307/1.307, allocations: 223.2 MB / 241.1 MB, free: 14.66 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003168/0.0003169, allocations: 4.781 kB / 300.8 MB, free: 6.141 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1125, allocations: 50.42 MB / 351.2 MB, free: 3.707 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.DryAir2): time 0.1816/0.2942, allocations: 22.32 MB / 373.5 MB, free: 9.949 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005938/0.3002, allocations: 5.301 MB / 378.8 MB, free: 9.891 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003077/0.3005, allocations: 7.375 kB / 378.9 MB, free: 9.891 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006612/0.3012, allocations: 246.8 kB / 379.1 MB, free: 9.891 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006027/0.3018, allocations: 321 kB / 379.4 MB, free: 9.887 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003665/0.3055, allocations: 1.347 MB / 380.8 MB, free: 9.879 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00105/0.3065, allocations: 0.6997 MB / 381.5 MB, free: 9.879 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000221/0.3067, allocations: 110.5 kB / 381.6 MB, free: 9.855 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005437/0.3073, allocations: 354 kB / 381.9 MB, free: 9.848 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003413/0.3077, allocations: 251.2 kB / 382.2 MB, free: 9.789 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.199e-05/0.3077, allocations: 22.06 kB / 382.2 MB, free: 9.789 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001691/0.3094, allocations: 0.7477 MB / 382.9 MB, free: 9.785 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001327/0.3096, allocations: 97.8 kB / 383 MB, free: 9.773 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001418/0.3097, allocations: 130.5 kB / 383.1 MB, free: 9.727 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001102/0.3108, allocations: 0.751 MB / 383.9 MB, free: 9.676 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.3108, allocations: 1.859 kB / 383.9 MB, free: 9.676 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.3108, allocations: 0 / 383.9 MB, free: 9.676 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.366e-06/0.3108, allocations: 0 / 383.9 MB, free: 9.676 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: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.0009914/0.3118, allocations: 0.6854 MB / 384.6 MB, free: 9.164 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.275e-05/0.3119, allocations: 14.16 kB / 384.6 MB, free: 9.16 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.377e-05/0.312, allocations: 83.56 kB / 384.7 MB, free: 9.117 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007602/0.3128, allocations: 77.31 kB / 384.8 MB, free: 9.094 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003993/0.3132, allocations: 327.5 kB / 385.1 MB, free: 8.863 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.302e-05/0.3132, allocations: 31.06 kB / 385.1 MB, free: 8.863 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.107e-05/0.3133, allocations: 38.06 kB / 385.1 MB, free: 8.863 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006009/0.3139, allocations: 465.3 kB / 385.6 MB, free: 8.711 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.94e-05/0.3139, allocations: 3.844 kB / 385.6 MB, free: 8.711 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.202e-05/0.314, allocations: 18.25 kB / 385.6 MB, free: 8.711 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.36e-05/0.314, allocations: 9.375 kB / 385.6 MB, free: 8.711 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004416/0.3144, allocations: 304.7 kB / 385.9 MB, free: 8.688 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01238/0.3268, allocations: 6.73 MB / 392.7 MB, free: 4.715 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004473/0.3273, allocations: 274 kB / 392.9 MB, free: 4.66 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009415/0.3367, allocations: 3.886 MB / 396.8 MB, free: 2.129 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.265e-05/0.3368, allocations: 37.97 kB / 396.8 MB, free: 2.09 MB / 302.1 MB Notification: Performance of pre-optimization done (n=35): time 2.495e-06/0.3368, allocations: 0 / 396.8 MB, free: 2.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.01152/0.3483, allocations: 2.485 MB / 399.3 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.004e-05/0.3484, allocations: 60.86 kB / 399.4 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003032/0.3487, allocations: 302.4 kB / 399.7 MB, free: 0.5938 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.234e-05/0.3487, allocations: 36.55 kB / 399.7 MB, free: 0.5547 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.549e-05/0.3488, allocations: 227.6 kB / 399.9 MB, free: 356 kB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.617e-05/0.3489, allocations: 158.6 kB / 400.1 MB, free: 216 kB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.073e-05/0.349, allocations: 11.25 kB / 400.1 MB, free: 208 kB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001138/0.3491, allocations: 345.3 kB / 400.4 MB, free: 15.86 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002267/0.3493, allocations: 151.8 kB / 400.6 MB, free: 15.79 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003223/0.3496, allocations: 277.6 kB / 400.9 MB, free: 15.56 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002888/0.3499, allocations: 189.7 kB / 401.1 MB, free: 15.47 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.3499, allocations: 2.562 kB / 401.1 MB, free: 15.47 MB / 318.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009954/0.3509, allocations: 0.5891 MB / 401.6 MB, free: 15.14 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.032e-05/0.351, allocations: 10.62 kB / 401.7 MB, free: 15.14 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.23e-05/0.351, allocations: 9.766 kB / 401.7 MB, free: 15.13 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006319/0.3573, allocations: 0.7698 MB / 402.4 MB, free: 14.82 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004813/0.3579, allocations: 109.8 kB / 402.5 MB, free: 14.8 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001955/0.3598, allocations: 2.465 MB / 405 MB, free: 12.32 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004467/0.3603, allocations: 39.39 kB / 405 MB, free: 12.3 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.672e-05/0.3603, allocations: 23.55 kB / 405.1 MB, free: 12.3 MB / 318.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.0002578/0.3606, allocations: 176.6 kB / 405.2 MB, free: 12.14 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.288e-05/0.3607, allocations: 38.97 kB / 405.3 MB, free: 12.12 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001125/0.3618, allocations: 0.8547 MB / 406.1 MB, free: 11.62 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.448e-05/0.3618, allocations: 13.11 kB / 406.1 MB, free: 11.61 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.575e-06/0.3618, allocations: 0 / 406.1 MB, free: 11.61 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009354/0.3628, allocations: 0.9624 MB / 407.1 MB, free: 10.89 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002087/0.3649, allocations: 1.483 MB / 408.6 MB, free: 9.594 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.406e-06/0.3649, allocations: 7.922 kB / 408.6 MB, free: 9.586 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003077/0.3652, allocations: 79.86 kB / 408.7 MB, free: 9.508 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003338/0.3686, allocations: 0.6375 MB / 409.3 MB, free: 8.863 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.664e-05/0.3686, allocations: 19.98 kB / 409.3 MB, free: 8.844 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009048/0.3695, allocations: 1.273 MB / 410.6 MB, free: 7.52 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.44e-06/0.3696, allocations: 7.891 kB / 410.6 MB, free: 7.512 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001557/0.3711, allocations: 1.225 MB / 411.8 MB, free: 6.258 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001929/0.3713, allocations: 124.5 kB / 412 MB, free: 6.117 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.171e-05/0.3714, allocations: 15.95 kB / 412 MB, free: 6.102 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002816/0.3717, allocations: 21.67 kB / 412 MB, free: 6.082 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.982e-05/0.3717, allocations: 39.89 kB / 412 MB, free: 6.043 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.381e-05/0.3718, allocations: 19.98 kB / 412.1 MB, free: 6.023 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002389/0.372, allocations: 205.9 kB / 412.3 MB, free: 5.816 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.372, allocations: 0 / 412.3 MB, free: 5.816 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009722/0.373, allocations: 235.9 kB / 412.5 MB, free: 5.586 MB / 318.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.002397/0.3754, allocations: 2.012 MB / 414.5 MB, free: 3.57 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001127/0.3765, allocations: 0.6831 MB / 415.2 MB, free: 2.875 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.746e-06/0.3766, allocations: 0 / 415.2 MB, free: 2.875 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008334/0.3774, allocations: 428.3 kB / 415.6 MB, free: 2.457 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001123/0.3785, allocations: 230.2 kB / 415.8 MB, free: 2.238 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005055/0.3836, allocations: 5.252 MB / 421.1 MB, free: 12.85 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004162/0.384, allocations: 0.8522 MB / 421.9 MB, free: 11.98 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000312/0.3844, allocations: 72.33 kB / 422 MB, free: 11.9 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000197/0.3846, allocations: 159.4 kB / 422.2 MB, free: 11.75 MB / 334.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3846, allocations: 0 / 422.2 MB, free: 11.75 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03077/0.4153, allocations: 16.08 MB / 438.2 MB, free: 11.89 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001611/0.4155, allocations: 204.7 kB / 438.4 MB, free: 11.64 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.277/2.692, allocations: 0 / 438.4 MB, free: 11.64 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