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.001716/0.001716, allocations: 109 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002059/0.002059, allocations: 209.7 kB / 18.79 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.385/1.385, allocations: 227.4 MB / 246.9 MB, free: 10.66 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001243, allocations: 59.28 kB / 306.9 MB, free: 0.918 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09701/0.09827, allocations: 50.53 MB / 357.4 MB, free: 14.38 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX): time 0.002882/0.1012, allocations: 1.442 MB / 358.9 MB, free: 12.93 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.3386/0.4398, allocations: 149.7 MB / 0.4966 GB, free: 4.594 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.025e-05/0.4399, allocations: 0 / 0.4966 GB, free: 4.594 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 4.82e-05/0.44, allocations: 7.922 kB / 0.4966 GB, free: 4.586 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001078/0.4411, allocations: 332.4 kB / 0.497 GB, free: 4.27 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001108/0.4422, allocations: 462.7 kB / 0.4974 GB, free: 3.82 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001159/0.4423, allocations: 99.55 kB / 0.4975 GB, free: 3.723 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.056e-05/0.4424, allocations: 7.984 kB / 0.4975 GB, free: 3.715 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.277e-05/0.4424, allocations: 31.86 kB / 0.4975 GB, free: 3.684 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.242e-05/0.4425, allocations: 35.91 kB / 0.4976 GB, free: 3.648 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.37e-05/0.4425, allocations: 0 / 0.4976 GB, free: 3.648 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002093/0.4446, allocations: 1.248 MB / 0.4988 GB, free: 2.398 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 4.059e-05/0.4447, allocations: 15.92 kB / 0.4988 GB, free: 2.383 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 4.613e-05/0.4447, allocations: 27.86 kB / 0.4988 GB, free: 2.355 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007623/0.4455, allocations: 0.5224 MB / 0.4993 GB, free: 1.832 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.4455, allocations: 0 / 0.4993 GB, free: 1.832 MB / 414.1 MB Notification: Performance of FrontEnd: time 4.288e-06/0.4455, allocations: 4 kB / 0.4993 GB, free: 1.828 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.038e-06/0.4455, allocations: 0 / 0.4993 GB, free: 1.828 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.0005798/0.4461, allocations: 451.7 kB / 0.4998 GB, free: 1.34 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.804e-05/0.4462, allocations: 12.03 kB / 0.4998 GB, free: 1.328 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004945/0.4467, allocations: 76.73 kB / 0.4999 GB, free: 1.254 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000164/0.4468, allocations: 196.3 kB / 0.5 GB, free: 1.023 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.641e-05/0.4469, allocations: 7.922 kB / 0.5001 GB, free: 1.016 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.917e-05/0.4469, allocations: 12 kB / 0.5001 GB, free: 1.004 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001659/0.4471, allocations: 67.39 kB / 0.5001 GB, free: 0.9258 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.728e-06/0.4471, allocations: 3.984 kB / 0.5001 GB, free: 0.9219 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.528e-06/0.4471, allocations: 3.938 kB / 0.5001 GB, free: 0.918 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.629e-06/0.4471, allocations: 1.125 kB / 0.5001 GB, free: 0.918 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001072/0.4472, allocations: 47.91 kB / 0.5002 GB, free: 0.8711 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002012/0.4474, allocations: 191.6 kB / 0.5004 GB, free: 0.6328 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002961/0.4477, allocations: 117.2 kB / 0.5005 GB, free: 0.5 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.342e-05/0.4478, allocations: 29.7 kB / 0.5005 GB, free: 476 kB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005335/0.4484, allocations: 141 kB / 0.5006 GB, free: 316 kB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.456e-05/0.4484, allocations: 34.56 kB / 0.5007 GB, free: 272 kB / 414.1 MB Notification: Performance of pre-optimization done (n=6): time 1.262e-06/0.4484, allocations: 0 / 0.5007 GB, free: 272 kB / 414.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003593/0.4488, allocations: 125.5 kB / 0.5008 GB, free: 140 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.861e-05/0.4488, allocations: 77.11 kB / 0.5009 GB, free: 44 kB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001296/0.449, allocations: 145.8 kB / 0.501 GB, free: 15.89 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.756e-05/0.449, allocations: 25.7 kB / 0.501 GB, free: 15.86 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.662e-05/0.449, allocations: 84.14 kB / 0.5011 GB, free: 15.77 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.641e-05/0.4491, allocations: 31.62 kB / 0.5011 GB, free: 15.74 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.663e-05/0.4491, allocations: 21.72 kB / 0.5012 GB, free: 15.71 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000103/0.4492, allocations: 318.8 kB / 0.5015 GB, free: 15.39 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.167e-05/0.4493, allocations: 27.98 kB / 0.5015 GB, free: 15.37 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.676e-05/0.4494, allocations: 47.42 kB / 0.5015 GB, free: 15.31 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001445/0.4495, allocations: 79.7 kB / 0.5016 GB, free: 15.22 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.4496, allocations: 11.94 kB / 0.5016 GB, free: 15.21 MB / 430.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002447/0.4498, allocations: 109.4 kB / 0.5017 GB, free: 15.09 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.515e-05/0.4498, allocations: 11.98 kB / 0.5017 GB, free: 15.08 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.4498, allocations: 0.5 kB / 0.5017 GB, free: 15.08 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.154e-05/0.4499, allocations: 0 / 0.5017 GB, free: 15.08 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.831e-05/0.4499, allocations: 16 kB / 0.5018 GB, free: 15.07 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.58e-06/0.4499, allocations: 0 / 0.5018 GB, free: 15.07 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.004e-05/0.45, allocations: 11.92 kB / 0.5018 GB, free: 15.06 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.013e-06/0.45, allocations: 0 / 0.5018 GB, free: 15.06 MB / 430.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.642e-05/0.4501, allocations: 125.8 kB / 0.5019 GB, free: 14.93 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.204e-05/0.4502, allocations: 7.906 kB / 0.5019 GB, free: 14.92 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002586/0.4504, allocations: 112.7 kB / 0.502 GB, free: 14.8 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.848e-06/0.4504, allocations: 0 / 0.502 GB, free: 14.8 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.4504, allocations: 3.938 kB / 0.502 GB, free: 14.8 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.4505, allocations: 7.984 kB / 0.502 GB, free: 14.79 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001379/0.4506, allocations: 181.5 kB / 0.5022 GB, free: 14.57 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.4506, allocations: 0 / 0.5022 GB, free: 14.57 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.413e-05/0.4507, allocations: 23.92 kB / 0.5022 GB, free: 14.54 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.4507, allocations: 4 kB / 0.5022 GB, free: 14.54 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.056e-05/0.4507, allocations: 0 / 0.5022 GB, free: 14.54 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.4507, allocations: 0 / 0.5022 GB, free: 14.54 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.4507, allocations: 4 kB / 0.5022 GB, free: 14.54 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000445/0.4512, allocations: 157.8 kB / 0.5024 GB, free: 14.36 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.172e-05/0.4513, allocations: 93.09 kB / 0.5025 GB, free: 14.25 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.546e-05/0.4513, allocations: 0 / 0.5025 GB, free: 14.25 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.63e-05/0.4514, allocations: 8 kB / 0.5025 GB, free: 14.24 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.945e-05/0.4514, allocations: 7.922 kB / 0.5025 GB, free: 14.23 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.606e-06/0.4515, allocations: 4 kB / 0.5025 GB, free: 14.23 MB / 430.1 MB Notification: Performance of sorting global known variables: time 9.838e-05/0.4516, allocations: 111.2 kB / 0.5026 GB, free: 14.12 MB / 430.1 MB Notification: Performance of sort global known variables: time 2e-07/0.4516, allocations: 4 kB / 0.5026 GB, free: 14.12 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.000608/0.4522, allocations: 159.9 kB / 0.5027 GB, free: 13.96 MB / 430.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.001191/0.4534, allocations: 438.5 kB / 0.5032 GB, free: 13.53 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0002104/0.4536, allocations: 59.91 kB / 0.5032 GB, free: 13.47 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.4536, allocations: 0 / 0.5032 GB, free: 13.47 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 8.299e-05/0.4537, allocations: 35.97 kB / 0.5032 GB, free: 13.44 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002815/0.454, allocations: 23.92 kB / 0.5033 GB, free: 13.41 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006334/0.4546, allocations: 351.5 kB / 0.5036 GB, free: 13.04 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002524/0.4549, allocations: 0.6926 MB / 0.5043 GB, free: 12.32 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.575e-05/0.455, allocations: 19.38 kB / 0.5043 GB, free: 12.3 MB / 430.1 MB Notification: Performance of SimCode: time 2.61e-07/0.455, allocations: 0 / 0.5043 GB, free: 12.3 MB / 430.1 MB Notification: Performance of Templates: time 0.007102/0.4621, allocations: 4.033 MB / 0.5082 GB, free: 8.281 MB / 430.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/jenkins1/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/jenkins1/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