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.0007843/0.0007845, allocations: 98.77 kB / 17.01 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008715/0.0008715, allocations: 195.4 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.3/1.3, allocations: 227.7 MB / 246.4 MB, free: 9.777 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001925/0.0001925, allocations: 4 kB / 307.1 MB, free: 0.9648 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08058/0.08079, allocations: 51.52 MB / 358.6 MB, free: 13.44 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX): time 0.001191/0.08201, allocations: 1.084 MB / 359.7 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2834/0.3655, allocations: 138.2 MB / 498 MB, free: 0.8594 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.719e-05/0.3655, allocations: 0 / 498 MB, free: 0.8594 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.52e-05/0.3656, allocations: 3.938 kB / 498 MB, free: 0.8555 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000878/0.3664, allocations: 267.3 kB / 498.2 MB, free: 0.6016 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008008/0.3673, allocations: 359.1 kB / 498.6 MB, free: 260 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 9.126e-05/0.3674, allocations: 75.7 kB / 498.6 MB, free: 184 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.42e-05/0.3674, allocations: 3.984 kB / 498.6 MB, free: 180 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.748e-05/0.3675, allocations: 39.84 kB / 498.7 MB, free: 140 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.212e-05/0.3675, allocations: 31.86 kB / 498.7 MB, free: 108 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.255e-05/0.3676, allocations: 4 kB / 498.7 MB, free: 104 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001404/0.369, allocations: 0.7797 MB / 499.5 MB, free: 15.32 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 3.167e-05/0.369, allocations: 15.92 kB / 499.5 MB, free: 15.3 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.885e-05/0.3691, allocations: 33.7 kB / 499.5 MB, free: 15.27 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005578/0.3696, allocations: 448.4 kB / 500 MB, free: 14.83 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.012e-05/0.3696, allocations: 4 kB / 500 MB, free: 14.82 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.113e-06/0.3696, allocations: 7.938 kB / 500 MB, free: 14.82 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.761e-06/0.3697, allocations: 0 / 500 MB, free: 14.82 MB / 414.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.000484/0.3701, allocations: 447.6 kB / 0.4887 GB, free: 14.33 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.928e-05/0.3702, allocations: 8.031 kB / 0.4887 GB, free: 14.32 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004188/0.3706, allocations: 67.77 kB / 0.4888 GB, free: 14.26 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001471/0.3708, allocations: 193.7 kB / 0.489 GB, free: 14.03 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.177e-05/0.3708, allocations: 7.938 kB / 0.489 GB, free: 14.02 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.667e-05/0.3708, allocations: 0 / 0.489 GB, free: 14.02 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000143/0.371, allocations: 79.34 kB / 0.489 GB, free: 13.93 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.304e-06/0.371, allocations: 3.938 kB / 0.4891 GB, free: 13.93 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.468e-06/0.371, allocations: 4 kB / 0.4891 GB, free: 13.93 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.897e-06/0.371, allocations: 0 / 0.4891 GB, free: 13.93 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.806e-05/0.3711, allocations: 43.95 kB / 0.4891 GB, free: 13.88 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001809/0.3713, allocations: 186.6 kB / 0.4893 GB, free: 13.65 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002757/0.3716, allocations: 117.1 kB / 0.4894 GB, free: 13.52 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.956e-05/0.3717, allocations: 33.77 kB / 0.4894 GB, free: 13.48 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003918/0.3721, allocations: 141 kB / 0.4896 GB, free: 13.32 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.06e-05/0.3721, allocations: 38.52 kB / 0.4896 GB, free: 13.27 MB / 414.1 MB Notification: Performance of pre-optimization done (n=6): time 1.113e-06/0.3721, allocations: 4 kB / 0.4896 GB, free: 13.27 MB / 414.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003323/0.3724, allocations: 117.5 kB / 0.4897 GB, free: 13.15 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.136e-05/0.3725, allocations: 77.11 kB / 0.4898 GB, free: 13.05 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001187/0.3726, allocations: 137.8 kB / 0.4899 GB, free: 12.91 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.478e-05/0.3726, allocations: 37.69 kB / 0.4899 GB, free: 12.87 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.339e-05/0.3727, allocations: 80.14 kB / 0.49 GB, free: 12.79 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.272e-05/0.3727, allocations: 23.66 kB / 0.49 GB, free: 12.76 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.231e-06/0.3727, allocations: 4 kB / 0.49 GB, free: 12.76 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.899e-05/0.3728, allocations: 322.8 kB / 0.4904 GB, free: 12.43 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.168e-05/0.3729, allocations: 23.98 kB / 0.4904 GB, free: 12.41 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.01e-05/0.373, allocations: 47.42 kB / 0.4904 GB, free: 12.35 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.953e-05/0.3731, allocations: 31.98 kB / 0.4905 GB, free: 12.32 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.3731, allocations: 0 / 0.4905 GB, free: 12.32 MB / 414.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002351/0.3733, allocations: 109.5 kB / 0.4906 GB, free: 12.21 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.153e-05/0.3733, allocations: 4 kB / 0.4906 GB, free: 12.2 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.573e-06/0.3733, allocations: 3.953 kB / 0.4906 GB, free: 12.2 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.108e-05/0.3733, allocations: 7.938 kB / 0.4906 GB, free: 12.19 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.679e-05/0.3734, allocations: 20.88 kB / 0.4906 GB, free: 12.17 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.262e-06/0.3734, allocations: 3.984 kB / 0.4906 GB, free: 12.17 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.398e-05/0.3735, allocations: 7.938 kB / 0.4906 GB, free: 12.16 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.162e-06/0.3735, allocations: 0 / 0.4906 GB, free: 12.16 MB / 414.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.423e-05/0.3736, allocations: 113.8 kB / 0.4907 GB, free: 12.04 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.019e-05/0.3736, allocations: 7.906 kB / 0.4907 GB, free: 12.03 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002478/0.3739, allocations: 118.3 kB / 0.4908 GB, free: 11.91 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.54e-06/0.3739, allocations: 8.031 kB / 0.4908 GB, free: 11.9 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.3739, allocations: 8 kB / 0.4909 GB, free: 11.89 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.3739, allocations: 1.875 kB / 0.4909 GB, free: 11.89 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001331/0.374, allocations: 177.7 kB / 0.491 GB, free: 11.67 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.3741, allocations: 0 / 0.491 GB, free: 11.67 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.876e-05/0.3741, allocations: 19.92 kB / 0.491 GB, free: 11.65 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.285e-06/0.3742, allocations: 3.938 kB / 0.491 GB, free: 11.65 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.065e-06/0.3742, allocations: 0 / 0.491 GB, free: 11.65 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.3742, allocations: 0 / 0.491 GB, free: 11.65 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.898e-06/0.3742, allocations: 7.953 kB / 0.4911 GB, free: 11.64 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002979/0.3745, allocations: 157.8 kB / 0.4912 GB, free: 11.46 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.085e-05/0.3746, allocations: 97.02 kB / 0.4913 GB, free: 11.35 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.674e-05/0.3746, allocations: 0 / 0.4913 GB, free: 11.35 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.351e-05/0.3746, allocations: 7.625 kB / 0.4913 GB, free: 11.35 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.338e-05/0.3747, allocations: 11.94 kB / 0.4913 GB, free: 11.34 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.298e-06/0.3747, allocations: 0 / 0.4913 GB, free: 11.34 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.508e-05/0.3748, allocations: 119.3 kB / 0.4914 GB, free: 11.22 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.332e-06/0.3748, allocations: 0 / 0.4914 GB, free: 11.22 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004563/0.3752, allocations: 159.8 kB / 0.4916 GB, free: 11.06 MB / 414.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.0008213/0.376, allocations: 362.8 kB / 0.4919 GB, free: 10.71 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000182/0.3762, allocations: 64.03 kB / 0.492 GB, free: 10.64 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.3763, allocations: 4 kB / 0.492 GB, free: 10.64 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 7.36e-05/0.3763, allocations: 31.97 kB / 0.492 GB, free: 10.61 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002373/0.3766, allocations: 18.56 kB / 0.492 GB, free: 10.59 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005108/0.3771, allocations: 373 kB / 0.4924 GB, free: 10.2 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002275/0.3773, allocations: 0.6887 MB / 0.4931 GB, free: 9.484 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.258e-05/0.3774, allocations: 23.98 kB / 0.4931 GB, free: 9.461 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.093e-05/0.3774, allocations: 11.44 kB / 0.4931 GB, free: 9.449 MB / 414.1 MB Notification: Performance of SimCode: time 2.554e-06/0.3775, allocations: 0 / 0.4931 GB, free: 9.449 MB / 414.1 MB Notification: Performance of Templates: time 0.007942/0.3854, allocations: 4.504 MB / 0.4975 GB, free: 4.953 MB / 414.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