Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T.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.Inverse_sh_T,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_ReferenceAir_Inverse_sh_T",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.Inverse_sh_T,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001054/0.001054, allocations: 92.95 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001266/0.001266, allocations: 204.8 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.409/1.409, allocations: 227.3 MB / 245.9 MB, free: 10.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000239/0.0002391, allocations: 4 kB / 306.7 MB, free: 1.25 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09521/0.09547, allocations: 51.49 MB / 358.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.Inverse_sh_T): time 0.001488/0.097, allocations: 1.049 MB / 359.2 MB, free: 12.71 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01057/0.1076, allocations: 10.16 MB / 369.4 MB, free: 2.516 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.506e-05/0.1078, allocations: 0 / 369.4 MB, free: 2.516 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.134e-05/0.1078, allocations: 3.984 kB / 369.4 MB, free: 2.512 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002608/0.1104, allocations: 0.8412 MB / 370.2 MB, free: 1.668 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001184/0.1116, allocations: 0.4946 MB / 370.7 MB, free: 1.172 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 7.177e-05/0.1117, allocations: 47.84 kB / 370.8 MB, free: 1.125 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.066e-05/0.1117, allocations: 4 kB / 370.8 MB, free: 1.121 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.132e-05/0.1118, allocations: 19.98 kB / 370.8 MB, free: 1.102 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001407/0.1119, allocations: 31.89 kB / 370.8 MB, free: 1.07 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.745e-05/0.112, allocations: 4 kB / 370.8 MB, free: 1.066 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.18/0.292, allocations: 1.499 MB / 372.3 MB, free: 9.789 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.889e-05/0.2922, allocations: 10 kB / 372.3 MB, free: 9.789 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.696e-05/0.2922, allocations: 33.14 kB / 372.4 MB, free: 9.758 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001817/0.294, allocations: 0.6691 MB / 373 MB, free: 9.715 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.294, allocations: 0 / 373 MB, free: 9.715 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.294, allocations: 1.938 kB / 373.1 MB, free: 9.715 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.268e-06/0.2941, allocations: 1.375 kB / 373.1 MB, free: 9.715 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.0009126/0.295, allocations: 0.5228 MB / 373.6 MB, free: 9.258 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.843e-05/0.295, allocations: 11.03 kB / 373.6 MB, free: 9.258 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.933e-05/0.2951, allocations: 37.48 kB / 373.6 MB, free: 9.219 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001345/0.2952, allocations: 13.55 kB / 373.6 MB, free: 9.215 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000121/0.2953, allocations: 177.9 kB / 373.8 MB, free: 9.012 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.634e-05/0.2954, allocations: 7.125 kB / 373.8 MB, free: 9.012 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.253e-05/0.2954, allocations: 9.047 kB / 373.8 MB, free: 9.012 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001631/0.2956, allocations: 62.06 kB / 373.9 MB, free: 8.965 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.216e-06/0.2956, allocations: 3.812 kB / 373.9 MB, free: 8.965 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.227e-05/0.2956, allocations: 0.75 kB / 373.9 MB, free: 8.965 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.45e-06/0.2956, allocations: 1.188 kB / 373.9 MB, free: 8.965 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001203/0.2957, allocations: 24.16 kB / 373.9 MB, free: 8.965 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001922/0.2959, allocations: 173.6 kB / 374.1 MB, free: 8.77 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002856/0.2962, allocations: 84.95 kB / 374.2 MB, free: 8.715 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006644/0.3029, allocations: 3.261 MB / 377.4 MB, free: 6.398 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.026e-05/0.3029, allocations: 41.5 kB / 377.5 MB, free: 6.355 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.934e-06/0.303, allocations: 0 / 377.5 MB, free: 6.355 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003273/0.3033, allocations: 81.7 kB / 377.5 MB, free: 6.32 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.02e-05/0.3033, allocations: 78.48 kB / 377.6 MB, free: 6.227 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.641e-05/0.3034, allocations: 115.1 kB / 377.7 MB, free: 6.129 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.469e-05/0.3034, allocations: 30.45 kB / 377.8 MB, free: 6.098 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.435e-05/0.3035, allocations: 83.33 kB / 377.8 MB, free: 6.016 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.575e-05/0.3035, allocations: 29.36 kB / 377.9 MB, free: 5.996 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.278e-06/0.3035, allocations: 1.375 kB / 377.9 MB, free: 5.996 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.834e-05/0.3036, allocations: 316.1 kB / 378.2 MB, free: 5.684 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.144e-05/0.3036, allocations: 10.52 kB / 378.2 MB, free: 5.684 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.578e-05/0.3037, allocations: 24.81 kB / 378.2 MB, free: 5.668 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.446e-05/0.3038, allocations: 11.58 kB / 378.2 MB, free: 5.668 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.3038, allocations: 0.75 kB / 378.2 MB, free: 5.668 MB / 302.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.000257/0.304, allocations: 78.16 kB / 378.3 MB, free: 5.629 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.213e-05/0.3041, allocations: 5.5 kB / 378.3 MB, free: 5.629 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.3041, allocations: 0.875 kB / 378.3 MB, free: 5.629 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.24e-05/0.3041, allocations: 1.375 kB / 378.3 MB, free: 5.629 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.265e-05/0.3042, allocations: 12.53 kB / 378.3 MB, free: 5.629 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.803e-06/0.3042, allocations: 0 / 378.3 MB, free: 5.629 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.264e-05/0.3043, allocations: 6.75 kB / 378.3 MB, free: 5.629 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.679e-05/0.3043, allocations: 3.344 kB / 378.3 MB, free: 5.629 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 7.948e-05/0.3044, allocations: 117 kB / 378.5 MB, free: 5.512 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.043e-05/0.3044, allocations: 10.61 kB / 378.5 MB, free: 5.504 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003051/0.3047, allocations: 103.3 kB / 378.6 MB, free: 5.473 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.3047, allocations: 1.375 kB / 378.6 MB, free: 5.473 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.607e-06/0.3047, allocations: 3.5 kB / 378.6 MB, free: 5.473 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.64e-06/0.3047, allocations: 0.8438 kB / 378.6 MB, free: 5.473 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001432/0.3049, allocations: 173.4 kB / 378.7 MB, free: 5.277 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.3049, allocations: 0.6562 kB / 378.7 MB, free: 5.277 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.332e-05/0.305, allocations: 15.06 kB / 378.8 MB, free: 5.277 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/0.305, allocations: 1.375 kB / 378.8 MB, free: 5.277 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.247e-05/0.305, allocations: 10 kB / 378.8 MB, free: 5.273 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.305, allocations: 0 / 378.8 MB, free: 5.273 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.305, allocations: 1.375 kB / 378.8 MB, free: 5.273 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001672/0.3052, allocations: 111.7 kB / 378.9 MB, free: 5.18 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.7e-05/0.3053, allocations: 102.9 kB / 379 MB, free: 5.074 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.892e-05/0.3053, allocations: 1.375 kB / 379 MB, free: 5.074 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.191e-05/0.3054, allocations: 7.844 kB / 379 MB, free: 5.074 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.27e-05/0.3054, allocations: 8.844 kB / 379 MB, free: 5.074 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.025e-05/0.3054, allocations: 7.484 kB / 379 MB, free: 5.074 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.824e-05/0.3055, allocations: 92.23 kB / 379.1 MB, free: 5 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3055, allocations: 4 kB / 379.1 MB, free: 4.996 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001147/0.3066, allocations: 314 kB / 379.4 MB, free: 4.934 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.001568/0.3082, allocations: 1.189 MB / 380.6 MB, free: 4.164 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001831/0.3084, allocations: 31.78 kB / 380.6 MB, free: 4.164 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.3084, allocations: 1.156 kB / 380.6 MB, free: 4.164 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.403e-05/0.3085, allocations: 21.36 kB / 380.6 MB, free: 4.164 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001689/0.3087, allocations: 13.62 kB / 380.7 MB, free: 4.16 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001276/0.3099, allocations: 0.8082 MB / 381.5 MB, free: 3.586 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001112/0.3101, allocations: 0.6857 MB / 382.2 MB, free: 2.891 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001329/0.3102, allocations: 54.25 kB / 382.2 MB, free: 2.879 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.871e-05/0.3103, allocations: 22.23 kB / 382.2 MB, free: 2.871 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3103, allocations: 0 / 382.2 MB, free: 2.871 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08798/0.3983, allocations: 10.12 MB / 392.3 MB, free: 0 / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000476/0.3988, allocations: 181.9 kB / 392.5 MB, free: 15.76 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.32/2.719, allocations: 4 kB / 392.5 MB, free: 15.75 MB / 318.1 MB (rm -f Modelica_trunk_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T_res.mat --tempDir=temp_Modelica_trunk_Modelica_Media_Examples_ReferenceAir_Inverse_sh_T_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Media_Examples_ReferenceAir_Inverse_sh_T.fmu > Modelica_trunk_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T_res.mat does not exist to compare? outputFormat=mat