Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=8000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=8000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") [: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.003348/0.003348, allocations: 183.1 kB / 7.452 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.484/1.484, allocations: 170.6 MB / 178.4 MB, free: 15.41 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.0018/0.0018, allocations: 104.6 kB / 217.7 MB, free: 8.168 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.005e-05/1.06e-05, allocations: 0 / 261.7 MB, free: 26.66 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08321/0.08324, allocations: 38.76 MB / 300.5 MB, free: 3.898 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2761/0.3594, allocations: 88.07 MB / 388.6 MB, free: 12.8 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003869/0.3599, allocations: 84.95 kB / 388.7 MB, free: 12.76 MB / 282.7 MB Notification: Performance of FrontEnd: time 0.07905/0.439, allocations: 28.21 MB / 416.9 MB, free: 5.711 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.549e-05/0.4391, allocations: 27.69 kB / 416.9 MB, free: 5.688 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.002375/0.4415, allocations: 1.161 MB / 418 MB, free: 4.547 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.549e-05/0.4416, allocations: 8.031 kB / 418.1 MB, free: 4.539 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009375/0.4425, allocations: 198.3 kB / 418.3 MB, free: 4.344 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002022/0.4445, allocations: 0.8066 MB / 419.1 MB, free: 3.668 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.067e-05/0.4446, allocations: 32 kB / 419.1 MB, free: 3.637 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002841/0.4449, allocations: 63.34 kB / 419.2 MB, free: 3.578 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001453/0.4464, allocations: 0.5349 MB / 419.7 MB, free: 3.262 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001686/0.4481, allocations: 0.7659 MB / 420.5 MB, free: 2.691 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.536e-05/0.4481, allocations: 0.625 kB / 420.5 MB, free: 2.691 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.663e-05/0.4482, allocations: 4 kB / 420.5 MB, free: 2.688 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.996e-05/0.4483, allocations: 24 kB / 420.5 MB, free: 2.664 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006659/0.4549, allocations: 3.783 MB / 424.3 MB, free: 14.79 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003403/0.4553, allocations: 185.9 kB / 424.4 MB, free: 14.6 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005465/0.4559, allocations: 256.8 kB / 424.7 MB, free: 14.35 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.246e-05/0.4559, allocations: 4 kB / 424.7 MB, free: 14.34 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.413e-05/0.456, allocations: 38.56 kB / 424.7 MB, free: 14.3 MB / 314.7 MB Notification: Performance of pre-optimization done (n=43): time 3.657e-06/0.456, allocations: 0 / 424.7 MB, free: 14.3 MB / 314.7 MB Notification: Performance of matching and sorting (n=48): time 0.002947/0.4589, allocations: 1.132 MB / 425.9 MB, free: 13.1 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.169e-05/0.459, allocations: 89.48 kB / 426 MB, free: 13 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001082/0.4601, allocations: 0.59 MB / 426.5 MB, free: 12.4 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.568e-05/0.4602, allocations: 33.69 kB / 426.6 MB, free: 12.36 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000318/0.4605, allocations: 469.7 kB / 427 MB, free: 11.89 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001603/0.4607, allocations: 165.6 kB / 427.2 MB, free: 11.73 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.442e-05/0.4607, allocations: 0 / 427.2 MB, free: 11.73 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002703/0.461, allocations: 394.7 kB / 427.6 MB, free: 11.33 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000279/0.4613, allocations: 141.6 kB / 427.7 MB, free: 11.2 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004577/0.4617, allocations: 428.4 kB / 428.1 MB, free: 10.64 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003884/0.4621, allocations: 216.6 kB / 428.4 MB, free: 10.43 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.951e-06/0.4621, allocations: 4 kB / 428.4 MB, free: 10.43 MB / 314.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001323/0.4635, allocations: 0.6796 MB / 429 MB, free: 9.734 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.624e-05/0.4635, allocations: 4 kB / 429 MB, free: 9.73 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.493e-05/0.4635, allocations: 8.344 kB / 429 MB, free: 9.723 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000329/0.4638, allocations: 101.7 kB / 429.1 MB, free: 9.617 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006067/0.4645, allocations: 167.7 kB / 429.3 MB, free: 9.453 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003031/0.4675, allocations: 2.898 MB / 432.2 MB, free: 6.32 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006882/0.4682, allocations: 31.95 kB / 432.2 MB, free: 6.289 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.109e-05/0.4683, allocations: 36 kB / 432.3 MB, free: 6.254 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (85): * Single equations (assignments): 83 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001887/0.4685, allocations: 128.7 kB / 432.4 MB, free: 6.121 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001805/0.4687, allocations: 82.97 kB / 432.5 MB, free: 6.039 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001005/0.4697, allocations: 465.1 kB / 432.9 MB, free: 5.566 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.673e-06/0.4697, allocations: 4 kB / 432.9 MB, free: 5.562 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.653e-06/0.4697, allocations: 4 kB / 432.9 MB, free: 5.559 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.694e-06/0.4697, allocations: 3.984 kB / 432.9 MB, free: 5.555 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002329/0.4721, allocations: 1.283 MB / 434.2 MB, free: 4.195 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.92e-06/0.4721, allocations: 0 / 434.2 MB, free: 4.195 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003756/0.4725, allocations: 80.12 kB / 434.3 MB, free: 4.117 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003046/0.4728, allocations: 93.59 kB / 434.4 MB, free: 4.02 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.477e-05/0.4728, allocations: 8 kB / 434.4 MB, free: 4.012 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002881/0.4757, allocations: 2.89 MB / 437.3 MB, free: 0.8945 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.071e-05/0.4758, allocations: 4.188 kB / 437.3 MB, free: 0.8906 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001578/0.4774, allocations: 0.8359 MB / 438.1 MB, free: 15.96 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004664/0.4778, allocations: 192 kB / 438.3 MB, free: 15.75 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002024/0.4781, allocations: 4 kB / 438.3 MB, free: 15.75 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005663/0.4786, allocations: 27.98 kB / 438.4 MB, free: 15.72 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.719e-05/0.4787, allocations: 31.89 kB / 438.4 MB, free: 15.69 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.676e-05/0.4788, allocations: 20 kB / 438.4 MB, free: 15.67 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0008878/0.4797, allocations: 455.2 kB / 438.9 MB, free: 15.23 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001211/0.4809, allocations: 195.9 kB / 439 MB, free: 15.04 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 37 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004894/0.4814, allocations: 270.1 kB / 439.3 MB, free: 14.77 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001262/0.4827, allocations: 0.6344 MB / 439.9 MB, free: 14.12 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.4827, allocations: 0 / 439.9 MB, free: 14.12 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006611/0.4834, allocations: 412.3 kB / 440.3 MB, free: 13.7 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001086/0.4845, allocations: 179.7 kB / 440.5 MB, free: 13.52 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003313/0.4878, allocations: 1.25 MB / 441.8 MB, free: 12.21 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009185/0.4887, allocations: 1.101 MB / 442.9 MB, free: 11.08 MB / 330.7 MB Notification: Performance of SimCode: time 5.51e-07/0.4887, allocations: 0 / 442.9 MB, free: 11.08 MB / 330.7 MB Notification: Performance of Templates: time 0.01966/0.5084, allocations: 9.462 MB / 452.3 MB, free: 1.609 MB / 330.7 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1)