Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 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_TX,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|h1|s1",fileNamePrefix="Modelica_3.2.3_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_3.2.3_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.001014/0.001014, allocations: 105.3 kB / 17.16 MB, free: 6.34 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.0009715/0.0009715, allocations: 194 kB / 18.07 MB, free: 5.438 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.326/1.326, allocations: 205.1 MB / 223.9 MB, free: 12.41 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.001191/0.001191, allocations: 52.39 kB / 280 MB, free: 3.598 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09719/0.09839, allocations: 46.63 MB / 326.6 MB, free: 4.906 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX): time 0.002469/0.1009, allocations: 1.432 MB / 328 MB, free: 3.457 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.3403/0.4412, allocations: 148.5 MB / 476.6 MB, free: 1.848 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.035e-05/0.4414, allocations: 0 / 476.6 MB, free: 1.848 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 4.566e-05/0.4414, allocations: 7.984 kB / 476.6 MB, free: 1.84 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001143/0.4426, allocations: 316.2 kB / 476.9 MB, free: 1.535 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00181/0.4444, allocations: 0.6959 MB / 477.6 MB, free: 0.8398 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000128/0.4445, allocations: 95.61 kB / 477.7 MB, free: 0.7461 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.645e-05/0.4446, allocations: 0 / 477.7 MB, free: 0.7461 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.791e-05/0.4446, allocations: 39.86 kB / 477.7 MB, free: 0.707 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.869e-05/0.4447, allocations: 39.83 kB / 477.7 MB, free: 0.668 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.416e-05/0.4448, allocations: 0 / 477.7 MB, free: 0.668 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002451/0.4472, allocations: 1.526 MB / 479.3 MB, free: 15.14 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.695e-05/0.4473, allocations: 11.98 kB / 479.3 MB, free: 15.13 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.316e-05/0.4473, allocations: 31.86 kB / 479.3 MB, free: 15.1 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001307/0.4486, allocations: 0.9353 MB / 480.2 MB, free: 14.16 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.4487, allocations: 0 / 480.2 MB, free: 14.16 MB / 382.1 MB Notification: Performance of FrontEnd: time 9.32e-07/0.4487, allocations: 0 / 480.2 MB, free: 14.16 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.854e-06/0.4487, allocations: 0 / 480.2 MB, free: 14.16 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.0006654/0.4494, allocations: 479.7 kB / 480.7 MB, free: 13.64 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.468e-05/0.4494, allocations: 8.031 kB / 480.7 MB, free: 13.64 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003228/0.4497, allocations: 36.8 kB / 480.8 MB, free: 13.6 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002079/0.4499, allocations: 200.2 kB / 481 MB, free: 13.37 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.37e-05/0.45, allocations: 4.562 kB / 481 MB, free: 13.36 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.985e-05/0.45, allocations: 7.938 kB / 481 MB, free: 13.36 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001646/0.4502, allocations: 67.39 kB / 481 MB, free: 13.28 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.087e-06/0.4502, allocations: 3.938 kB / 481 MB, free: 13.27 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.862e-05/0.4502, allocations: 4 kB / 481 MB, free: 13.27 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.641e-06/0.4502, allocations: 7.938 kB / 481 MB, free: 13.26 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001011/0.4503, allocations: 35.97 kB / 481.1 MB, free: 13.23 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002442/0.4506, allocations: 198.6 kB / 481.3 MB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000321/0.4509, allocations: 113.1 kB / 481.4 MB, free: 12.85 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.646e-05/0.451, allocations: 37.7 kB / 481.4 MB, free: 12.81 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005968/0.4516, allocations: 145 kB / 481.6 MB, free: 12.65 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.318e-05/0.4516, allocations: 30.56 kB / 481.6 MB, free: 12.61 MB / 382.1 MB Notification: Performance of pre-optimization done (n=6): time 1.072e-06/0.4517, allocations: 0 / 481.6 MB, free: 12.61 MB / 382.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003907/0.452, allocations: 121.5 kB / 481.7 MB, free: 12.48 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.433e-05/0.4521, allocations: 77.11 kB / 481.8 MB, free: 12.39 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001246/0.4522, allocations: 143.7 kB / 481.9 MB, free: 12.24 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.555e-05/0.4523, allocations: 26.83 kB / 482 MB, free: 12.21 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.762e-05/0.4523, allocations: 92.12 kB / 482 MB, free: 12.12 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.596e-05/0.4524, allocations: 23.66 kB / 482.1 MB, free: 12.09 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.778e-05/0.4524, allocations: 21.66 kB / 482.1 MB, free: 12.07 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001123/0.4525, allocations: 326.8 kB / 482.4 MB, free: 11.74 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.251e-05/0.4526, allocations: 19.98 kB / 482.4 MB, free: 11.72 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.635e-05/0.4527, allocations: 51.41 kB / 482.5 MB, free: 11.66 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001622/0.4529, allocations: 87.7 kB / 482.6 MB, free: 11.56 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.4529, allocations: 0 / 482.6 MB, free: 11.56 MB / 382.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002394/0.4531, allocations: 109.5 kB / 482.7 MB, free: 11.45 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.761e-05/0.4532, allocations: 4 kB / 482.7 MB, free: 11.44 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.303e-06/0.4532, allocations: 4 kB / 482.7 MB, free: 11.44 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.581e-05/0.4532, allocations: 3.938 kB / 482.7 MB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.183e-05/0.4533, allocations: 16.86 kB / 482.7 MB, free: 11.42 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/0.4533, allocations: 3.938 kB / 482.7 MB, free: 11.41 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.253e-05/0.4533, allocations: 11.97 kB / 482.7 MB, free: 11.4 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.297e-05/0.4534, allocations: 4 kB / 482.7 MB, free: 11.4 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 8.914e-05/0.4535, allocations: 113.8 kB / 482.8 MB, free: 11.28 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.442e-05/0.4535, allocations: 11.84 kB / 482.8 MB, free: 11.27 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002614/0.4538, allocations: 114.5 kB / 483 MB, free: 11.15 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.4538, allocations: 4 kB / 483 MB, free: 11.15 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.275e-06/0.4538, allocations: 0 / 483 MB, free: 11.15 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.4538, allocations: 3.938 kB / 483 MB, free: 11.14 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001587/0.454, allocations: 190.9 kB / 483.1 MB, free: 10.91 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.454, allocations: 4 kB / 483.2 MB, free: 10.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.03e-05/0.4541, allocations: 11.98 kB / 483.2 MB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.774e-06/0.4541, allocations: 0 / 483.2 MB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.142e-05/0.4541, allocations: 4 kB / 483.2 MB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.4541, allocations: 0 / 483.2 MB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.4541, allocations: 0 / 483.2 MB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003518/0.4545, allocations: 176.2 kB / 483.3 MB, free: 10.7 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.765e-05/0.4545, allocations: 85.09 kB / 483.4 MB, free: 10.6 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.597e-05/0.4546, allocations: 7.984 kB / 483.4 MB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.405e-05/0.4546, allocations: 0 / 483.4 MB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.473e-05/0.4547, allocations: 4 kB / 483.4 MB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.1e-06/0.4547, allocations: 0 / 483.4 MB, free: 10.59 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.155e-05/0.4548, allocations: 115.2 kB / 483.5 MB, free: 10.47 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4548, allocations: 0 / 483.5 MB, free: 10.47 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006074/0.4554, allocations: 207.8 kB / 483.8 MB, free: 10.27 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 (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.001204/0.4566, allocations: 0.5156 MB / 484.3 MB, free: 9.75 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001966/0.4568, allocations: 59.95 kB / 484.3 MB, free: 9.691 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.4568, allocations: 4 kB / 484.3 MB, free: 9.688 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 7.585e-05/0.4569, allocations: 31.92 kB / 484.4 MB, free: 9.656 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002664/0.4572, allocations: 36.3 kB / 484.4 MB, free: 9.621 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005748/0.4578, allocations: 319.9 kB / 484.7 MB, free: 9.285 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002634/0.458, allocations: 0.6926 MB / 485.4 MB, free: 8.566 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.464e-05/0.4581, allocations: 19.83 kB / 485.4 MB, free: 8.547 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.478e-05/0.4581, allocations: 19.42 kB / 485.4 MB, free: 8.527 MB / 382.1 MB Notification: Performance of SimCode: time 2.6e-07/0.4582, allocations: 0 / 485.4 MB, free: 8.527 MB / 382.1 MB Notification: Performance of Templates: time 0.009787/0.4679, allocations: 5.933 MB / 491.4 MB, free: 2.594 MB / 382.1 MB make -j1 -f Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.makefile (rm -f Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.sim & ./Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/SolveOneNonlinearEquation/Inverse_sh_TX/Inverse_sh_TX.csv","../files/Modelica_3.2.3_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches