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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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") [: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 trunk/package.mo): time 0.001819/0.001819, allocations: 203.5 kB / 8.542 MB, free: 1.812 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.505/1.505, allocations: 225.5 MB / 234.4 MB, free: 3.367 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001061/0.001061, allocations: 97.66 kB / 286.3 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.071e-05/1.112e-05, allocations: 4 kB / 343.1 MB, free: 8.676 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1331/0.1331, allocations: 51.49 MB / 394.6 MB, free: 5.141 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.975/2.108, allocations: 0.715 GB / 1.1 GB, free: 132.7 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003/2.109, allocations: 71.61 kB / 1.1 GB, free: 132.7 MB / 442.7 MB Notification: Performance of FrontEnd: time 0.149/2.258, allocations: 68.15 MB / 1.167 GB, free: 71.64 MB / 442.7 MB Notification: Performance of Transformations before backend: time 9.799e-06/2.258, allocations: 0 / 1.167 GB, free: 71.64 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.0007918/2.259, allocations: 446.5 kB / 1.167 GB, free: 71.16 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.617e-05/2.259, allocations: 8.031 kB / 1.167 GB, free: 71.16 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004305/2.259, allocations: 55.81 kB / 1.167 GB, free: 71.1 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002303/2.26, allocations: 194.9 kB / 1.168 GB, free: 70.87 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.078e-05/2.26, allocations: 7.906 kB / 1.168 GB, free: 70.86 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.785e-05/2.26, allocations: 4 kB / 1.168 GB, free: 70.86 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.726e-05/2.26, allocations: 43.95 kB / 1.168 GB, free: 70.82 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001166/2.26, allocations: 75.31 kB / 1.168 GB, free: 70.73 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-06/2.26, allocations: 0 / 1.168 GB, free: 70.73 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.51e-05/2.26, allocations: 3.984 kB / 1.168 GB, free: 70.73 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.49e-06/2.26, allocations: 0 / 1.168 GB, free: 70.73 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002051/2.26, allocations: 171.1 kB / 1.168 GB, free: 70.52 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003012/2.26, allocations: 121.2 kB / 1.168 GB, free: 70.38 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.823e-05/2.26, allocations: 29.86 kB / 1.168 GB, free: 70.35 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004445/2.261, allocations: 226.1 kB / 1.168 GB, free: 70.09 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.755e-05/2.261, allocations: 30.56 kB / 1.168 GB, free: 70.05 MB / 442.7 MB Notification: Performance of pre-optimization done (n=6): time 1.663e-06/2.261, allocations: 0 / 1.168 GB, free: 70.05 MB / 442.7 MB Notification: Performance of matching and sorting (n=6): time 0.001346/2.262, allocations: 306.7 kB / 1.169 GB, free: 69.75 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.737e-05/2.262, allocations: 81.11 kB / 1.169 GB, free: 69.65 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001087/2.262, allocations: 133 kB / 1.169 GB, free: 69.51 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 1.096e-05/2.262, allocations: 25.7 kB / 1.169 GB, free: 69.48 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.605e-05/2.263, allocations: 80.14 kB / 1.169 GB, free: 69.4 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.584e-05/2.263, allocations: 27.64 kB / 1.169 GB, free: 69.37 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.481e-06/2.263, allocations: 0 / 1.169 GB, free: 69.37 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 5.833e-05/2.263, allocations: 318.8 kB / 1.169 GB, free: 69.05 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.736e-05/2.263, allocations: 19.98 kB / 1.169 GB, free: 69.03 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.634e-05/2.263, allocations: 52.89 kB / 1.169 GB, free: 68.97 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008508/2.264, allocations: 215.7 kB / 1.169 GB, free: 68.76 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.449e-06/2.264, allocations: 0 / 1.169 GB, free: 68.76 MB / 442.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0009656/2.265, allocations: 293.2 kB / 1.17 GB, free: 68.46 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.588e-05/2.265, allocations: 8 kB / 1.17 GB, free: 68.46 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.265e-06/2.265, allocations: 0 / 1.17 GB, free: 68.46 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.521e-05/2.265, allocations: 0 / 1.17 GB, free: 68.46 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.511e-05/2.265, allocations: 30.14 kB / 1.17 GB, free: 68.43 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.089e-05/2.265, allocations: 0 / 1.17 GB, free: 68.43 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.896e-05/2.265, allocations: 7.906 kB / 1.17 GB, free: 68.42 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.284e-05/2.265, allocations: 11.94 kB / 1.17 GB, free: 68.41 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.037e-05/2.265, allocations: 101 kB / 1.17 GB, free: 68.3 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.52e-05/2.265, allocations: 7.906 kB / 1.17 GB, free: 68.3 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009922/2.266, allocations: 325.8 kB / 1.17 GB, free: 67.97 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/2.266, allocations: 48 / 1.17 GB, free: 67.97 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/2.266, allocations: 3.984 kB / 1.17 GB, free: 67.96 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.641e-06/2.266, allocations: 12 kB / 1.17 GB, free: 67.95 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001161/2.266, allocations: 166 kB / 1.17 GB, free: 67.75 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/2.266, allocations: 0 / 1.17 GB, free: 67.75 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.638e-05/2.266, allocations: 11.98 kB / 1.17 GB, free: 67.74 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.02e-06/2.266, allocations: 4 kB / 1.17 GB, free: 67.74 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.426e-05/2.266, allocations: 0 / 1.17 GB, free: 67.74 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.827e-06/2.266, allocations: 3.938 kB / 1.17 GB, free: 67.73 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/2.266, allocations: 4 kB / 1.17 GB, free: 67.73 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001026/2.267, allocations: 359.2 kB / 1.171 GB, free: 67.35 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.747e-05/2.267, allocations: 101 kB / 1.171 GB, free: 67.23 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.812e-05/2.267, allocations: 4 kB / 1.171 GB, free: 67.23 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.116e-05/2.268, allocations: 0 / 1.171 GB, free: 67.23 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.472e-05/2.268, allocations: 11.98 kB / 1.171 GB, free: 67.22 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.186e-05/2.268, allocations: 4 kB / 1.171 GB, free: 67.21 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.165e-05/2.268, allocations: 104.6 kB / 1.171 GB, free: 67.11 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0008968/2.269, allocations: 215.8 kB / 1.171 GB, free: 66.9 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.001964/2.271, allocations: 0.9232 MB / 1.172 GB, free: 65.98 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0001338/2.271, allocations: 63.91 kB / 1.172 GB, free: 65.92 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.225e-06/2.271, allocations: 0 / 1.172 GB, free: 65.92 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 3.502e-05/2.271, allocations: 23.98 kB / 1.172 GB, free: 65.9 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002491/2.271, allocations: 24.78 kB / 1.172 GB, free: 65.88 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004376/2.271, allocations: 221.5 kB / 1.172 GB, free: 65.64 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001868/2.272, allocations: 0.7071 MB / 1.173 GB, free: 64.91 MB / 442.7 MB Notification: Performance of SimCode: time 7.11e-07/2.272, allocations: 7.938 kB / 1.173 GB, free: 64.9 MB / 442.7 MB Notification: Performance of Templates: time 0.01196/2.284, allocations: 7.618 MB / 1.181 GB, free: 57.31 MB / 442.7 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","../files/Modelica_trunk_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches