Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|h1|s1",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T") translateModel(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|h1|s1",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001064/0.001064, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.333/1.333, allocations: 222.9 MB / 240.9 MB, free: 10.96 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009751/0.0009751, allocations: 112.7 kB / 291.2 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00083/0.0008303, allocations: 39.95 kB / 350 MB, free: 76 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2179/0.2188, allocations: 49.44 MB / 399.5 MB, free: 33.37 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T): time 0.002088/0.2209, allocations: 1.421 MB / 400.9 MB, free: 31.95 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.325/0.546, allocations: 146.5 MB / 0.5345 GB, free: 12.09 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.022e-05/0.5461, allocations: 0 / 0.5345 GB, free: 12.09 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 3.174e-05/0.5461, allocations: 3.062 kB / 0.5345 GB, free: 12.09 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008436/0.547, allocations: 213.7 kB / 0.5347 GB, free: 12.05 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008323/0.5478, allocations: 334.3 kB / 0.535 GB, free: 11.98 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 7.535e-05/0.5479, allocations: 56.19 kB / 0.5351 GB, free: 11.97 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.236e-05/0.548, allocations: 12.64 kB / 0.5351 GB, free: 11.96 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.289e-05/0.548, allocations: 19.62 kB / 0.5351 GB, free: 11.96 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.537e-05/0.5481, allocations: 31.89 kB / 0.5352 GB, free: 11.96 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 1.036e-05/0.5481, allocations: 2.812 kB / 0.5352 GB, free: 11.96 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009021/0.549, allocations: 0.6166 MB / 0.5358 GB, free: 11.91 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 1.581e-05/0.5491, allocations: 9.453 kB / 0.5358 GB, free: 11.91 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 3.591e-05/0.5491, allocations: 27 kB / 0.5358 GB, free: 11.91 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006501/0.5498, allocations: 0.4915 MB / 0.5363 GB, free: 11.88 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.5498, allocations: 5.094 kB / 0.5363 GB, free: 11.88 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.5498, allocations: 1.125 kB / 0.5363 GB, free: 11.88 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.81e-06/0.5498, allocations: 0 / 0.5363 GB, free: 11.88 MB / 394.7 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.0005084/0.5503, allocations: 430.7 kB / 0.5367 GB, free: 11.47 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.266e-05/0.5504, allocations: 10.41 kB / 0.5367 GB, free: 11.47 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009252/0.5513, allocations: 94.11 kB / 0.5368 GB, free: 11.47 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002649/0.5516, allocations: 219.2 kB / 0.537 GB, free: 11.27 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.724e-05/0.5516, allocations: 6.594 kB / 0.537 GB, free: 11.27 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.556e-05/0.5516, allocations: 2.625 kB / 0.537 GB, free: 11.27 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002059/0.5518, allocations: 88.39 kB / 0.5371 GB, free: 11.22 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.294e-06/0.5519, allocations: 0 / 0.5371 GB, free: 11.22 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.305e-05/0.5519, allocations: 2.219 kB / 0.5371 GB, free: 11.22 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.5519, allocations: 0 / 0.5371 GB, free: 11.22 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001602/0.5521, allocations: 60.81 kB / 0.5372 GB, free: 11.21 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002569/0.5523, allocations: 211 kB / 0.5374 GB, free: 10.98 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000453/0.5528, allocations: 123.7 kB / 0.5375 GB, free: 10.91 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001066/0.5529, allocations: 41.09 kB / 0.5375 GB, free: 10.88 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006288/0.5535, allocations: 0.9846 MB / 0.5385 GB, free: 9.73 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.143e-05/0.5536, allocations: 32.81 kB / 0.5385 GB, free: 9.691 MB / 394.7 MB Notification: Performance of pre-optimization done (n=6): time 1.472e-06/0.5536, allocations: 0 / 0.5385 GB, free: 9.691 MB / 394.7 MB Notification: Performance of matching and sorting (n=6): time 0.0004579/0.554, allocations: 135.7 kB / 0.5386 GB, free: 9.625 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.418e-05/0.5541, allocations: 81.11 kB / 0.5387 GB, free: 9.527 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001996/0.5543, allocations: 152.6 kB / 0.5389 GB, free: 9.418 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.009e-05/0.5543, allocations: 29.39 kB / 0.5389 GB, free: 9.387 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.666e-05/0.5544, allocations: 82.67 kB / 0.539 GB, free: 9.305 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.14e-05/0.5544, allocations: 21.67 kB / 0.539 GB, free: 9.289 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.639e-05/0.5545, allocations: 31.91 kB / 0.539 GB, free: 9.266 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001288/0.5546, allocations: 321.3 kB / 0.5393 GB, free: 8.949 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001025/0.5547, allocations: 28.03 kB / 0.5393 GB, free: 8.938 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001187/0.5548, allocations: 58.72 kB / 0.5394 GB, free: 8.895 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002292/0.5551, allocations: 78.62 kB / 0.5395 GB, free: 8.855 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.5551, allocations: 3.938 kB / 0.5395 GB, free: 8.852 MB / 394.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0003186/0.5554, allocations: 127.5 kB / 0.5396 GB, free: 8.785 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.731e-05/0.5554, allocations: 6.156 kB / 0.5396 GB, free: 8.785 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.5555, allocations: 0 / 0.5396 GB, free: 8.785 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.665e-05/0.5555, allocations: 1.781 kB / 0.5396 GB, free: 8.785 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001613/0.5556, allocations: 23.56 kB / 0.5396 GB, free: 8.777 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.809e-06/0.5557, allocations: 2.75 kB / 0.5396 GB, free: 8.777 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001751/0.5558, allocations: 21.23 kB / 0.5397 GB, free: 8.762 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.187e-05/0.5559, allocations: 5.281 kB / 0.5397 GB, free: 8.762 MB / 394.7 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.915e-05/0.556, allocations: 132 kB / 0.5398 GB, free: 8.629 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.971e-05/0.556, allocations: 2.094 kB / 0.5398 GB, free: 8.629 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006055/0.5566, allocations: 238.3 kB / 0.54 GB, free: 8.535 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.171e-06/0.5567, allocations: 1.094 kB / 0.54 GB, free: 8.535 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.5567, allocations: 2.5 kB / 0.54 GB, free: 8.535 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.5567, allocations: 0 / 0.54 GB, free: 8.535 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001956/0.5569, allocations: 214.5 kB / 0.5402 GB, free: 8.316 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.5569, allocations: 0 / 0.5402 GB, free: 8.316 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000178/0.5571, allocations: 24.16 kB / 0.5402 GB, free: 8.309 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/0.5571, allocations: 5.75 kB / 0.5403 GB, free: 8.305 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.417e-05/0.5571, allocations: 3.062 kB / 0.5403 GB, free: 8.305 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.5571, allocations: 0 / 0.5403 GB, free: 8.305 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.5571, allocations: 3.984 kB / 0.5403 GB, free: 8.301 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001345/0.5585, allocations: 1.075 MB / 0.5413 GB, free: 7.301 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.233e-05/0.5586, allocations: 88.94 kB / 0.5414 GB, free: 7.203 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.813e-05/0.5586, allocations: 6.562 kB / 0.5414 GB, free: 7.203 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001589/0.5588, allocations: 6.391 kB / 0.5414 GB, free: 7.199 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.073e-05/0.5588, allocations: 6.391 kB / 0.5414 GB, free: 7.195 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.335e-05/0.5588, allocations: 6 kB / 0.5414 GB, free: 7.191 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001648/0.559, allocations: 132.4 kB / 0.5415 GB, free: 7.105 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.559, allocations: 4.094 kB / 0.5415 GB, free: 7.102 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006706/0.5597, allocations: 141.1 kB / 0.5417 GB, free: 7.074 MB / 394.7 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 (8): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.000703/0.5604, allocations: 320.6 kB / 0.542 GB, free: 6.906 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0002716/0.5607, allocations: 79.44 kB / 0.5421 GB, free: 6.887 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.5607, allocations: 4.125 kB / 0.5421 GB, free: 6.883 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001147/0.5608, allocations: 37.47 kB / 0.5421 GB, free: 6.875 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002196/0.561, allocations: 27.17 kB / 0.5421 GB, free: 6.867 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006243/0.5617, allocations: 450.9 kB / 0.5426 GB, free: 6.488 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002378/0.5619, allocations: 0.6918 MB / 0.5432 GB, free: 5.785 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0005499/0.5625, allocations: 428.5 kB / 0.5436 GB, free: 5.59 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001232/0.5626, allocations: 42.56 kB / 0.5437 GB, free: 5.566 MB / 394.7 MB Notification: Performance of SimCode: time 2.71e-07/0.5626, allocations: 0 / 0.5437 GB, free: 5.566 MB / 394.7 MB Notification: Performance of Templates: time 0.008605/0.5712, allocations: 5.14 MB / 0.5487 GB, free: 2.914 MB / 394.7 MB make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.makefile (rm -f Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.sim & ./Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/SolveOneNonlinearEquation/Inverse_sh_T/Inverse_sh_T.csv","../files/Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches