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") [: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.001146/0.001146, allocations: 187.6 kB / 8.136 MB, free: 2.211 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.337/1.337, allocations: 221.4 MB / 229.9 MB, free: 3.008 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.000954/0.000954, allocations: 99.34 kB / 280.8 MB, free: 1.238 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.693e-06/6.723e-06, allocations: 0 / 336.5 MB, free: 9.484 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3232/0.3232, allocations: 50.39 MB / 386.9 MB, free: 37.88 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.222/1.546, allocations: 497.6 MB / 0.8638 GB, free: 135.9 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002882/1.546, allocations: 77.02 kB / 0.8638 GB, free: 135.8 MB / 442.7 MB Notification: Performance of FrontEnd: time 0.06353/1.61, allocations: 30.57 MB / 0.8937 GB, free: 105.2 MB / 442.7 MB Notification: Performance of Transformations before backend: time 8.115e-06/1.61, allocations: 0 / 0.8937 GB, free: 105.2 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.0004598/1.61, allocations: 414.1 kB / 0.8941 GB, free: 104.7 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.45e-05/1.61, allocations: 12.03 kB / 0.8941 GB, free: 104.7 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009154/1.611, allocations: 115.7 kB / 0.8942 GB, free: 104.6 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001752/1.611, allocations: 198.8 kB / 0.8944 GB, free: 104.4 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.784e-05/1.611, allocations: 0 / 0.8944 GB, free: 104.4 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.464e-05/1.611, allocations: 0 / 0.8944 GB, free: 104.4 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.127e-05/1.612, allocations: 27.98 kB / 0.8944 GB, free: 104.4 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000101/1.612, allocations: 67.38 kB / 0.8945 GB, free: 104.3 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.796e-06/1.612, allocations: 0 / 0.8945 GB, free: 104.3 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.464e-05/1.612, allocations: 0 / 0.8945 GB, free: 104.3 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.786e-06/1.612, allocations: 8 kB / 0.8945 GB, free: 104.3 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001766/1.612, allocations: 162.9 kB / 0.8947 GB, free: 104.1 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003078/1.612, allocations: 97.19 kB / 0.8948 GB, free: 104 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.326e-05/1.612, allocations: 25.78 kB / 0.8948 GB, free: 103.9 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006844/1.613, allocations: 1.639 MB / 0.8964 GB, free: 101.9 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.747e-05/1.613, allocations: 42.5 kB / 0.8964 GB, free: 101.9 MB / 442.7 MB Notification: Performance of pre-optimization done (n=6): time 1.432e-06/1.613, allocations: 0 / 0.8964 GB, free: 101.9 MB / 442.7 MB Notification: Performance of matching and sorting (n=6): time 0.0005774/1.614, allocations: 125.5 kB / 0.8965 GB, free: 101.7 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.374e-05/1.614, allocations: 77.11 kB / 0.8966 GB, free: 101.6 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001062/1.614, allocations: 121.8 kB / 0.8967 GB, free: 101.5 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 1.159e-05/1.614, allocations: 25.7 kB / 0.8968 GB, free: 101.5 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.774e-05/1.614, allocations: 88.12 kB / 0.8968 GB, free: 101.4 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.307e-05/1.614, allocations: 23.66 kB / 0.8969 GB, free: 101.4 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.063e-06/1.614, allocations: 0 / 0.8969 GB, free: 101.4 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 6.383e-05/1.614, allocations: 318.8 kB / 0.8972 GB, free: 101.1 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.246e-05/1.614, allocations: 19.94 kB / 0.8972 GB, free: 101 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.826e-05/1.614, allocations: 32.38 kB / 0.8972 GB, free: 101 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003837/1.614, allocations: 83.89 kB / 0.8973 GB, free: 100.9 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/1.614, allocations: 0 / 0.8973 GB, free: 100.9 MB / 442.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0004592/1.615, allocations: 141.4 kB / 0.8974 GB, free: 100.8 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.358e-05/1.615, allocations: 7.984 kB / 0.8974 GB, free: 100.8 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/1.615, allocations: 4 kB / 0.8974 GB, free: 100.8 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.627e-05/1.615, allocations: 0 / 0.8974 GB, free: 100.8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001306/1.615, allocations: 19.98 kB / 0.8975 GB, free: 100.7 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.863e-06/1.615, allocations: 4 kB / 0.8975 GB, free: 100.7 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001595/1.615, allocations: 11.78 kB / 0.8975 GB, free: 100.7 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.774e-05/1.615, allocations: 12.05 kB / 0.8975 GB, free: 100.7 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 5.56e-05/1.615, allocations: 105 kB / 0.8976 GB, free: 100.6 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.286e-05/1.615, allocations: 3.906 kB / 0.8976 GB, free: 100.6 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005745/1.616, allocations: 177.6 kB / 0.8978 GB, free: 100.4 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/1.616, allocations: 4.031 kB / 0.8978 GB, free: 100.4 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/1.616, allocations: 4 kB / 0.8978 GB, free: 100.4 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/1.616, allocations: 3.938 kB / 0.8978 GB, free: 100.4 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001033/1.616, allocations: 164.2 kB / 0.8979 GB, free: 100.2 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/1.616, allocations: 0 / 0.8979 GB, free: 100.2 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000131/1.616, allocations: 15.98 kB / 0.8979 GB, free: 100.2 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/1.616, allocations: 0 / 0.8979 GB, free: 100.2 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.335e-05/1.616, allocations: 4 kB / 0.8979 GB, free: 100.2 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/1.616, allocations: 0 / 0.8979 GB, free: 100.2 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/1.616, allocations: 4 kB / 0.898 GB, free: 100.2 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005257/1.617, allocations: 199.4 kB / 0.8981 GB, free: 99.95 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.629e-05/1.617, allocations: 97.08 kB / 0.8982 GB, free: 99.84 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.941e-05/1.617, allocations: 7.969 kB / 0.8982 GB, free: 99.83 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00016/1.617, allocations: 4 kB / 0.8982 GB, free: 99.83 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.572e-05/1.617, allocations: 7.984 kB / 0.8983 GB, free: 99.82 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.046e-05/1.617, allocations: 8 kB / 0.8983 GB, free: 99.81 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.867e-05/1.617, allocations: 107.3 kB / 0.8984 GB, free: 99.71 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0005707/1.618, allocations: 155.8 kB / 0.8985 GB, free: 99.55 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.001182/1.619, allocations: 0.7992 MB / 0.8993 GB, free: 98.77 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0001224/1.619, allocations: 47.92 kB / 0.8993 GB, free: 98.72 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/1.619, allocations: 0 / 0.8993 GB, free: 98.72 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 4.277e-05/1.619, allocations: 31.92 kB / 0.8994 GB, free: 98.69 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001677/1.619, allocations: 5.25 kB / 0.8994 GB, free: 98.68 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004851/1.62, allocations: 218.4 kB / 0.8996 GB, free: 98.44 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002442/1.62, allocations: 0.7344 MB / 0.9003 GB, free: 97.68 MB / 442.7 MB Notification: Performance of SimCode: time 4.91e-07/1.62, allocations: 3.938 kB / 0.9003 GB, free: 97.68 MB / 442.7 MB Notification: Performance of Templates: time 0.009564/1.63, allocations: 6.662 MB / 0.9068 GB, free: 91.03 MB / 442.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)