Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.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_TX,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|h1|s1",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001413/0.001412, allocations: 183.4 kB / 8.135 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.346/1.346, allocations: 221.4 MB / 229.9 MB, free: 3.062 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001239/0.001239, allocations: 88.48 kB / 280.8 MB, free: 1.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.053e-06/7.073e-06, allocations: 0 / 336.5 MB, free: 9.512 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3222/0.3223, allocations: 50.4 MB / 386.9 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.467/1.79, allocations: 0.7142 GB / 1.092 GB, free: 71.67 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002618/1.79, allocations: 71.95 kB / 1.092 GB, free: 71.6 MB / 442.7 MB Notification: Performance of FrontEnd: time 0.1352/1.925, allocations: 67.72 MB / 1.158 GB, free: 2.996 MB / 442.7 MB Notification: Performance of Transformations before backend: time 8.296e-06/1.925, allocations: 0 / 1.158 GB, free: 2.996 MB / 442.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.0006303/1.926, allocations: 434 kB / 1.159 GB, free: 2.527 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.13e-05/1.926, allocations: 8.031 kB / 1.159 GB, free: 2.52 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000364/1.926, allocations: 59.81 kB / 1.159 GB, free: 2.461 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001748/1.927, allocations: 187 kB / 1.159 GB, free: 2.238 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.738e-05/1.927, allocations: 7.938 kB / 1.159 GB, free: 2.23 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.105e-05/1.927, allocations: 11.91 kB / 1.159 GB, free: 2.219 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.751e-05/1.927, allocations: 39.95 kB / 1.159 GB, free: 2.18 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001011/1.927, allocations: 71.38 kB / 1.159 GB, free: 2.098 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.418e-06/1.927, allocations: 3.938 kB / 1.159 GB, free: 2.094 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.272e-05/1.927, allocations: 0 / 1.159 GB, free: 2.094 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/1.927, allocations: 4 kB / 1.159 GB, free: 2.09 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001749/1.927, allocations: 183 kB / 1.159 GB, free: 1.871 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002693/1.927, allocations: 109.2 kB / 1.159 GB, free: 1.746 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.732e-05/1.927, allocations: 37.84 kB / 1.159 GB, free: 1.703 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004222/1.928, allocations: 226.1 kB / 1.16 GB, free: 1.445 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.365e-05/1.928, allocations: 34.5 kB / 1.16 GB, free: 1.402 MB / 442.7 MB Notification: Performance of pre-optimization done (n=6): time 1.313e-06/1.928, allocations: 0 / 1.16 GB, free: 1.402 MB / 442.7 MB Notification: Performance of matching and sorting (n=6): time 0.001175/1.929, allocations: 309.2 kB / 1.16 GB, free: 1.094 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.613e-05/1.929, allocations: 85.09 kB / 1.16 GB, free: 0.9922 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.226e-05/1.929, allocations: 124.9 kB / 1.16 GB, free: 0.8633 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 1.023e-05/1.929, allocations: 25.7 kB / 1.16 GB, free: 0.832 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.668e-05/1.929, allocations: 84.14 kB / 1.16 GB, free: 0.7461 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.57e-05/1.929, allocations: 27.64 kB / 1.16 GB, free: 0.7188 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.17e-06/1.929, allocations: 0 / 1.16 GB, free: 0.7188 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 5.427e-05/1.929, allocations: 314.8 kB / 1.16 GB, free: 412 kB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.514e-05/1.929, allocations: 27.97 kB / 1.161 GB, free: 384 kB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.211e-05/1.929, allocations: 47.42 kB / 1.161 GB, free: 324 kB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007686/1.93, allocations: 223.7 kB / 1.161 GB, free: 100 kB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/1.93, allocations: 4 kB / 1.161 GB, free: 96 kB / 442.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.1862/2.116, allocations: 285.7 kB / 1.161 GB, free: 171.3 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.34e-05/2.116, allocations: 5.25 kB / 1.161 GB, free: 171.3 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.148e-05/2.117, allocations: 0 / 1.161 GB, free: 171.3 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.079e-05/2.117, allocations: 4.5 kB / 1.161 GB, free: 171.3 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001087/2.117, allocations: 19.22 kB / 1.161 GB, free: 171.3 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.272e-06/2.117, allocations: 3.188 kB / 1.161 GB, free: 171.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.464e-05/2.117, allocations: 3.594 kB / 1.161 GB, free: 171.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.444e-05/2.117, allocations: 10.25 kB / 1.161 GB, free: 171.3 MB / 442.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 () * 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.04e-05/2.117, allocations: 111.2 kB / 1.161 GB, free: 171.2 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.532e-05/2.117, allocations: 8.156 kB / 1.161 GB, free: 171.2 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00104/2.118, allocations: 319 kB / 1.162 GB, free: 171.2 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.508e-06/2.118, allocations: 0 / 1.162 GB, free: 171.2 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.022e-06/2.118, allocations: 5.312 kB / 1.162 GB, free: 171.2 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/2.118, allocations: 0 / 1.162 GB, free: 171.2 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001144/2.118, allocations: 158.9 kB / 1.162 GB, free: 171 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/2.118, allocations: 0 / 1.162 GB, free: 171 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001002/2.118, allocations: 13.03 kB / 1.162 GB, free: 171 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/2.118, allocations: 0 / 1.162 GB, free: 171 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.389e-05/2.118, allocations: 3.156 kB / 1.162 GB, free: 171 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/2.118, allocations: 0 / 1.162 GB, free: 171 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/2.118, allocations: 2.344 kB / 1.162 GB, free: 171 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009714/2.119, allocations: 367.7 kB / 1.162 GB, free: 170.9 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.008e-05/2.119, allocations: 95.61 kB / 1.162 GB, free: 170.8 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.698e-05/2.119, allocations: 7.328 kB / 1.162 GB, free: 170.8 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.052e-05/2.119, allocations: 3.062 kB / 1.162 GB, free: 170.8 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.616e-05/2.119, allocations: 12.39 kB / 1.162 GB, free: 170.8 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.428e-06/2.119, allocations: 3.156 kB / 1.162 GB, free: 170.8 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.644e-05/2.12, allocations: 104.5 kB / 1.162 GB, free: 170.8 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0008202/2.12, allocations: 214.1 kB / 1.162 GB, free: 170.8 MB / 442.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 () * 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.001531/2.122, allocations: 0.9235 MB / 1.163 GB, free: 170.7 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.000126/2.122, allocations: 61.81 kB / 1.163 GB, free: 170.7 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/2.122, allocations: 0 / 1.163 GB, free: 170.7 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 3.651e-05/2.122, allocations: 31.61 kB / 1.163 GB, free: 170.7 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000223/2.122, allocations: 25.23 kB / 1.163 GB, free: 170.7 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004091/2.123, allocations: 217.6 kB / 1.164 GB, free: 170.6 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001941/2.123, allocations: 0.7108 MB / 1.164 GB, free: 169.9 MB / 442.7 MB Notification: Performance of SimCode: time 2.41e-07/2.123, allocations: 3.188 kB / 1.164 GB, free: 169.9 MB / 442.7 MB Notification: Performance of Templates: time 0.01187/2.135, allocations: 7.622 MB / 1.172 GB, free: 169.6 MB / 442.7 MB make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.makefile (rm -f Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.sim & ./Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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","../files/Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches