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.001077/0.001077, allocations: 107.3 kB / 16.92 MB, free: 5.77 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.001039/0.001039, allocations: 191.3 kB / 17.85 MB, free: 5.168 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.273/1.273, allocations: 222.9 MB / 241.5 MB, free: 15.28 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001012/0.001012, allocations: 43.19 kB / 300.7 MB, free: 5.805 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07965/0.08068, allocations: 49.44 MB / 350.2 MB, free: 4.352 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.Inverse_sh_T): time 0.002291/0.08301, allocations: 1.357 MB / 351.5 MB, free: 2.98 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01133/0.09436, allocations: 12.08 MB / 363.6 MB, free: 6.844 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.13e-05/0.09444, allocations: 0 / 363.6 MB, free: 6.844 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 1.986e-05/0.0945, allocations: 3.984 kB / 363.6 MB, free: 6.84 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002633/0.09714, allocations: 1.05 MB / 364.6 MB, free: 5.785 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001384/0.09853, allocations: 0.6295 MB / 365.3 MB, free: 5.152 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 8.736e-05/0.09863, allocations: 63.7 kB / 365.3 MB, free: 5.09 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.392e-05/0.09867, allocations: 4 kB / 365.3 MB, free: 5.086 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.791e-05/0.09872, allocations: 31.86 kB / 365.4 MB, free: 5.055 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.467e-05/0.09881, allocations: 31.89 kB / 365.4 MB, free: 5.023 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.469e-05/0.09884, allocations: 7.938 kB / 365.4 MB, free: 5.016 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002792/0.1016, allocations: 1.565 MB / 367 MB, free: 3.449 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.32e-05/0.1017, allocations: 19.91 kB / 367 MB, free: 3.43 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.136e-05/0.1017, allocations: 23.88 kB / 367 MB, free: 3.406 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002122/0.1039, allocations: 1.064 MB / 368.1 MB, free: 2.34 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.1039, allocations: 4 kB / 368.1 MB, free: 2.336 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.1039, allocations: 0 / 368.1 MB, free: 2.336 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.143e-06/0.1039, allocations: 7.922 kB / 368.1 MB, free: 2.328 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.000791/0.1047, allocations: 0.538 MB / 368.6 MB, free: 1.742 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.1047, allocations: 8.031 kB / 368.6 MB, free: 1.734 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.417e-05/0.1048, allocations: 34.75 kB / 368.7 MB, free: 1.691 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001203/0.1049, allocations: 20.83 kB / 368.7 MB, free: 1.672 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001404/0.105, allocations: 176.3 kB / 368.9 MB, free: 1.461 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.402e-05/0.1051, allocations: 384 / 368.9 MB, free: 1.461 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.487e-05/0.1051, allocations: 8.375 kB / 368.9 MB, free: 1.453 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001599/0.1053, allocations: 71.27 kB / 368.9 MB, free: 1.371 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.933e-06/0.1053, allocations: 0 / 368.9 MB, free: 1.371 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.053e-05/0.1053, allocations: 0 / 368.9 MB, free: 1.371 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.1053, allocations: 4 kB / 368.9 MB, free: 1.367 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001177/0.1054, allocations: 19.98 kB / 369 MB, free: 1.348 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001924/0.1056, allocations: 174.6 kB / 369.1 MB, free: 1.125 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002832/0.1059, allocations: 77.12 kB / 369.2 MB, free: 1.031 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.797e-05/0.106, allocations: 25.77 kB / 369.2 MB, free: 1 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.153/0.259, allocations: 3.299 MB / 372.5 MB, free: 24.76 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.152e-05/0.259, allocations: 39.06 kB / 372.6 MB, free: 24.72 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.643e-06/0.259, allocations: 0 / 372.6 MB, free: 24.72 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003127/0.2594, allocations: 83.59 kB / 372.7 MB, free: 24.69 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.254e-05/0.2594, allocations: 79.75 kB / 372.7 MB, free: 24.6 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.74e-05/0.2595, allocations: 117.5 kB / 372.8 MB, free: 24.5 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.759e-06/0.2595, allocations: 29.08 kB / 372.9 MB, free: 24.46 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.792e-05/0.2595, allocations: 83.09 kB / 373 MB, free: 24.38 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.813e-05/0.2595, allocations: 23.97 kB / 373 MB, free: 24.38 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.568e-05/0.2596, allocations: 20.91 kB / 373 MB, free: 24.36 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.506e-05/0.2596, allocations: 316.7 kB / 373.3 MB, free: 24.05 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.672e-05/0.2597, allocations: 8.781 kB / 373.3 MB, free: 24.05 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.501e-05/0.2598, allocations: 29.38 kB / 373.3 MB, free: 24.03 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.971e-05/0.2599, allocations: 41.14 kB / 373.4 MB, free: 24.01 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.2599, allocations: 0 / 373.4 MB, free: 24.01 MB / 302.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001497/0.26, allocations: 68.59 kB / 373.5 MB, free: 23.98 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.436e-05/0.2601, allocations: 5.75 kB / 373.5 MB, free: 23.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.2601, allocations: 0.6562 kB / 373.5 MB, free: 23.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.256e-05/0.2601, allocations: 1.5 kB / 373.5 MB, free: 23.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.665e-05/0.2602, allocations: 15.42 kB / 373.5 MB, free: 23.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.64e-06/0.2602, allocations: 6.141 kB / 373.5 MB, free: 23.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.19e-05/0.2602, allocations: 5.484 kB / 373.5 MB, free: 23.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.173e-05/0.2602, allocations: 1.438 kB / 373.5 MB, free: 23.98 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.094e-05/0.2603, allocations: 117 kB / 373.6 MB, free: 23.86 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.096e-05/0.2603, allocations: 7.609 kB / 373.6 MB, free: 23.86 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000281/0.2606, allocations: 107.5 kB / 373.7 MB, free: 23.8 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.2606, allocations: 1.406 kB / 373.7 MB, free: 23.8 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.2606, allocations: 0.5156 kB / 373.7 MB, free: 23.8 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.2606, allocations: 4.328 kB / 373.7 MB, free: 23.8 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.485e-05/0.2607, allocations: 172.2 kB / 373.9 MB, free: 23.61 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.2607, allocations: 4.812 kB / 373.9 MB, free: 23.61 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.858e-05/0.2608, allocations: 12.12 kB / 373.9 MB, free: 23.61 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.2608, allocations: 5.125 kB / 373.9 MB, free: 23.61 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.366e-06/0.2608, allocations: 2.078 kB / 373.9 MB, free: 23.61 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.013e-06/0.2608, allocations: 4.875 kB / 373.9 MB, free: 23.61 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.2608, allocations: 0.7969 kB / 373.9 MB, free: 23.61 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001652/0.261, allocations: 113.2 kB / 374 MB, free: 23.53 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.131e-05/0.2611, allocations: 86.33 kB / 374.1 MB, free: 23.43 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.824e-05/0.2611, allocations: 1.812 kB / 374.1 MB, free: 23.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.979e-05/0.2612, allocations: 6.281 kB / 374.1 MB, free: 23.43 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.5e-05/0.2612, allocations: 10.62 kB / 374.1 MB, free: 23.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.977e-06/0.2612, allocations: 3.391 kB / 374.1 MB, free: 23.43 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.163e-05/0.2613, allocations: 93.84 kB / 374.2 MB, free: 23.36 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2613, allocations: 0 / 374.2 MB, free: 23.36 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008198/0.2621, allocations: 320.9 kB / 374.5 MB, free: 23.34 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001248/0.2634, allocations: 1.115 MB / 375.7 MB, free: 22.67 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001836/0.2635, allocations: 41.88 kB / 375.7 MB, free: 22.66 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.2636, allocations: 0 / 375.7 MB, free: 22.66 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.794e-05/0.2636, allocations: 19.3 kB / 375.7 MB, free: 22.66 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001779/0.2638, allocations: 19.38 kB / 375.7 MB, free: 22.65 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001236/0.265, allocations: 1.452 MB / 377.2 MB, free: 21.45 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.472e-05/0.2651, allocations: 0.6853 MB / 377.9 MB, free: 20.75 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000103/0.2653, allocations: 50.06 kB / 377.9 MB, free: 20.74 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.046e-05/0.2653, allocations: 27.55 kB / 377.9 MB, free: 20.73 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2653, allocations: 0 / 377.9 MB, free: 20.73 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0377/0.303, allocations: 10.49 MB / 388.4 MB, free: 16.97 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.465/8.768, allocations: 17.03 kB / 388.5 MB, free: 16.96 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/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) diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/ReferenceAir/Inverse_sh_T/Inverse_sh_T.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.ReferenceAir.Inverse_sh_T.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches