Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.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: translateModel(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|h1|s1",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T") translateModel(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|h1|s1",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001235/0.001235, allocations: 108.4 kB / 17.74 MB, free: 5.188 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.001279/0.001279, allocations: 188.3 kB / 18.67 MB, free: 4.266 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.341/1.341, allocations: 222.9 MB / 242.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001153/0.001153, allocations: 47.94 kB / 352 MB, free: 3.234 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2888/0.29, allocations: 49.43 MB / 401.4 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T): time 0.002376/0.2924, allocations: 1.359 MB / 402.8 MB, free: 7.508 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.1501/0.4425, allocations: 148.7 MB / 0.5386 GB, free: 2.16 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.252e-05/0.4426, allocations: 0 / 0.5386 GB, free: 2.16 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 2.582e-05/0.4427, allocations: 7.922 kB / 0.5386 GB, free: 2.152 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009443/0.4436, allocations: 230.8 kB / 0.5388 GB, free: 1.926 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001062/0.4447, allocations: 394.1 kB / 0.5392 GB, free: 1.547 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001138/0.4448, allocations: 67.64 kB / 0.5392 GB, free: 1.48 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.887e-05/0.4449, allocations: 4 kB / 0.5392 GB, free: 1.477 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.81e-05/0.4449, allocations: 19.94 kB / 0.5393 GB, free: 1.457 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.503e-05/0.445, allocations: 39.77 kB / 0.5393 GB, free: 1.418 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 1.53e-05/0.4451, allocations: 0 / 0.5393 GB, free: 1.418 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001272/0.4463, allocations: 0.6629 MB / 0.5399 GB, free: 0.7539 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 2.097e-05/0.4464, allocations: 19.92 kB / 0.54 GB, free: 0.7344 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 3.965e-05/0.4464, allocations: 15.88 kB / 0.54 GB, free: 0.7188 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008592/0.4473, allocations: 496.5 kB / 0.5405 GB, free: 240 kB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/0.4473, allocations: 4 kB / 0.5405 GB, free: 236 kB / 462.1 MB Notification: Performance of FrontEnd: time 2.945e-06/0.4473, allocations: 0 / 0.5405 GB, free: 236 kB / 462.1 MB Notification: Performance of Transformations before backend: time 6.212e-06/0.4473, allocations: 3.938 kB / 0.5405 GB, free: 232 kB / 462.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.2115/0.6588, allocations: 419.6 kB / 0.5409 GB, free: 151.4 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.781e-05/0.6589, allocations: 9.469 kB / 0.5409 GB, free: 151.4 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001238/0.6601, allocations: 93.02 kB / 0.541 GB, free: 151.4 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002962/0.6605, allocations: 222.5 kB / 0.5412 GB, free: 151.2 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.926e-05/0.6605, allocations: 5.094 kB / 0.5412 GB, free: 151.2 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.507e-05/0.6605, allocations: 2.125 kB / 0.5412 GB, free: 151.2 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002427/0.6608, allocations: 90.08 kB / 0.5413 GB, free: 151.1 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/0.6608, allocations: 0.5938 kB / 0.5413 GB, free: 151.1 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.77e-05/0.6608, allocations: 4.5 kB / 0.5413 GB, free: 151.1 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.983e-06/0.6608, allocations: 1.031 kB / 0.5413 GB, free: 151.1 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001991/0.6611, allocations: 47.12 kB / 0.5413 GB, free: 151.1 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000253/0.6613, allocations: 212.1 kB / 0.5415 GB, free: 150.9 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005329/0.6619, allocations: 123.2 kB / 0.5416 GB, free: 150.8 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001182/0.662, allocations: 42.11 kB / 0.5417 GB, free: 150.8 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005566/0.6626, allocations: 0.9859 MB / 0.5426 GB, free: 149.7 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.062e-05/0.6626, allocations: 36.17 kB / 0.5427 GB, free: 149.6 MB / 462.1 MB Notification: Performance of pre-optimization done (n=6): time 1.593e-06/0.6626, allocations: 0.5625 kB / 0.5427 GB, free: 149.6 MB / 462.1 MB Notification: Performance of matching and sorting (n=6): time 0.0005602/0.6632, allocations: 138.5 kB / 0.5428 GB, free: 149.6 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.88e-05/0.6632, allocations: 84.42 kB / 0.5429 GB, free: 149.5 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002161/0.6634, allocations: 152.4 kB / 0.543 GB, free: 149.4 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.554e-05/0.6635, allocations: 30.2 kB / 0.5431 GB, free: 149.3 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.967e-05/0.6635, allocations: 87.19 kB / 0.5431 GB, free: 149.2 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.264e-05/0.6635, allocations: 20.53 kB / 0.5432 GB, free: 149.2 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.532e-05/0.6636, allocations: 33.28 kB / 0.5432 GB, free: 149.2 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.447e-05/0.6637, allocations: 316.3 kB / 0.5435 GB, free: 148.9 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001097/0.6638, allocations: 27.55 kB / 0.5435 GB, free: 148.9 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001155/0.6639, allocations: 51.47 kB / 0.5436 GB, free: 148.9 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002321/0.6642, allocations: 83.98 kB / 0.5437 GB, free: 148.8 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.6642, allocations: 0.5 kB / 0.5437 GB, free: 148.8 MB / 462.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0003743/0.6645, allocations: 121.9 kB / 0.5438 GB, free: 148.7 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.165e-05/0.6646, allocations: 5.594 kB / 0.5438 GB, free: 148.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/0.6646, allocations: 5.062 kB / 0.5438 GB, free: 148.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.933e-05/0.6646, allocations: 3.844 kB / 0.5438 GB, free: 148.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000161/0.6648, allocations: 27 kB / 0.5438 GB, free: 148.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.202e-05/0.6648, allocations: 3.875 kB / 0.5438 GB, free: 148.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001871/0.665, allocations: 17.42 kB / 0.5438 GB, free: 148.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.045e-05/0.665, allocations: 7.766 kB / 0.5438 GB, free: 148.7 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (8): * Single equations (assignments): 8 * 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 7.105e-05/0.6651, allocations: 113 kB / 0.5439 GB, free: 148.6 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.173e-05/0.6652, allocations: 7.031 kB / 0.544 GB, free: 148.6 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00071/0.6659, allocations: 249.4 kB / 0.5442 GB, free: 148.5 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/0.6659, allocations: 4.812 kB / 0.5442 GB, free: 148.5 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.6659, allocations: 1.375 kB / 0.5442 GB, free: 148.5 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.6659, allocations: 1.125 kB / 0.5442 GB, free: 148.5 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001997/0.6661, allocations: 207.7 kB / 0.5444 GB, free: 148.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.939e-06/0.6661, allocations: 0 / 0.5444 GB, free: 148.3 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002053/0.6664, allocations: 24.88 kB / 0.5444 GB, free: 148.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.241e-06/0.6664, allocations: 2.062 kB / 0.5444 GB, free: 148.3 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.687e-05/0.6664, allocations: 6.328 kB / 0.5444 GB, free: 148.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/0.6664, allocations: 5.344 kB / 0.5444 GB, free: 148.3 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.6664, allocations: 0.5625 kB / 0.5444 GB, free: 148.3 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004585/0.6669, allocations: 182.2 kB / 0.5446 GB, free: 148.2 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.427e-05/0.6669, allocations: 97.36 kB / 0.5447 GB, free: 148 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.289e-05/0.667, allocations: 8.797 kB / 0.5447 GB, free: 148 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001657/0.6672, allocations: 7.625 kB / 0.5447 GB, free: 148 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.966e-05/0.6672, allocations: 7.484 kB / 0.5447 GB, free: 148 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.483e-05/0.6673, allocations: 6.594 kB / 0.5447 GB, free: 148 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0001656/0.6674, allocations: 128.3 kB / 0.5448 GB, free: 147.9 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.6674, allocations: 0.5 kB / 0.5448 GB, free: 147.9 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.000641/0.6681, allocations: 129.6 kB / 0.545 GB, free: 147.9 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (s1,h1) * 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 (8): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0009464/0.669, allocations: 326.4 kB / 0.5453 GB, free: 147.8 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0003462/0.6694, allocations: 75.89 kB / 0.5454 GB, free: 147.8 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.115e-06/0.6694, allocations: 0 / 0.5454 GB, free: 147.8 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001272/0.6695, allocations: 42.48 kB / 0.5454 GB, free: 147.8 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002582/0.6698, allocations: 14.7 kB / 0.5454 GB, free: 147.8 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005805/0.6704, allocations: 317.9 kB / 0.5457 GB, free: 147.5 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001584/0.6706, allocations: 0.692 MB / 0.5464 GB, free: 146.8 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001479/0.6707, allocations: 50.95 kB / 0.5464 GB, free: 146.8 MB / 462.1 MB Notification: Performance of SimCode: time 3.41e-07/0.6707, allocations: 0 / 0.5464 GB, free: 146.8 MB / 462.1 MB Notification: Performance of Templates: time 0.006208/0.677, allocations: 4.126 MB / 0.5505 GB, free: 143.1 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.makefile (rm -f Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.sim & ./Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/SolveOneNonlinearEquation/Inverse_sh_T/Inverse_sh_T.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches