Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Blocks.Examples.InverseModel.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.Blocks.Examples.InverseModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Blocks.Examples.InverseModel") translateModel(Modelica.Blocks.Examples.InverseModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Blocks.Examples.InverseModel") [: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.001112/0.001112, allocations: 196.1 kB / 8.138 MB, free: 2.191 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.124/1.124, allocations: 194.2 MB / 202.8 MB, free: 8.738 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.001801/0.001801, allocations: 123.4 kB / 247.7 MB, free: 6.426 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.051e-05/1.055e-05, allocations: 3.938 kB / 297.6 MB, free: 8.031 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08089/0.08092, allocations: 44.48 MB / 342 MB, free: 11.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2177/0.2987, allocations: 71.05 MB / 413.1 MB, free: 24.11 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001841/0.2989, allocations: 65.62 kB / 413.2 MB, free: 24.08 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.006039/0.305, allocations: 1.837 MB / 415 MB, free: 22.61 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.458e-05/0.305, allocations: 8 kB / 415 MB, free: 22.61 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0003732/0.3054, allocations: 394.4 kB / 415.4 MB, free: 22.19 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.847e-05/0.3055, allocations: 8.031 kB / 415.4 MB, free: 22.18 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.109e-05/0.3055, allocations: 15.81 kB / 415.4 MB, free: 22.16 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002119/0.3057, allocations: 203.1 kB / 415.6 MB, free: 21.93 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.059e-05/0.3057, allocations: 0 / 415.6 MB, free: 21.93 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.522e-05/0.3058, allocations: 7.906 kB / 415.6 MB, free: 21.92 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.062e-05/0.3059, allocations: 30.12 kB / 415.6 MB, free: 21.9 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001054/0.306, allocations: 64.73 kB / 415.7 MB, free: 21.84 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.105e-06/0.306, allocations: 0 / 415.7 MB, free: 21.84 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.199e-05/0.306, allocations: 0 / 415.7 MB, free: 21.84 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.599e-06/0.306, allocations: 4 kB / 415.7 MB, free: 21.84 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004643/0.3065, allocations: 383.5 kB / 416.1 MB, free: 21.45 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.653e-05/0.3066, allocations: 58.42 kB / 416.1 MB, free: 21.39 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.786e-05/0.3066, allocations: 22.77 kB / 416.2 MB, free: 21.37 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.706e-05/0.3067, allocations: 6.688 kB / 416.2 MB, free: 21.37 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.34e-05/0.3067, allocations: 32.72 kB / 416.2 MB, free: 21.33 MB / 314.7 MB Notification: Performance of pre-optimization done (n=5): time 1.252e-06/0.3067, allocations: 0 / 416.2 MB, free: 21.33 MB / 314.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001677/0.3069, allocations: 62.28 kB / 416.3 MB, free: 21.27 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.647e-05/0.3069, allocations: 61.72 kB / 416.3 MB, free: 21.2 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.023e-05/0.307, allocations: 122.4 kB / 416.4 MB, free: 21.09 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.054e-05/0.307, allocations: 25.7 kB / 416.5 MB, free: 21.05 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.359e-05/0.307, allocations: 95.16 kB / 416.6 MB, free: 20.96 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.097e-05/0.307, allocations: 27.28 kB / 416.6 MB, free: 20.94 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.298e-06/0.3071, allocations: 0 / 416.6 MB, free: 20.94 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.005e-05/0.3071, allocations: 316.8 kB / 416.9 MB, free: 20.62 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.879e-05/0.3071, allocations: 18.94 kB / 416.9 MB, free: 20.61 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.488e-05/0.3072, allocations: 15.55 kB / 416.9 MB, free: 20.6 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.29e-05/0.3072, allocations: 22.11 kB / 417 MB, free: 20.59 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/0.3072, allocations: 0 / 417 MB, free: 20.59 MB / 314.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001016/0.3073, allocations: 72.66 kB / 417 MB, free: 20.52 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.869e-06/0.3073, allocations: 4 kB / 417 MB, free: 20.52 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.576e-06/0.3073, allocations: 0 / 417 MB, free: 20.52 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.678e-06/0.3074, allocations: 4 kB / 417 MB, free: 20.51 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002391/0.3076, allocations: 35.97 kB / 417.1 MB, free: 20.48 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.649e-06/0.3076, allocations: 4.453 kB / 417.1 MB, free: 20.47 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.756e-05/0.3077, allocations: 8 kB / 417.1 MB, free: 20.46 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.736e-06/0.3077, allocations: 3.125 kB / 417.1 MB, free: 20.46 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 (7): * Single equations (assignments): 7 * 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.064e-05/0.3077, allocations: 112.7 kB / 417.2 MB, free: 20.35 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.409e-05/0.3078, allocations: 13.89 kB / 417.2 MB, free: 20.34 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.19e-05/0.3078, allocations: 12.12 kB / 417.2 MB, free: 20.33 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.514e-06/0.3078, allocations: 4 kB / 417.2 MB, free: 20.33 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.576e-06/0.3078, allocations: 3.938 kB / 417.2 MB, free: 20.32 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.3078, allocations: 0 / 417.2 MB, free: 20.32 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000125/0.308, allocations: 172.2 kB / 417.4 MB, free: 20.13 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.308, allocations: 4 kB / 417.4 MB, free: 20.13 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001598/0.3082, allocations: 19.98 kB / 417.4 MB, free: 20.11 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.3082, allocations: 4.609 kB / 417.4 MB, free: 20.11 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.055e-05/0.3082, allocations: 0 / 417.4 MB, free: 20.11 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.3082, allocations: 3.906 kB / 417.4 MB, free: 20.1 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.3082, allocations: 0 / 417.4 MB, free: 20.1 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001568/0.3084, allocations: 191 kB / 417.6 MB, free: 19.92 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.415e-05/0.3084, allocations: 83.27 kB / 417.7 MB, free: 19.82 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.402e-05/0.3084, allocations: 3.906 kB / 417.7 MB, free: 19.82 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.578e-05/0.3085, allocations: 7.938 kB / 417.7 MB, free: 19.81 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.152e-05/0.3086, allocations: 7.984 kB / 417.7 MB, free: 19.8 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.371e-06/0.3086, allocations: 0 / 417.7 MB, free: 19.8 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.491e-05/0.3086, allocations: 107.8 kB / 417.8 MB, free: 19.71 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002442/0.3089, allocations: 12 kB / 417.8 MB, free: 19.7 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (firstOrder1.y,firstOrder2.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 5 * 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 9.893e-05/0.309, allocations: 96.67 kB / 417.9 MB, free: 19.6 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 9.591e-05/0.3091, allocations: 34.44 kB / 418 MB, free: 19.57 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.3091, allocations: 0 / 418 MB, free: 19.57 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 3.231e-05/0.3091, allocations: 23.86 kB / 418 MB, free: 19.55 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002368/0.3094, allocations: 25.56 kB / 418 MB, free: 19.54 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004727/0.3099, allocations: 166.8 kB / 418.2 MB, free: 19.37 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001467/0.31, allocations: 0.7225 MB / 418.9 MB, free: 18.62 MB / 314.7 MB Notification: Performance of SimCode: time 2.8e-07/0.31, allocations: 0 / 418.9 MB, free: 18.62 MB / 314.7 MB Notification: Performance of Templates: time 0.002579/0.3126, allocations: 0.8094 MB / 419.7 MB, free: 17.86 MB / 314.7 MB make -j1 -f Modelica_3.2.2_Modelica.Blocks.Examples.InverseModel.makefile (rm -f Modelica_3.2.2_Modelica.Blocks.Examples.InverseModel.pipe ; mkfifo Modelica_3.2.2_Modelica.Blocks.Examples.InverseModel.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Blocks.Examples.InverseModel.pipe >> ../files/Modelica_3.2.2_Modelica.Blocks.Examples.InverseModel.sim & ./Modelica_3.2.2_Modelica.Blocks.Examples.InverseModel -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Blocks.Examples.InverseModel.pipe 2>&1)