Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Blocks.Examples.InverseModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.InverseModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Blocks.Examples.InverseModel") translateModel(Modelica.Blocks.Examples.InverseModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_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.1+maint.om/package.mo): time 0.003614/0.003614, allocations: 173.7 kB / 7.446 MB, free: 2.512 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.223/1.223, allocations: 170.6 MB / 178.4 MB, free: 15.46 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001996/0.001996, allocations: 107.9 kB / 217.7 MB, free: 8.238 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 9.929e-06/1.005e-05, allocations: 0 / 261.7 MB, free: 26.68 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09542/0.09545, allocations: 38.77 MB / 300.5 MB, free: 3.918 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3184/0.414, allocations: 65.76 MB / 366.3 MB, free: 2.969 MB / 250.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001726/0.4142, allocations: 67.59 kB / 366.3 MB, free: 2.938 MB / 250.7 MB Notification: Performance of FrontEnd: time 0.00542/0.4196, allocations: 1.854 MB / 368.2 MB, free: 1.422 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.152e-05/0.4196, allocations: 0 / 368.2 MB, free: 1.422 MB / 250.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.000376/0.42, allocations: 385.8 kB / 368.6 MB, free: 1.008 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.27e-05/0.4201, allocations: 12.88 kB / 368.6 MB, free: 0.9961 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.179e-05/0.4202, allocations: 11.81 kB / 368.6 MB, free: 0.9844 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002446/0.4204, allocations: 209.6 kB / 368.8 MB, free: 0.7461 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.155e-05/0.4204, allocations: 8 kB / 368.8 MB, free: 0.7383 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.783e-05/0.4205, allocations: 4 kB / 368.8 MB, free: 0.7344 MB / 250.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.8e-05/0.4206, allocations: 31.59 kB / 368.8 MB, free: 0.7148 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001042/0.4207, allocations: 62.86 kB / 368.9 MB, free: 0.6562 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.544e-06/0.4207, allocations: 0 / 368.9 MB, free: 0.6562 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.322e-05/0.4207, allocations: 0 / 368.9 MB, free: 0.6562 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.15e-06/0.4207, allocations: 7.938 kB / 368.9 MB, free: 0.6484 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004522/0.4212, allocations: 379.3 kB / 369.3 MB, free: 260 kB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.441e-05/0.4213, allocations: 58.45 kB / 369.3 MB, free: 208 kB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.321e-05/0.4213, allocations: 23.89 kB / 369.3 MB, free: 188 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.874e-05/0.4214, allocations: 7.938 kB / 369.4 MB, free: 180 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.497e-05/0.4214, allocations: 30.56 kB / 369.4 MB, free: 140 kB / 250.7 MB Notification: Performance of pre-optimization done (n=5): time 1.252e-06/0.4214, allocations: 4 kB / 369.4 MB, free: 136 kB / 250.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001719/0.4216, allocations: 70.61 kB / 369.5 MB, free: 72 kB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.982e-05/0.4216, allocations: 51.41 kB / 369.5 MB, free: 8 kB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001431/0.4218, allocations: 128.1 kB / 369.6 MB, free: 15.88 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.644e-05/0.4218, allocations: 25.7 kB / 369.7 MB, free: 15.84 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.397e-05/0.4218, allocations: 101 kB / 369.8 MB, free: 15.75 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.211e-05/0.4219, allocations: 21.73 kB / 369.8 MB, free: 15.73 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.589e-06/0.4219, allocations: 0 / 369.8 MB, free: 15.73 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001411/0.422, allocations: 321.9 kB / 370.1 MB, free: 15.41 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.048e-05/0.4221, allocations: 11.75 kB / 370.1 MB, free: 15.4 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.852e-05/0.4221, allocations: 19.86 kB / 370.1 MB, free: 15.39 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.174e-05/0.4221, allocations: 14.94 kB / 370.1 MB, free: 15.38 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.4222, allocations: 0 / 370.1 MB, free: 15.38 MB / 266.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001202/0.4223, allocations: 79.64 kB / 370.2 MB, free: 15.3 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.16e-05/0.4223, allocations: 4 kB / 370.2 MB, free: 15.3 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-06/0.4223, allocations: 4 kB / 370.2 MB, free: 15.3 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.222e-05/0.4223, allocations: 0 / 370.2 MB, free: 15.3 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002558/0.4226, allocations: 39.97 kB / 370.3 MB, free: 15.26 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.029e-06/0.4226, allocations: 240 / 370.3 MB, free: 15.26 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.124e-05/0.4227, allocations: 11.84 kB / 370.3 MB, free: 15.25 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.678e-06/0.4227, allocations: 3 kB / 370.3 MB, free: 15.25 MB / 266.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 7.789e-05/0.4228, allocations: 105 kB / 370.4 MB, free: 15.14 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.253e-05/0.4228, allocations: 15.91 kB / 370.4 MB, free: 15.12 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.625e-05/0.4229, allocations: 7.438 kB / 370.4 MB, free: 15.11 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/0.4229, allocations: 0 / 370.4 MB, free: 15.11 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.253e-06/0.4229, allocations: 7.906 kB / 370.4 MB, free: 15.1 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.4229, allocations: 0 / 370.4 MB, free: 15.1 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001729/0.4231, allocations: 168.5 kB / 370.6 MB, free: 14.91 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.4231, allocations: 0 / 370.6 MB, free: 14.91 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000162/0.4232, allocations: 23.92 kB / 370.6 MB, free: 14.89 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.4233, allocations: 0 / 370.6 MB, free: 14.89 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.114e-05/0.4233, allocations: 8 kB / 370.6 MB, free: 14.88 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.435e-06/0.4233, allocations: 3.984 kB / 370.6 MB, free: 14.88 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/0.4233, allocations: 3.906 kB / 370.6 MB, free: 14.87 MB / 266.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002031/0.4235, allocations: 188.4 kB / 370.8 MB, free: 14.69 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.402e-05/0.4236, allocations: 88.06 kB / 370.9 MB, free: 14.59 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.504e-05/0.4236, allocations: 11.84 kB / 370.9 MB, free: 14.58 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.018e-05/0.4237, allocations: 0 / 370.9 MB, free: 14.58 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.019e-05/0.4238, allocations: 8.062 kB / 370.9 MB, free: 14.57 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.352e-06/0.4238, allocations: 3.984 kB / 370.9 MB, free: 14.57 MB / 266.7 MB Notification: Performance of sort global known variables: time 6.214e-05/0.4238, allocations: 101.4 kB / 371 MB, free: 14.48 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002295/0.4241, allocations: 16 kB / 371 MB, free: 14.46 MB / 266.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 0.0001431/0.4242, allocations: 103.2 kB / 371.1 MB, free: 14.35 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001028/0.4243, allocations: 32.56 kB / 371.2 MB, free: 14.33 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.4243, allocations: 0 / 371.2 MB, free: 14.33 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.699e-05/0.4244, allocations: 15.38 kB / 371.2 MB, free: 14.32 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002512/0.4246, allocations: 34.17 kB / 371.2 MB, free: 14.29 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005332/0.4252, allocations: 177.3 kB / 371.4 MB, free: 14.1 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003729/0.4256, allocations: 0.7188 MB / 372.1 MB, free: 13.36 MB / 266.7 MB Notification: Performance of SimCode: time 2.81e-07/0.4256, allocations: 0 / 372.1 MB, free: 13.36 MB / 266.7 MB Notification: Performance of Templates: time 0.003188/0.4288, allocations: 0.8035 MB / 372.9 MB, free: 12.57 MB / 266.7 MB make -j1 -f Modelica_3.2.1_Modelica.Blocks.Examples.InverseModel.makefile (rm -f Modelica_3.2.1_Modelica.Blocks.Examples.InverseModel.pipe ; mkfifo Modelica_3.2.1_Modelica.Blocks.Examples.InverseModel.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Blocks.Examples.InverseModel.pipe >> ../files/Modelica_3.2.1_Modelica.Blocks.Examples.InverseModel.sim & ./Modelica_3.2.1_Modelica.Blocks.Examples.InverseModel -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Blocks.Examples.InverseModel.pipe 2>&1)