Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX,fileNamePrefix="Modelica_trunk_cpp_Modelica_Media_Examples_ReferenceAir_Inverse_sh_TX",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX,fileNamePrefix="Modelica_trunk_cpp_Modelica_Media_Examples_ReferenceAir_Inverse_sh_TX",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009199/0.0009199, allocations: 191.8 kB / 17.37 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.169/1.169, allocations: 226.5 MB / 244.7 MB, free: 8.199 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007209/0.0007209, allocations: 100.1 kB / 296.7 MB, free: 6.902 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002086/0.0002087, allocations: 8 kB / 356.8 MB, free: 10.82 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.166/0.1662, allocations: 51.3 MB / 408.1 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX): time 0.0008793/0.1671, allocations: 1.088 MB / 409.2 MB, free: 26.61 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01604/0.1832, allocations: 22.08 MB / 431.3 MB, free: 4.477 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.473e-05/0.1832, allocations: 0 / 431.3 MB, free: 4.477 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 8.171e-05/0.1833, allocations: 3.938 kB / 431.3 MB, free: 4.473 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009051/0.1924, allocations: 4.655 MB / 436 MB, free: 15.82 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000544/0.193, allocations: 306.9 kB / 436.3 MB, free: 15.52 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 9.41e-05/0.1931, allocations: 83.67 kB / 436.3 MB, free: 15.44 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.122e-05/0.1931, allocations: 4 kB / 436.3 MB, free: 15.43 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.44e-05/0.1931, allocations: 39.8 kB / 436.4 MB, free: 15.39 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.987e-05/0.1932, allocations: 39.89 kB / 436.4 MB, free: 15.36 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 1.336e-05/0.1932, allocations: 4 kB / 436.4 MB, free: 15.35 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01155/0.2048, allocations: 8.614 MB / 445 MB, free: 6.727 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 3.423e-05/0.2049, allocations: 15.92 kB / 445.1 MB, free: 6.711 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 4.566e-05/0.2049, allocations: 49.62 kB / 445.1 MB, free: 6.656 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003878/0.2088, allocations: 2.951 MB / 448.1 MB, free: 3.699 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.2088, allocations: 0 / 448.1 MB, free: 3.699 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.2088, allocations: 3.938 kB / 448.1 MB, free: 3.695 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.226e-06/0.2088, allocations: 0 / 448.1 MB, free: 3.695 MB / 314.7 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.001784/0.2106, allocations: 0.9071 MB / 449 MB, free: 2.742 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.931e-05/0.2107, allocations: 8.031 kB / 449 MB, free: 2.734 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.155e-05/0.2107, allocations: 34.75 kB / 449 MB, free: 2.691 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.699e-05/0.2107, allocations: 8.844 kB / 449 MB, free: 2.684 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001376/0.2109, allocations: 195.6 kB / 449.2 MB, free: 2.453 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.261e-05/0.2109, allocations: 8 kB / 449.2 MB, free: 2.445 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.035e-05/0.2109, allocations: 0 / 449.2 MB, free: 2.445 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001384/0.2111, allocations: 67.39 kB / 449.3 MB, free: 2.367 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.494e-06/0.2111, allocations: 7.938 kB / 449.3 MB, free: 2.359 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.135e-05/0.2111, allocations: 4 kB / 449.3 MB, free: 2.355 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.897e-06/0.2111, allocations: 0 / 449.3 MB, free: 2.355 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001046/0.2112, allocations: 31.97 kB / 449.3 MB, free: 2.324 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001664/0.2114, allocations: 198.4 kB / 449.5 MB, free: 2.078 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002498/0.2116, allocations: 101.1 kB / 449.6 MB, free: 1.961 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.271e-05/0.2117, allocations: 25.78 kB / 449.6 MB, free: 1.93 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.545e-05/0.2118, allocations: 11.98 kB / 449.7 MB, free: 1.918 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.95e-05/0.2118, allocations: 34.56 kB / 449.7 MB, free: 1.875 MB / 314.7 MB Notification: Performance of pre-optimization done (n=6): time 1.031e-06/0.2118, allocations: 0 / 449.7 MB, free: 1.875 MB / 314.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002639/0.2121, allocations: 105.9 kB / 449.8 MB, free: 1.766 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.697e-05/0.2121, allocations: 81.11 kB / 449.9 MB, free: 1.668 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.783e-05/0.2122, allocations: 137.8 kB / 450 MB, free: 1.523 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.327e-05/0.2122, allocations: 29.64 kB / 450 MB, free: 1.488 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.04e-05/0.2123, allocations: 88.12 kB / 450.1 MB, free: 1.398 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.435e-05/0.2123, allocations: 19.72 kB / 450.1 MB, free: 1.379 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.208e-06/0.2123, allocations: 0 / 450.1 MB, free: 1.379 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.381e-05/0.2124, allocations: 326.8 kB / 450.5 MB, free: 1.051 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.063e-05/0.2125, allocations: 16 kB / 450.5 MB, free: 1.035 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.287e-05/0.2125, allocations: 29.7 kB / 450.5 MB, free: 1 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001049/0.2126, allocations: 53.69 kB / 450.6 MB, free: 0.9414 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.2126, allocations: 0 / 450.6 MB, free: 0.9414 MB / 314.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001572/0.2128, allocations: 77.52 kB / 450.6 MB, free: 0.8594 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.184e-05/0.2128, allocations: 4 kB / 450.6 MB, free: 0.8555 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.037e-06/0.2128, allocations: 8 kB / 450.6 MB, free: 0.8477 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.009e-05/0.2128, allocations: 0 / 450.6 MB, free: 0.8477 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.773e-05/0.2129, allocations: 11.98 kB / 450.7 MB, free: 0.8359 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.2129, allocations: 3.984 kB / 450.7 MB, free: 0.832 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.298e-05/0.213, allocations: 8 kB / 450.7 MB, free: 0.8242 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.442e-06/0.213, allocations: 0 / 450.7 MB, free: 0.8242 MB / 314.7 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 6.814e-05/0.2131, allocations: 125.6 kB / 450.8 MB, free: 0.6914 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.583e-05/0.2131, allocations: 7.906 kB / 450.8 MB, free: 0.6836 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002094/0.2133, allocations: 101.5 kB / 450.9 MB, free: 0.582 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.327e-06/0.2133, allocations: 4 kB / 450.9 MB, free: 0.5781 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.2133, allocations: 0 / 450.9 MB, free: 0.5781 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.385e-06/0.2133, allocations: 0 / 450.9 MB, free: 0.5781 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001189/0.2134, allocations: 185.6 kB / 451.1 MB, free: 356 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-06/0.2135, allocations: 0 / 451.1 MB, free: 356 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.525e-05/0.2135, allocations: 8 kB / 451.1 MB, free: 348 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.2135, allocations: 7.938 kB / 451.1 MB, free: 340 kB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.574e-06/0.2135, allocations: 128 / 451.1 MB, free: 340 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.2135, allocations: 7.984 kB / 451.1 MB, free: 332 kB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.2135, allocations: 4 kB / 451.1 MB, free: 328 kB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001645/0.2137, allocations: 117.8 kB / 451.2 MB, free: 188 kB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.72e-05/0.2138, allocations: 89.09 kB / 451.3 MB, free: 80 kB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.591e-05/0.2138, allocations: 4 kB / 451.3 MB, free: 76 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.16e-05/0.2139, allocations: 4.219 kB / 451.3 MB, free: 72 kB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.978e-05/0.2139, allocations: 7.984 kB / 451.3 MB, free: 64 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.977e-06/0.2139, allocations: 12 kB / 451.3 MB, free: 52 kB / 314.7 MB Notification: Performance of sorting global known variables: time 6.926e-05/0.214, allocations: 115.5 kB / 451.4 MB, free: 15.94 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.214, allocations: 0 / 451.4 MB, free: 15.94 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001904/0.2159, allocations: 0.9447 MB / 452.4 MB, free: 14.99 MB / 330.7 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.003879/0.2198, allocations: 1.881 MB / 454.3 MB, free: 13.09 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001503/0.22, allocations: 43.98 kB / 454.3 MB, free: 13.04 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.22, allocations: 0 / 454.3 MB, free: 13.04 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.039e-05/0.2201, allocations: 27.92 kB / 454.3 MB, free: 13.02 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000203/0.2203, allocations: 23.92 kB / 454.4 MB, free: 12.99 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001446/0.2217, allocations: 0.9753 MB / 455.3 MB, free: 11.95 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001745/0.2219, allocations: 0.6849 MB / 456 MB, free: 11.24 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.725e-05/0.222, allocations: 19.44 kB / 456 MB, free: 11.22 MB / 330.7 MB Notification: Performance of SimCode: time 2.21e-07/0.222, allocations: 0 / 456 MB, free: 11.22 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.9/5.122, allocations: 18.51 MB / 474.6 MB, free: 8.68 MB / 346.7 MB (rm -f Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.pipe >> ../files/Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Media_Examples_ReferenceAir_Inverse_sh_TX_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Media_Examples_ReferenceAir_Inverse_sh_TX.fmu > Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/ReferenceAir/Inverse_sh_TX/Inverse_sh_TX.csv","../files/Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.Inverse_sh_TX.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches