Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.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_TX,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|h1|s1",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX") translateModel(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|h1|s1",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009381/0.0009381, allocations: 96.48 kB / 16.3 MB, free: 6.457 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.0009032/0.0009032, allocations: 184.5 kB / 17.2 MB, free: 6.34 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.286/1.286, allocations: 223.2 MB / 241.1 MB, free: 5.445 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002399/0.0002401, allocations: 6.094 kB / 300.7 MB, free: 6.07 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0825/0.08276, allocations: 50.44 MB / 351.1 MB, free: 11.76 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX): time 0.001124/0.08391, allocations: 1.054 MB / 352.2 MB, free: 10.7 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.2766/0.3605, allocations: 126 MB / 478.2 MB, free: 10.64 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.748e-05/0.3606, allocations: 2.938 kB / 478.2 MB, free: 10.64 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 3.795e-05/0.3607, allocations: 4 kB / 478.2 MB, free: 10.64 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009115/0.3616, allocations: 269 kB / 478.5 MB, free: 10.56 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008025/0.3624, allocations: 336.8 kB / 478.8 MB, free: 10.49 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 9.683e-05/0.3625, allocations: 57.69 kB / 478.8 MB, free: 10.48 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.444e-05/0.3626, allocations: 10.22 kB / 478.8 MB, free: 10.47 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.843e-05/0.3626, allocations: 27.44 kB / 478.9 MB, free: 10.46 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.768e-05/0.3627, allocations: 35.98 kB / 478.9 MB, free: 10.45 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.211e-05/0.3627, allocations: 2.375 kB / 478.9 MB, free: 10.45 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001376/0.3641, allocations: 0.7592 MB / 479.7 MB, free: 10.29 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 3.647e-05/0.3642, allocations: 17.33 kB / 479.7 MB, free: 10.29 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.692e-05/0.3642, allocations: 37.61 kB / 479.7 MB, free: 10.25 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006796/0.3649, allocations: 400.7 kB / 480.1 MB, free: 10.14 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.695e-06/0.3649, allocations: 0 / 480.1 MB, free: 10.14 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.3649, allocations: 0 / 480.1 MB, free: 10.14 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.218e-06/0.3649, allocations: 0 / 480.1 MB, free: 10.14 MB / 366.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.0005048/0.3654, allocations: 451.2 kB / 480.6 MB, free: 9.707 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.073e-05/0.3655, allocations: 9.938 kB / 480.6 MB, free: 9.707 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004399/0.3659, allocations: 67.75 kB / 480.6 MB, free: 9.684 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001483/0.3661, allocations: 193.8 kB / 480.8 MB, free: 9.477 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.441e-05/0.3661, allocations: 6.812 kB / 480.8 MB, free: 9.473 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.019e-05/0.3661, allocations: 3.984 kB / 480.8 MB, free: 9.469 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001419/0.3663, allocations: 70.23 kB / 480.9 MB, free: 9.414 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.713e-06/0.3663, allocations: 1.75 kB / 480.9 MB, free: 9.414 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.227e-06/0.3663, allocations: 2.812 kB / 480.9 MB, free: 9.414 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.065e-06/0.3663, allocations: 3.953 kB / 480.9 MB, free: 9.41 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.984e-05/0.3664, allocations: 43.44 kB / 481 MB, free: 9.398 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001724/0.3666, allocations: 197.6 kB / 481.1 MB, free: 9.188 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002754/0.3669, allocations: 113.6 kB / 481.3 MB, free: 9.121 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004405/0.3673, allocations: 135.8 kB / 481.4 MB, free: 9.008 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.029e-05/0.3673, allocations: 36.94 kB / 481.4 MB, free: 8.969 MB / 366.1 MB Notification: Performance of pre-optimization done (n=6): time 1.373e-06/0.3674, allocations: 0 / 481.4 MB, free: 8.969 MB / 366.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003235/0.3677, allocations: 119.4 kB / 481.5 MB, free: 8.91 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.423e-05/0.3677, allocations: 77.11 kB / 481.6 MB, free: 8.816 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001049/0.3678, allocations: 147.6 kB / 481.8 MB, free: 8.703 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.507e-05/0.3679, allocations: 25.7 kB / 481.8 MB, free: 8.672 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.474e-05/0.3679, allocations: 87.81 kB / 481.9 MB, free: 8.59 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.058e-05/0.3679, allocations: 28.55 kB / 481.9 MB, free: 8.57 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.657e-06/0.3679, allocations: 0 / 481.9 MB, free: 8.57 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.234e-05/0.368, allocations: 316.8 kB / 482.2 MB, free: 8.258 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.267e-05/0.3681, allocations: 25.97 kB / 482.2 MB, free: 8.25 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.027e-05/0.3682, allocations: 55.33 kB / 482.3 MB, free: 8.207 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.809e-05/0.3683, allocations: 28.14 kB / 482.3 MB, free: 8.203 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/0.3683, allocations: 0 / 482.3 MB, free: 8.203 MB / 366.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002229/0.3685, allocations: 104.8 kB / 482.4 MB, free: 8.152 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.191e-05/0.3685, allocations: 5.75 kB / 482.4 MB, free: 8.152 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.877e-06/0.3685, allocations: 0 / 482.4 MB, free: 8.152 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.145e-05/0.3685, allocations: 6.344 kB / 482.4 MB, free: 8.148 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.861e-05/0.3686, allocations: 18.42 kB / 482.4 MB, free: 8.141 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.919e-06/0.3686, allocations: 5.75 kB / 482.5 MB, free: 8.137 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.881e-05/0.3687, allocations: 10.11 kB / 482.5 MB, free: 8.133 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.913e-06/0.3687, allocations: 2.812 kB / 482.5 MB, free: 8.133 MB / 366.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.478e-05/0.3688, allocations: 117.9 kB / 482.6 MB, free: 8.016 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.981e-05/0.3688, allocations: 8.172 kB / 482.6 MB, free: 8.012 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002427/0.3691, allocations: 114.8 kB / 482.7 MB, free: 7.949 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.3691, allocations: 2.844 kB / 482.7 MB, free: 7.949 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.3691, allocations: 0 / 482.7 MB, free: 7.949 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.3691, allocations: 0.5625 kB / 482.7 MB, free: 7.949 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001196/0.3692, allocations: 185.2 kB / 482.9 MB, free: 7.746 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.664e-06/0.3692, allocations: 2.844 kB / 482.9 MB, free: 7.746 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.535e-05/0.3693, allocations: 10.78 kB / 482.9 MB, free: 7.746 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.3693, allocations: 2.875 kB / 482.9 MB, free: 7.746 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.817e-06/0.3693, allocations: 3.938 kB / 482.9 MB, free: 7.746 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.109e-06/0.3693, allocations: 6.766 kB / 482.9 MB, free: 7.742 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.3693, allocations: 0 / 482.9 MB, free: 7.742 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003019/0.3697, allocations: 184.1 kB / 483.1 MB, free: 7.621 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.824e-05/0.3697, allocations: 90.41 kB / 483.2 MB, free: 7.52 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.873e-05/0.3698, allocations: 1.656 kB / 483.2 MB, free: 7.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.676e-05/0.3698, allocations: 9.266 kB / 483.2 MB, free: 7.516 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.353e-05/0.3698, allocations: 6.656 kB / 483.2 MB, free: 7.512 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.841e-06/0.3699, allocations: 4.531 kB / 483.2 MB, free: 7.512 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.873e-05/0.3699, allocations: 121.4 kB / 483.3 MB, free: 7.422 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3699, allocations: 0 / 483.3 MB, free: 7.422 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004256/0.3704, allocations: 152.5 kB / 483.5 MB, free: 7.391 MB / 366.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 (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.0007472/0.3711, allocations: 355 kB / 483.8 MB, free: 7.219 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001768/0.3713, allocations: 69.2 kB / 483.9 MB, free: 7.199 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.3713, allocations: 0 / 483.9 MB, free: 7.199 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 6.817e-05/0.3714, allocations: 31.33 kB / 483.9 MB, free: 7.191 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001928/0.3716, allocations: 21.89 kB / 483.9 MB, free: 7.184 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004672/0.3721, allocations: 369.7 kB / 484.3 MB, free: 6.879 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001919/0.3723, allocations: 0.6954 MB / 485 MB, free: 6.172 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.562e-05/0.3723, allocations: 16.7 kB / 485 MB, free: 6.164 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.014e-05/0.3724, allocations: 12.22 kB / 485 MB, free: 6.156 MB / 366.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3724, allocations: 2.781 kB / 485 MB, free: 6.156 MB / 366.1 MB Notification: Performance of Templates: time 0.007505/0.3799, allocations: 4.579 MB / 489.6 MB, free: 3.816 MB / 366.1 MB make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.makefile (rm -f Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.sim & ./Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/SolveOneNonlinearEquation/Inverse_sh_TX/Inverse_sh_TX.csv","../files/Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches