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.001175/0.001175, allocations: 113.7 kB / 17.07 MB, free: 5.961 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.00116/0.00116, allocations: 198.8 kB / 18 MB, free: 5.051 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.321/1.321, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001107/0.001107, allocations: 43.92 kB / 350.8 MB, free: 3.781 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2447/0.2458, allocations: 49.43 MB / 400.2 MB, free: 8.453 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.Inverse_sh_T): time 0.002253/0.2481, allocations: 1.361 MB / 401.6 MB, free: 7.367 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01206/0.2602, allocations: 12.07 MB / 413.7 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.072e-05/0.2603, allocations: 3.938 kB / 413.7 MB, free: 11.35 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.087e-05/0.2604, allocations: 7.984 kB / 413.7 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003325/0.2637, allocations: 1.051 MB / 414.7 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001672/0.2654, allocations: 0.6256 MB / 415.3 MB, free: 9.66 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001187/0.2655, allocations: 63.72 kB / 415.4 MB, free: 9.598 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.575e-05/0.2656, allocations: 4 kB / 415.4 MB, free: 9.594 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.365e-05/0.2656, allocations: 35.84 kB / 415.4 MB, free: 9.559 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.884e-05/0.2657, allocations: 31.89 kB / 415.5 MB, free: 9.527 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.751e-05/0.2658, allocations: 4 kB / 415.5 MB, free: 9.523 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00307/0.2688, allocations: 1.608 MB / 417.1 MB, free: 7.914 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.072e-05/0.2689, allocations: 11.92 kB / 417.1 MB, free: 7.902 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.279e-05/0.2689, allocations: 27.86 kB / 417.1 MB, free: 7.875 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002205/0.2711, allocations: 1.064 MB / 418.2 MB, free: 6.809 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.772e-06/0.2712, allocations: 0 / 418.2 MB, free: 6.809 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2712, allocations: 3.938 kB / 418.2 MB, free: 6.805 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.142e-06/0.2712, allocations: 8 kB / 418.2 MB, free: 6.797 MB / 334.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.0008499/0.272, allocations: 0.538 MB / 418.7 MB, free: 6.211 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.652e-05/0.2721, allocations: 12.03 kB / 418.7 MB, free: 6.199 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.266e-05/0.2721, allocations: 34.75 kB / 418.8 MB, free: 6.156 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001322/0.2723, allocations: 4.938 kB / 418.8 MB, free: 6.152 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001502/0.2724, allocations: 176.3 kB / 419 MB, free: 5.941 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.774e-05/0.2725, allocations: 4.375 kB / 419 MB, free: 5.938 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.187e-05/0.2725, allocations: 4.375 kB / 419 MB, free: 5.934 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001614/0.2726, allocations: 75.25 kB / 419 MB, free: 5.848 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.534e-06/0.2727, allocations: 0 / 419 MB, free: 5.848 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.25e-05/0.2727, allocations: 4 kB / 419 MB, free: 5.844 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.993e-06/0.2727, allocations: 7.984 kB / 419.1 MB, free: 5.836 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001054/0.2728, allocations: 15.98 kB / 419.1 MB, free: 5.82 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001852/0.273, allocations: 174.5 kB / 419.2 MB, free: 5.598 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002814/0.2733, allocations: 85.12 kB / 419.3 MB, free: 5.496 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.536e-05/0.2734, allocations: 29.77 kB / 419.4 MB, free: 5.461 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006121/0.2795, allocations: 3.305 MB / 422.7 MB, free: 1.711 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.497e-05/0.2796, allocations: 38.5 kB / 422.7 MB, free: 1.664 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.723e-06/0.2796, allocations: 0 / 422.7 MB, free: 1.664 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003231/0.2799, allocations: 85.5 kB / 422.8 MB, free: 1.574 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.408e-05/0.2799, allocations: 81.11 kB / 422.9 MB, free: 1.477 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.874e-05/0.2801, allocations: 113.8 kB / 423 MB, free: 1.355 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.157e-05/0.2801, allocations: 29.7 kB / 423 MB, free: 1.32 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.374e-05/0.2801, allocations: 80.14 kB / 423.1 MB, free: 1.238 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.187e-05/0.2802, allocations: 19.8 kB / 423.1 MB, free: 1.219 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.926e-05/0.2802, allocations: 17.72 kB / 423.1 MB, free: 1.195 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.875e-05/0.2803, allocations: 314.8 kB / 423.4 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.396e-05/0.2804, allocations: 19.94 kB / 423.4 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.057e-05/0.2804, allocations: 25.7 kB / 423.5 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001038/0.2806, allocations: 38.02 kB / 423.5 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.2806, allocations: 0 / 423.5 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001646/0.2807, allocations: 81.5 kB / 423.6 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.735e-05/0.2808, allocations: 4 kB / 423.6 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.2808, allocations: 0 / 423.6 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.53e-05/0.2808, allocations: 4 kB / 423.6 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.23e-05/0.2809, allocations: 19.92 kB / 423.6 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.851e-06/0.2809, allocations: 128 / 423.6 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.471e-05/0.2809, allocations: 7.938 kB / 423.6 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.41e-05/0.281, allocations: 4 kB / 423.6 MB, free: 0.6602 MB / 334.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 8.232e-05/0.281, allocations: 109.8 kB / 423.7 MB, free: 0.543 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.307e-05/0.2811, allocations: 11.84 kB / 423.7 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002581/0.2813, allocations: 109.8 kB / 423.8 MB, free: 432 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.946e-06/0.2813, allocations: 0 / 423.8 MB, free: 432 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.2814, allocations: 0 / 423.8 MB, free: 432 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.72e-06/0.2814, allocations: 4 kB / 423.8 MB, free: 428 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001243/0.2815, allocations: 165.7 kB / 424 MB, free: 212 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.2815, allocations: 3.938 kB / 424 MB, free: 208 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.13e-05/0.2816, allocations: 15.92 kB / 424 MB, free: 192 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.947e-06/0.2816, allocations: 11.94 kB / 424 MB, free: 180 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.386e-06/0.2816, allocations: 0 / 424 MB, free: 180 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.2816, allocations: 0 / 424 MB, free: 180 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.2816, allocations: 0 / 424 MB, free: 180 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001897/0.2818, allocations: 101.9 kB / 424.1 MB, free: 56 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.771e-05/0.2819, allocations: 89.03 kB / 424.2 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.469e-05/0.2819, allocations: 0 / 424.2 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.795e-05/0.282, allocations: 8 kB / 424.2 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.993e-05/0.282, allocations: 11.92 kB / 424.2 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.48e-05/0.282, allocations: 4 kB / 424.3 MB, free: 15.93 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.341e-05/0.2821, allocations: 91.27 kB / 424.3 MB, free: 15.84 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2821, allocations: 0 / 424.3 MB, free: 15.84 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008084/0.2829, allocations: 323.6 kB / 424.7 MB, free: 15.52 MB / 350.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.001668/0.2846, allocations: 1.12 MB / 425.8 MB, free: 14.37 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001889/0.2848, allocations: 39.91 kB / 425.8 MB, free: 14.33 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.2848, allocations: 4 kB / 425.8 MB, free: 14.32 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.931e-05/0.2849, allocations: 23.92 kB / 425.8 MB, free: 14.3 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001949/0.2851, allocations: 14.66 kB / 425.9 MB, free: 14.29 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001683/0.2868, allocations: 1.453 MB / 427.3 MB, free: 12.74 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00033/0.2871, allocations: 0.6846 MB / 428 MB, free: 12.03 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000116/0.2873, allocations: 52.08 kB / 428 MB, free: 11.98 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.901e-05/0.2873, allocations: 23.42 kB / 428.1 MB, free: 11.96 MB / 350.1 MB Notification: Performance of SimCode: time 4.61e-07/0.2873, allocations: 4 kB / 428.1 MB, free: 11.95 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02957/0.3169, allocations: 10.52 MB / 438.6 MB, free: 1.508 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.85/8.167, allocations: 11 kB / 438.6 MB, free: 1.5 MB / 350.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