Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Blocks.Examples.BusUsage.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.BusUsage,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Blocks.Examples.BusUsage") translateModel(Modelica.Blocks.Examples.BusUsage,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Blocks.Examples.BusUsage") [: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.001105/0.001105, allocations: 196.1 kB / 8.138 MB, free: 2.195 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.152/1.152, allocations: 194.2 MB / 202.8 MB, free: 8.664 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.001833/0.001833, allocations: 122.5 kB / 247.7 MB, free: 6.422 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 7.995e-06/8.155e-06, allocations: 0 / 297.6 MB, free: 8.062 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.1002, allocations: 44.49 MB / 342 MB, free: 11.46 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2734/0.3737, allocations: 70.95 MB / 413 MB, free: 24.17 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001604/0.3739, allocations: 65.28 kB / 413.1 MB, free: 24.14 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.003489/0.3774, allocations: 1.129 MB / 414.2 MB, free: 23.22 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.444e-06/0.3774, allocations: 0 / 414.2 MB, free: 23.22 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0003071/0.3777, allocations: 369.9 kB / 414.6 MB, free: 22.83 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.3778, allocations: 8.031 kB / 414.6 MB, free: 22.82 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.542e-05/0.3778, allocations: 7.906 kB / 414.6 MB, free: 22.81 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.309e-05/0.3779, allocations: 174.9 kB / 414.7 MB, free: 22.6 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.265e-05/0.378, allocations: 7.938 kB / 414.7 MB, free: 22.59 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.566e-05/0.378, allocations: 4.844 kB / 414.7 MB, free: 22.59 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.207e-05/0.3781, allocations: 29.98 kB / 414.8 MB, free: 22.57 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001195/0.3782, allocations: 91.86 kB / 414.9 MB, free: 22.47 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.1e-05/0.3782, allocations: 3.938 kB / 414.9 MB, free: 22.46 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.29e-05/0.3782, allocations: 0 / 414.9 MB, free: 22.46 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.001e-06/0.3783, allocations: 1.688 kB / 414.9 MB, free: 22.46 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004495/0.3787, allocations: 0.6123 MB / 415.5 MB, free: 21.82 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.326e-05/0.3788, allocations: 99.58 kB / 415.6 MB, free: 21.69 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.743e-05/0.3789, allocations: 41.67 kB / 415.6 MB, free: 21.64 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.899e-05/0.3789, allocations: 6.531 kB / 415.6 MB, free: 21.64 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.673e-05/0.3789, allocations: 42.44 kB / 415.7 MB, free: 21.59 MB / 314.7 MB Notification: Performance of pre-optimization done (n=6): time 1.313e-06/0.3789, allocations: 0 / 415.7 MB, free: 21.59 MB / 314.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002549/0.3792, allocations: 67.66 kB / 415.7 MB, free: 21.52 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.202e-05/0.3792, allocations: 165.1 kB / 415.9 MB, free: 21.32 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.717e-05/0.3793, allocations: 106.4 kB / 416 MB, free: 21.22 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.132e-05/0.3793, allocations: 25.7 kB / 416 MB, free: 21.19 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.615e-05/0.3793, allocations: 95.09 kB / 416.1 MB, free: 21.09 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.877e-05/0.3794, allocations: 11.44 kB / 416.1 MB, free: 21.09 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.479e-06/0.3794, allocations: 0 / 416.1 MB, free: 21.09 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.776e-05/0.3794, allocations: 322.7 kB / 416.4 MB, free: 20.76 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.25e-05/0.3795, allocations: 7.812 kB / 416.5 MB, free: 20.76 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.067e-05/0.3795, allocations: 43.23 kB / 416.5 MB, free: 20.71 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.697e-05/0.3795, allocations: 7.875 kB / 416.5 MB, free: 20.7 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.3795, allocations: 4 kB / 416.5 MB, free: 20.7 MB / 314.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 9.987e-05/0.3796, allocations: 71.69 kB / 416.6 MB, free: 20.63 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.948e-06/0.3797, allocations: 8 kB / 416.6 MB, free: 20.62 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.3797, allocations: 2 kB / 416.6 MB, free: 20.62 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.133e-05/0.3797, allocations: 4 kB / 416.6 MB, free: 20.62 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001064/0.3798, allocations: 11.98 kB / 416.6 MB, free: 20.61 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.98e-06/0.3798, allocations: 4 kB / 416.6 MB, free: 20.6 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.096e-05/0.3799, allocations: 20.05 kB / 416.6 MB, free: 20.58 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.675e-06/0.3799, allocations: 0 / 416.6 MB, free: 20.58 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (part.booleanExpression.y,booleanStep.y,integerStep.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 5.404e-05/0.38, allocations: 109.8 kB / 416.7 MB, free: 20.47 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001041/0.3801, allocations: 7.906 kB / 416.7 MB, free: 20.46 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.935e-05/0.3801, allocations: 16.98 kB / 416.8 MB, free: 20.45 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.3801, allocations: 0 / 416.8 MB, free: 20.45 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.3801, allocations: 5.125 kB / 416.8 MB, free: 20.45 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.3802, allocations: 7.938 kB / 416.8 MB, free: 20.44 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002912/0.3805, allocations: 157.1 kB / 416.9 MB, free: 20.26 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.3805, allocations: 4 kB / 416.9 MB, free: 20.25 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.546e-05/0.3805, allocations: 15.98 kB / 416.9 MB, free: 20.24 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.484e-06/0.3806, allocations: 0 / 416.9 MB, free: 20.24 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.678e-06/0.3806, allocations: 7.438 kB / 417 MB, free: 20.23 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.3806, allocations: 1.375 kB / 417 MB, free: 20.23 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.3806, allocations: 7.984 kB / 417 MB, free: 20.23 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001755/0.3808, allocations: 0.4993 MB / 417.5 MB, free: 19.7 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.246e-05/0.3808, allocations: 86.75 kB / 417.5 MB, free: 19.6 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.125e-05/0.3808, allocations: 4 kB / 417.5 MB, free: 19.59 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002553/0.3811, allocations: 11.98 kB / 417.6 MB, free: 19.58 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.796e-05/0.3811, allocations: 14.14 kB / 417.6 MB, free: 19.57 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.502e-06/0.3812, allocations: 7.062 kB / 417.6 MB, free: 19.57 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.936e-05/0.3812, allocations: 90.16 kB / 417.7 MB, free: 19.48 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000379/0.3816, allocations: 8 kB / 417.7 MB, free: 19.48 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (part.booleanExpression.y,booleanStep.y,integerStep.y) * 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 9.598e-05/0.3817, allocations: 95.8 kB / 417.8 MB, free: 19.37 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 9.928e-05/0.3818, allocations: 30.94 kB / 417.8 MB, free: 19.35 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.3818, allocations: 0 / 417.8 MB, free: 19.35 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 4.429e-05/0.3818, allocations: 30.48 kB / 417.8 MB, free: 19.32 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002862/0.3821, allocations: 1.094 kB / 417.8 MB, free: 19.32 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003118/0.3825, allocations: 124 kB / 418 MB, free: 19.18 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001649/0.3826, allocations: 0.6997 MB / 418.7 MB, free: 18.45 MB / 314.7 MB Notification: Performance of SimCode: time 2.7e-07/0.3826, allocations: 0 / 418.7 MB, free: 18.45 MB / 314.7 MB Notification: Performance of Templates: time 0.002191/0.3848, allocations: 0.5654 MB / 419.2 MB, free: 17.92 MB / 314.7 MB make -j1 -f Modelica_3.2.2_Modelica.Blocks.Examples.BusUsage.makefile (rm -f Modelica_3.2.2_Modelica.Blocks.Examples.BusUsage.pipe ; mkfifo Modelica_3.2.2_Modelica.Blocks.Examples.BusUsage.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Blocks.Examples.BusUsage.pipe >> ../files/Modelica_3.2.2_Modelica.Blocks.Examples.BusUsage.sim & ./Modelica_3.2.2_Modelica.Blocks.Examples.BusUsage -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Blocks.Examples.BusUsage.pipe 2>&1)