Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00141/0.001411, allocations: 115.5 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001723/0.001723, allocations: 204.6 kB / 18.73 MB, free: 4.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.308/1.308, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001108/0.001108, allocations: 59.91 kB / 358.7 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.218/0.2191, allocations: 50.54 MB / 409.2 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX): time 0.002278/0.2214, allocations: 1.382 MB / 410.6 MB, free: 196 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.356/0.5774, allocations: 151.9 MB / 0.5493 GB, free: 0.9336 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.713e-05/0.5775, allocations: 0 / 0.5493 GB, free: 0.9336 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 3.969e-05/0.5776, allocations: 13.34 kB / 0.5493 GB, free: 0.9297 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009671/0.5786, allocations: 380.4 kB / 0.5497 GB, free: 0.9219 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009333/0.5795, allocations: 0.5075 MB / 0.5502 GB, free: 0.9023 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001/0.5796, allocations: 72.8 kB / 0.5503 GB, free: 0.9023 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.159e-05/0.5797, allocations: 7.734 kB / 0.5503 GB, free: 0.8984 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.011e-05/0.5797, allocations: 33.67 kB / 0.5503 GB, free: 0.8984 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.111e-05/0.5798, allocations: 33.88 kB / 0.5503 GB, free: 0.8984 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 1.19e-05/0.5798, allocations: 1.625 kB / 0.5504 GB, free: 0.8984 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001375/0.5812, allocations: 1.091 MB / 0.5514 GB, free: 0.8867 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 3.173e-05/0.5812, allocations: 14.23 kB / 0.5514 GB, free: 0.8867 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 3.451e-05/0.5813, allocations: 30.25 kB / 0.5515 GB, free: 0.8867 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007772/0.5821, allocations: 0.6951 MB / 0.5521 GB, free: 0.8555 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.5821, allocations: 3.391 kB / 0.5521 GB, free: 0.8555 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.5821, allocations: 4 kB / 0.5521 GB, free: 0.8516 MB / 462.1 MB Notification: Performance of Transformations before backend: time 4.338e-06/0.5821, allocations: 0 / 0.5521 GB, free: 0.8516 MB / 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.0005687/0.5827, allocations: 451.1 kB / 0.5526 GB, free: 16.44 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.741e-05/0.5827, allocations: 10.72 kB / 0.5526 GB, free: 16.44 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004268/0.5831, allocations: 70.97 kB / 0.5527 GB, free: 16.43 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001574/0.5833, allocations: 194.8 kB / 0.5528 GB, free: 16.23 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.928e-06/0.5833, allocations: 9.188 kB / 0.5528 GB, free: 16.23 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.932e-05/0.5833, allocations: 3.188 kB / 0.5529 GB, free: 16.23 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000138/0.5835, allocations: 75.44 kB / 0.5529 GB, free: 16.18 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.763e-06/0.5835, allocations: 0 / 0.5529 GB, free: 16.18 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.187e-06/0.5835, allocations: 3.469 kB / 0.5529 GB, free: 16.18 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-06/0.5835, allocations: 0 / 0.5529 GB, free: 16.18 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.98e-05/0.5836, allocations: 44.23 kB / 0.553 GB, free: 16.18 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001656/0.5838, allocations: 194.6 kB / 0.5532 GB, free: 15.98 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002481/0.5841, allocations: 121.9 kB / 0.5533 GB, free: 15.93 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.356e-05/0.5841, allocations: 31.44 kB / 0.5533 GB, free: 15.91 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004478/0.5846, allocations: 144.2 kB / 0.5534 GB, free: 15.81 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.094e-05/0.5846, allocations: 33.14 kB / 0.5535 GB, free: 15.77 MB / 478.1 MB Notification: Performance of pre-optimization done (n=6): time 1.312e-06/0.5846, allocations: 0 / 0.5535 GB, free: 15.77 MB / 478.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003244/0.585, allocations: 120.2 kB / 0.5536 GB, free: 15.73 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.399e-05/0.585, allocations: 87.08 kB / 0.5537 GB, free: 15.64 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.715e-05/0.5851, allocations: 141.5 kB / 0.5538 GB, free: 15.54 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 1.21e-05/0.5851, allocations: 25.7 kB / 0.5538 GB, free: 15.51 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.036e-05/0.5852, allocations: 86.14 kB / 0.5539 GB, free: 15.43 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.595e-05/0.5852, allocations: 22.14 kB / 0.5539 GB, free: 15.41 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.128e-05/0.5852, allocations: 21.88 kB / 0.5539 GB, free: 15.4 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 8.943e-05/0.5853, allocations: 316 kB / 0.5543 GB, free: 15.09 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.276e-05/0.5854, allocations: 24.25 kB / 0.5543 GB, free: 15.09 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.153e-05/0.5855, allocations: 56.52 kB / 0.5543 GB, free: 15.05 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001216/0.5856, allocations: 78.59 kB / 0.5544 GB, free: 15.02 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.5856, allocations: 6.531 kB / 0.5544 GB, free: 15.01 MB / 478.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002216/0.5858, allocations: 109.1 kB / 0.5545 GB, free: 14.98 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.213e-05/0.5859, allocations: 10.81 kB / 0.5545 GB, free: 14.98 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.927e-06/0.5859, allocations: 0 / 0.5545 GB, free: 14.98 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.191e-05/0.5859, allocations: 3.031 kB / 0.5545 GB, free: 14.98 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.351e-05/0.586, allocations: 10.88 kB / 0.5545 GB, free: 14.98 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.503e-06/0.586, allocations: 7.703 kB / 0.5545 GB, free: 14.98 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.636e-05/0.586, allocations: 13.91 kB / 0.5546 GB, free: 14.97 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.294e-06/0.586, allocations: 2.938 kB / 0.5546 GB, free: 14.97 MB / 478.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 6.575e-05/0.5861, allocations: 121.5 kB / 0.5547 GB, free: 14.84 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.406e-05/0.5862, allocations: 14.19 kB / 0.5547 GB, free: 14.84 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002207/0.5864, allocations: 115.2 kB / 0.5548 GB, free: 14.8 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.5864, allocations: 96 / 0.5548 GB, free: 14.8 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.5864, allocations: 3.984 kB / 0.5548 GB, free: 14.79 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.925e-06/0.5864, allocations: 1.688 kB / 0.5548 GB, free: 14.79 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001158/0.5865, allocations: 182 kB / 0.555 GB, free: 14.6 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.5866, allocations: 1.125 kB / 0.555 GB, free: 14.6 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.662e-05/0.5866, allocations: 19.34 kB / 0.555 GB, free: 14.6 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.5866, allocations: 5.844 kB / 0.555 GB, free: 14.6 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.358e-06/0.5867, allocations: 3.641 kB / 0.555 GB, free: 14.6 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.923e-06/0.5867, allocations: 2.906 kB / 0.555 GB, free: 14.6 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.5867, allocations: 0 / 0.555 GB, free: 14.6 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002821/0.587, allocations: 164.5 kB / 0.5552 GB, free: 14.52 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.134e-05/0.587, allocations: 85.64 kB / 0.5552 GB, free: 14.43 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.651e-05/0.587, allocations: 6.906 kB / 0.5553 GB, free: 14.42 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.201e-05/0.5871, allocations: 0 / 0.5553 GB, free: 14.42 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.258e-05/0.5871, allocations: 10.84 kB / 0.5553 GB, free: 14.42 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.171e-06/0.5871, allocations: 6.844 kB / 0.5553 GB, free: 14.42 MB / 478.1 MB Notification: Performance of sorting global known variables: time 7.139e-05/0.5872, allocations: 111.8 kB / 0.5554 GB, free: 14.34 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5872, allocations: 0 / 0.5554 GB, free: 14.34 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.000433/0.5877, allocations: 164.1 kB / 0.5555 GB, free: 14.31 MB / 478.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 (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.000836/0.5885, allocations: 437.7 kB / 0.556 GB, free: 14.16 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0001775/0.5887, allocations: 60.14 kB / 0.556 GB, free: 14.16 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.5887, allocations: 3.188 kB / 0.556 GB, free: 14.16 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 6.522e-05/0.5888, allocations: 33.05 kB / 0.556 GB, free: 14.16 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002271/0.589, allocations: 27.56 kB / 0.5561 GB, free: 14.15 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004372/0.5895, allocations: 305.8 kB / 0.5564 GB, free: 13.93 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002141/0.5897, allocations: 0.6877 MB / 0.557 GB, free: 13.23 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 5.82e-05/0.5897, allocations: 28.28 kB / 0.5571 GB, free: 13.22 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.034e-05/0.5898, allocations: 19.62 kB / 0.5571 GB, free: 13.21 MB / 478.1 MB Notification: Performance of SimCode: time 2.31e-07/0.5898, allocations: 0 / 0.5571 GB, free: 13.21 MB / 478.1 MB Notification: Performance of Templates: time 0.007159/0.597, allocations: 4.724 MB / 0.5617 GB, free: 12.72 MB / 478.1 MB make -j1 -f Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.makefile (rm -f Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.sim & ./Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches