Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T.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.Inverse_sh_T,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_Inverse_sh_T",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.Inverse_sh_T,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_Inverse_sh_T",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.0008534/0.0008534, allocations: 94 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.0008814/0.0008814, allocations: 184.6 kB / 17.2 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.309/1.309, allocations: 223.2 MB / 241.1 MB, free: 400 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002819/0.0002823, allocations: 8 kB / 300.8 MB, free: 6.367 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1042, allocations: 50.41 MB / 351.2 MB, free: 3.953 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.Inverse_sh_T): time 0.001247/0.1055, allocations: 1.04 MB / 352.3 MB, free: 2.902 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009933/0.1155, allocations: 10.12 MB / 362.4 MB, free: 8.738 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.869e-05/0.1156, allocations: 7.938 kB / 362.4 MB, free: 8.73 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.38e-05/0.1156, allocations: 3.984 kB / 362.4 MB, free: 8.727 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002637/0.1183, allocations: 0.8412 MB / 363.2 MB, free: 7.883 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001331/0.1196, allocations: 0.4907 MB / 363.7 MB, free: 7.391 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 7.994e-05/0.1197, allocations: 51.8 kB / 363.8 MB, free: 7.34 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.764e-05/0.1197, allocations: 4 kB / 363.8 MB, free: 7.336 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.713e-05/0.1198, allocations: 27.91 kB / 363.8 MB, free: 7.309 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.111e-05/0.1199, allocations: 31.91 kB / 363.8 MB, free: 7.277 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.493e-05/0.1199, allocations: 4 kB / 363.8 MB, free: 7.273 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002932/0.1228, allocations: 1.502 MB / 365.3 MB, free: 5.77 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.538e-05/0.1229, allocations: 3.938 kB / 365.3 MB, free: 5.766 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.171e-05/0.1229, allocations: 41.7 kB / 365.4 MB, free: 5.719 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001149/0.1241, allocations: 0.6668 MB / 366.1 MB, free: 5.051 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.1241, allocations: 0 / 366.1 MB, free: 5.051 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.147e-06/0.1241, allocations: 3.984 kB / 366.1 MB, free: 5.047 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.108e-06/0.1241, allocations: 0 / 366.1 MB, free: 5.047 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0006573/0.1248, allocations: 0.53 MB / 366.6 MB, free: 4.469 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.563e-05/0.1248, allocations: 8.031 kB / 366.6 MB, free: 4.461 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.467e-05/0.1249, allocations: 34.56 kB / 366.6 MB, free: 4.418 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001332/0.125, allocations: 11.98 kB / 366.6 MB, free: 4.406 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001418/0.1252, allocations: 178.9 kB / 366.8 MB, free: 4.191 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.63e-05/0.1252, allocations: 3.984 kB / 366.8 MB, free: 4.188 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.007e-05/0.1252, allocations: 4 kB / 366.8 MB, free: 4.184 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001562/0.1254, allocations: 63.39 kB / 366.9 MB, free: 4.109 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.498e-06/0.1254, allocations: 3.953 kB / 366.9 MB, free: 4.105 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.21e-05/0.1254, allocations: 0 / 366.9 MB, free: 4.105 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.207e-06/0.1254, allocations: 8 kB / 366.9 MB, free: 4.098 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001056/0.1255, allocations: 23.92 kB / 366.9 MB, free: 4.074 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002008/0.1257, allocations: 178.5 kB / 367.1 MB, free: 3.848 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002591/0.126, allocations: 77.28 kB / 367.2 MB, free: 3.754 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00587/0.1319, allocations: 3.27 MB / 370.4 MB, free: 40 kB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.1869/0.3188, allocations: 34.5 kB / 370.5 MB, free: 25.94 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 5.721e-06/0.3188, allocations: 0 / 370.5 MB, free: 25.94 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0004072/0.3192, allocations: 78.44 kB / 370.6 MB, free: 25.91 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.217e-05/0.3193, allocations: 79.41 kB / 370.6 MB, free: 25.82 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.871e-05/0.3194, allocations: 114 kB / 370.7 MB, free: 25.72 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.415e-05/0.3194, allocations: 28.23 kB / 370.8 MB, free: 25.69 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.937e-05/0.3194, allocations: 85.73 kB / 370.9 MB, free: 25.61 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.152e-05/0.3195, allocations: 21.95 kB / 370.9 MB, free: 25.6 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.869e-06/0.3195, allocations: 0.6875 kB / 370.9 MB, free: 25.6 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.742e-05/0.3195, allocations: 318.7 kB / 371.2 MB, free: 25.29 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.362e-05/0.3196, allocations: 11.52 kB / 371.2 MB, free: 25.29 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.633e-05/0.3197, allocations: 24.72 kB / 371.2 MB, free: 25.27 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.602e-05/0.3197, allocations: 15.72 kB / 371.2 MB, free: 25.27 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.3197, allocations: 1.031 kB / 371.2 MB, free: 25.27 MB / 302.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001581/0.3199, allocations: 71.11 kB / 371.3 MB, free: 25.24 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.041e-05/0.3199, allocations: 12.8 kB / 371.3 MB, free: 25.24 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.3199, allocations: 0.6875 kB / 371.3 MB, free: 25.24 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.402e-05/0.32, allocations: 1.438 kB / 371.3 MB, free: 25.24 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.216e-05/0.32, allocations: 11.36 kB / 371.3 MB, free: 25.24 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.743e-06/0.3201, allocations: 1.297 kB / 371.3 MB, free: 25.24 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.659e-05/0.3201, allocations: 6.938 kB / 371.3 MB, free: 25.24 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.544e-05/0.3201, allocations: 4.234 kB / 371.3 MB, free: 25.24 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (6): * Single equations (assignments): 6 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.709e-05/0.3202, allocations: 111.9 kB / 371.5 MB, free: 25.13 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.744e-05/0.3202, allocations: 12.02 kB / 371.5 MB, free: 25.12 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002871/0.3205, allocations: 109.2 kB / 371.6 MB, free: 25.07 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/0.3205, allocations: 2.656 kB / 371.6 MB, free: 25.07 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.3205, allocations: 1.375 kB / 371.6 MB, free: 25.07 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.3206, allocations: 1.594 kB / 371.6 MB, free: 25.07 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001219/0.3207, allocations: 167 kB / 371.7 MB, free: 24.89 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.3207, allocations: 4.375 kB / 371.7 MB, free: 24.89 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.028e-05/0.3208, allocations: 10.89 kB / 371.8 MB, free: 24.89 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.446e-06/0.3208, allocations: 1.406 kB / 371.8 MB, free: 24.89 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.352e-05/0.3208, allocations: 6.922 kB / 371.8 MB, free: 24.88 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.544e-06/0.3208, allocations: 1.25 kB / 371.8 MB, free: 24.88 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.3208, allocations: 0.75 kB / 371.8 MB, free: 24.88 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001875/0.321, allocations: 119.6 kB / 371.9 MB, free: 24.79 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.029e-05/0.3211, allocations: 98.09 kB / 372 MB, free: 24.7 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.148e-05/0.3211, allocations: 7.625 kB / 372 MB, free: 24.69 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.536e-05/0.3212, allocations: 5.125 kB / 372 MB, free: 24.69 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.291e-05/0.3212, allocations: 7.812 kB / 372 MB, free: 24.69 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.271e-05/0.3212, allocations: 4.281 kB / 372 MB, free: 24.69 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.712e-05/0.3213, allocations: 92.77 kB / 372.1 MB, free: 24.62 MB / 302.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3213, allocations: 0 / 372.1 MB, free: 24.62 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001005/0.3223, allocations: 318.3 kB / 372.4 MB, free: 24.61 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 simulation (6): * Single equations (assignments): 6 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001445/0.3238, allocations: 1.183 MB / 373.6 MB, free: 23.88 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001702/0.3239, allocations: 31.84 kB / 373.6 MB, free: 23.88 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.324, allocations: 3.5 kB / 373.6 MB, free: 23.88 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.326e-05/0.324, allocations: 24.7 kB / 373.6 MB, free: 23.88 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001665/0.3242, allocations: 10 kB / 373.7 MB, free: 23.88 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001147/0.3254, allocations: 0.7941 MB / 374.4 MB, free: 23.31 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001047/0.3255, allocations: 0.6872 MB / 375.1 MB, free: 22.62 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001199/0.3256, allocations: 52.11 kB / 375.2 MB, free: 22.6 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.222e-05/0.3257, allocations: 21.81 kB / 375.2 MB, free: 22.59 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3257, allocations: 0 / 375.2 MB, free: 22.59 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02705/0.3527, allocations: 10.12 MB / 385.3 MB, free: 19.51 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001874/0.353, allocations: 181.4 kB / 385.5 MB, free: 19.27 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.277/2.63, allocations: 2.875 kB / 385.5 MB, free: 19.27 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_Inverse_sh_T_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Media_Examples_ReferenceAir_Inverse_sh_T.fmu > Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T_res.mat does not exist to compare? outputFormat=mat