Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine") translateModel(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine") [: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 3.2.2+maint.om/package.mo): time 0.001074/0.001074, allocations: 193.2 kB / 8.136 MB, free: 2.086 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.091/1.091, allocations: 194.2 MB / 202.8 MB, free: 8.742 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001869/0.001869, allocations: 120.5 kB / 247.7 MB, free: 6.25 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.901e-06/6.021e-06, allocations: 0 / 297.6 MB, free: 8.008 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07013/0.07015, allocations: 44.49 MB / 342 MB, free: 11.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1886/0.2588, allocations: 71.44 MB / 413.5 MB, free: 23.61 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001977/0.2591, allocations: 70.81 kB / 413.6 MB, free: 23.57 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.01467/0.2738, allocations: 4.851 MB / 418.4 MB, free: 19.59 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.304e-06/0.2738, allocations: 4 kB / 418.4 MB, free: 19.59 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0001986/0.274, allocations: 352.7 kB / 418.8 MB, free: 19.2 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.41e-05/0.2741, allocations: 12.03 kB / 418.8 MB, free: 19.19 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.976e-05/0.2741, allocations: 3.906 kB / 418.8 MB, free: 19.19 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.156e-05/0.2742, allocations: 174.4 kB / 418.9 MB, free: 18.98 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.018e-05/0.2742, allocations: 0 / 418.9 MB, free: 18.98 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.653e-06/0.2742, allocations: 0 / 418.9 MB, free: 18.98 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.193e-05/0.2743, allocations: 7.938 kB / 419 MB, free: 18.97 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.195e-05/0.2743, allocations: 35.44 kB / 419 MB, free: 18.93 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.182e-06/0.2743, allocations: 4.656 kB / 419 MB, free: 18.93 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.025e-05/0.2744, allocations: 4 kB / 419 MB, free: 18.93 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.626e-06/0.2744, allocations: 3.938 kB / 419 MB, free: 18.92 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002222/0.2746, allocations: 371.5 kB / 419.4 MB, free: 18.53 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.488e-05/0.2746, allocations: 169.2 kB / 419.5 MB, free: 18.35 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.516e-05/0.2747, allocations: 84.08 kB / 419.6 MB, free: 18.27 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.799e-06/0.2747, allocations: 82.84 kB / 419.7 MB, free: 18.19 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.077e-05/0.2747, allocations: 109.8 kB / 419.8 MB, free: 18.07 MB / 314.7 MB Notification: Performance of pre-optimization done (n=0): time 1.082e-06/0.2747, allocations: 1.969 kB / 419.8 MB, free: 18.07 MB / 314.7 MB Notification: Performance of matching and sorting (n=0): time 6.3e-05/0.2748, allocations: 29.7 kB / 419.8 MB, free: 18.04 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.067e-05/0.2748, allocations: 77.11 kB / 419.9 MB, free: 17.94 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.763e-05/0.2749, allocations: 107.8 kB / 420 MB, free: 17.84 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.744e-06/0.2749, allocations: 25.7 kB / 420 MB, free: 17.8 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.514e-05/0.2749, allocations: 91.98 kB / 420.1 MB, free: 17.71 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.583e-06/0.2749, allocations: 0 / 420.1 MB, free: 17.71 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.575e-06/0.2749, allocations: 0 / 420.1 MB, free: 17.71 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 3.544e-05/0.275, allocations: 318.3 kB / 420.4 MB, free: 17.39 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.676e-06/0.275, allocations: 0 / 420.4 MB, free: 17.39 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.37e-05/0.275, allocations: 11.92 kB / 420.4 MB, free: 17.38 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.418e-05/0.2751, allocations: 15.48 kB / 420.5 MB, free: 17.37 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.2751, allocations: 0 / 420.5 MB, free: 17.37 MB / 314.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.000129/0.2752, allocations: 45.78 kB / 420.5 MB, free: 17.32 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.137e-05/0.2753, allocations: 4.781 kB / 420.5 MB, free: 17.32 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.548e-06/0.2753, allocations: 0 / 420.5 MB, free: 17.32 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.011e-05/0.2753, allocations: 3.906 kB / 420.5 MB, free: 17.31 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.993e-05/0.2753, allocations: 4 kB / 420.5 MB, free: 17.31 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.556e-06/0.2753, allocations: 0 / 420.5 MB, free: 17.31 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.656e-05/0.2754, allocations: 0 / 420.5 MB, free: 17.31 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.254e-05/0.2754, allocations: 0 / 420.5 MB, free: 17.31 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * 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 4.899e-05/0.2755, allocations: 186.7 kB / 420.7 MB, free: 17.12 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.016e-05/0.2755, allocations: 117.3 kB / 420.8 MB, free: 17 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.458e-05/0.2755, allocations: 111.8 kB / 420.9 MB, free: 16.89 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.931e-05/0.2756, allocations: 176.3 kB / 421.1 MB, free: 16.71 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.108e-05/0.2756, allocations: 185.6 kB / 421.3 MB, free: 16.52 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.994e-05/0.2756, allocations: 176.3 kB / 421.5 MB, free: 16.34 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001196/0.2757, allocations: 393.1 kB / 421.8 MB, free: 15.92 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.249e-05/0.2758, allocations: 104.9 kB / 421.9 MB, free: 15.81 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.155e-05/0.2758, allocations: 105 kB / 422 MB, free: 15.7 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.057e-05/0.2758, allocations: 180.2 kB / 422.2 MB, free: 15.52 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.35e-05/0.2758, allocations: 184.1 kB / 422.4 MB, free: 15.33 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.885e-05/0.2759, allocations: 176.3 kB / 422.6 MB, free: 15.15 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.122e-05/0.2759, allocations: 191.1 kB / 422.8 MB, free: 14.96 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 6.216e-05/0.276, allocations: 301.8 kB / 423 MB, free: 14.64 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.096e-05/0.276, allocations: 189.5 kB / 423.2 MB, free: 14.43 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.339e-05/0.276, allocations: 181.1 kB / 423.4 MB, free: 14.25 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.798e-05/0.2761, allocations: 109 kB / 423.5 MB, free: 14.14 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.026e-05/0.2761, allocations: 176.3 kB / 423.7 MB, free: 13.96 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.118e-05/0.2762, allocations: 104.9 kB / 423.8 MB, free: 13.85 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.198e-05/0.2762, allocations: 94.09 kB / 423.9 MB, free: 13.76 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003016/0.2765, allocations: 51.94 kB / 423.9 MB, free: 13.71 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * 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.0003957/0.2769, allocations: 274.9 kB / 424.2 MB, free: 13.46 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 5.837e-05/0.277, allocations: 4 kB / 424.2 MB, free: 13.45 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.277, allocations: 0 / 424.2 MB, free: 13.45 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 1.263e-06/0.277, allocations: 0 / 424.2 MB, free: 13.45 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001688/0.2772, allocations: 0.5301 MB / 424.7 MB, free: 12.92 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001331/0.2773, allocations: 128.6 kB / 424.9 MB, free: 12.77 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001014/0.2774, allocations: 0.688 MB / 425.6 MB, free: 12.06 MB / 314.7 MB Notification: Performance of SimCode: time 7.31e-07/0.2775, allocations: 0 / 425.6 MB, free: 12.06 MB / 314.7 MB Notification: Performance of Templates: time 0.002906/0.2804, allocations: 1.046 MB / 426.6 MB, free: 11.05 MB / 314.7 MB make -j1 -f Modelica_3.2.2_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.makefile (rm -f Modelica_3.2.2_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.pipe ; mkfifo Modelica_3.2.2_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.pipe >> ../files/Modelica_3.2.2_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.sim & ./Modelica_3.2.2_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.pipe 2>&1)