Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001109/0.00111, allocations: 104.5 kB / 18.35 MB, free: 4.645 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.0011/0.0011, allocations: 191 kB / 19.29 MB, free: 3.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.274/1.274, allocations: 205.1 MB / 225.2 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001185/0.001185, allocations: 47.94 kB / 282.1 MB, free: 2.457 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07605/0.07725, allocations: 46.63 MB / 328.7 MB, free: 3.758 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T): time 0.002247/0.07953, allocations: 1.349 MB / 330.1 MB, free: 2.395 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.28/0.3596, allocations: 150.4 MB / 480.4 MB, free: 14.79 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.134e-05/0.3597, allocations: 8 kB / 480.4 MB, free: 14.78 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.121e-05/0.3597, allocations: 9.891 kB / 480.4 MB, free: 14.77 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007466/0.3605, allocations: 233 kB / 480.7 MB, free: 14.55 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001314/0.3618, allocations: 0.6308 MB / 481.3 MB, free: 13.92 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 7.987e-05/0.3619, allocations: 55.73 kB / 481.4 MB, free: 13.87 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.519e-05/0.3619, allocations: 7.984 kB / 481.4 MB, free: 13.86 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.703e-05/0.362, allocations: 19.92 kB / 481.4 MB, free: 13.84 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.341e-05/0.3621, allocations: 27.91 kB / 481.4 MB, free: 13.81 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.024e-05/0.3621, allocations: 0 / 481.4 MB, free: 13.81 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00131/0.3634, allocations: 0.8851 MB / 482.3 MB, free: 12.93 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.771e-05/0.3634, allocations: 15.92 kB / 482.3 MB, free: 12.91 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.534e-05/0.3635, allocations: 19.88 kB / 482.3 MB, free: 12.89 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008066/0.3643, allocations: 0.6042 MB / 482.9 MB, free: 12.29 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.3643, allocations: 4 kB / 482.9 MB, free: 12.28 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3643, allocations: 0 / 482.9 MB, free: 12.28 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.734e-06/0.3643, allocations: 0 / 482.9 MB, free: 12.28 MB / 382.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.0004972/0.3648, allocations: 451.8 kB / 483.4 MB, free: 11.79 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.926e-05/0.3649, allocations: 8.031 kB / 483.4 MB, free: 11.79 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001081/0.366, allocations: 97.2 kB / 483.5 MB, free: 11.69 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002615/0.3662, allocations: 229.5 kB / 483.7 MB, free: 11.43 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.494e-05/0.3662, allocations: 3.938 kB / 483.7 MB, free: 11.43 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.406e-05/0.3663, allocations: 7.984 kB / 483.7 MB, free: 11.42 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002107/0.3665, allocations: 92.77 kB / 483.8 MB, free: 11.32 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.813e-06/0.3665, allocations: 0 / 483.8 MB, free: 11.32 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.314e-05/0.3665, allocations: 0 / 483.8 MB, free: 11.32 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.731e-06/0.3665, allocations: 4 kB / 483.8 MB, free: 11.31 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001662/0.3667, allocations: 43.95 kB / 483.9 MB, free: 11.27 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002228/0.3669, allocations: 206.9 kB / 484.1 MB, free: 11.01 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004502/0.3674, allocations: 129.1 kB / 484.2 MB, free: 10.87 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001078/0.3675, allocations: 37.69 kB / 484.2 MB, free: 10.82 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005571/0.3681, allocations: 0.9862 MB / 485.2 MB, free: 9.617 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.106e-05/0.3681, allocations: 35.38 kB / 485.2 MB, free: 9.574 MB / 382.1 MB Notification: Performance of pre-optimization done (n=6): time 1.312e-06/0.3681, allocations: 4 kB / 485.2 MB, free: 9.57 MB / 382.1 MB Notification: Performance of matching and sorting (n=6): time 0.0004712/0.3686, allocations: 129.5 kB / 485.4 MB, free: 9.438 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.671e-05/0.3687, allocations: 81.11 kB / 485.5 MB, free: 9.34 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001981/0.3689, allocations: 161.7 kB / 485.6 MB, free: 9.172 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.811e-05/0.3689, allocations: 29.7 kB / 485.6 MB, free: 9.137 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.266e-05/0.3689, allocations: 84.14 kB / 485.7 MB, free: 9.051 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.25e-05/0.369, allocations: 19.69 kB / 485.7 MB, free: 9.031 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.691e-05/0.369, allocations: 37.59 kB / 485.8 MB, free: 8.988 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.561e-05/0.3691, allocations: 314.8 kB / 486.1 MB, free: 8.672 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001001/0.3692, allocations: 27.97 kB / 486.1 MB, free: 8.645 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001158/0.3694, allocations: 53.12 kB / 486.2 MB, free: 8.582 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002212/0.3696, allocations: 91.69 kB / 486.3 MB, free: 8.48 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.3696, allocations: 3.938 kB / 486.3 MB, free: 8.477 MB / 382.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0003382/0.3699, allocations: 121.6 kB / 486.4 MB, free: 8.352 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.299e-05/0.37, allocations: 4 kB / 486.4 MB, free: 8.348 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.37, allocations: 6.562 kB / 486.4 MB, free: 8.344 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.285e-05/0.37, allocations: 4 kB / 486.4 MB, free: 8.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001375/0.3701, allocations: 23.91 kB / 486.4 MB, free: 8.316 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.274e-06/0.3701, allocations: 4 kB / 486.4 MB, free: 8.312 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001904/0.3703, allocations: 11.98 kB / 486.4 MB, free: 8.301 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.195e-05/0.3704, allocations: 7.984 kB / 486.4 MB, free: 8.293 MB / 382.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.213e-05/0.3705, allocations: 117.8 kB / 486.6 MB, free: 8.168 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.468e-05/0.3705, allocations: 7.906 kB / 486.6 MB, free: 8.16 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005514/0.3711, allocations: 234.4 kB / 486.8 MB, free: 7.93 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.3711, allocations: 4 kB / 486.8 MB, free: 7.926 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.3711, allocations: 4 kB / 486.8 MB, free: 7.922 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.3711, allocations: 3.984 kB / 486.8 MB, free: 7.918 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001733/0.3713, allocations: 215.5 kB / 487 MB, free: 7.66 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.265e-06/0.3713, allocations: 0 / 487 MB, free: 7.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001855/0.3715, allocations: 23.97 kB / 487 MB, free: 7.637 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.3715, allocations: 0 / 487 MB, free: 7.637 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.591e-05/0.3715, allocations: 7.984 kB / 487 MB, free: 7.629 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.3715, allocations: 0 / 487 MB, free: 7.629 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.3715, allocations: 0 / 487 MB, free: 7.629 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004083/0.372, allocations: 188.3 kB / 487.2 MB, free: 7.426 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.4e-05/0.372, allocations: 93 kB / 487.3 MB, free: 7.316 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.519e-05/0.3721, allocations: 0 / 487.3 MB, free: 7.316 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001782/0.3723, allocations: 4 kB / 487.3 MB, free: 7.312 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.278e-05/0.3723, allocations: 7.984 kB / 487.3 MB, free: 7.305 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.365e-05/0.3723, allocations: 12.05 kB / 487.3 MB, free: 7.293 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001551/0.3725, allocations: 131.2 kB / 487.5 MB, free: 7.164 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3725, allocations: 0 / 487.5 MB, free: 7.164 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004689/0.373, allocations: 163.9 kB / 487.6 MB, free: 7.004 MB / 382.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.0007144/0.3737, allocations: 405 kB / 488 MB, free: 6.602 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002737/0.374, allocations: 75.88 kB / 488.1 MB, free: 6.527 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.374, allocations: 0 / 488.1 MB, free: 6.527 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001155/0.3741, allocations: 35.97 kB / 488.1 MB, free: 6.492 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001984/0.3743, allocations: 13.12 kB / 488.1 MB, free: 6.48 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000511/0.3749, allocations: 316 kB / 488.5 MB, free: 6.145 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002018/0.3751, allocations: 0.6885 MB / 489.1 MB, free: 5.43 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005037/0.3756, allocations: 434.9 kB / 489.6 MB, free: 5.004 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001208/0.3757, allocations: 43.33 kB / 489.6 MB, free: 4.961 MB / 382.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3757, allocations: 0 / 489.6 MB, free: 4.961 MB / 382.1 MB Notification: Performance of Templates: time 0.009403/0.3851, allocations: 6.105 MB / 495.7 MB, free: 14.85 MB / 398.1 MB make -j1 -f Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.makefile (rm -f Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.sim & ./Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/SolveOneNonlinearEquation/Inverse_sh_T/Inverse_sh_T.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches