Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|imc.idq_rr.1.|imc.idq_rr.2.|loadInertia.phi|loadInertia.w|imc.idq_sr.1.|imc.idq_sr.2.|imc.is.1.|imc.is.2.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking") translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|imc.idq_rr.1.|imc.idq_rr.2.|loadInertia.phi|loadInertia.w|imc.idq_sr.1.|imc.idq_sr.2.|imc.is.1.|imc.is.2.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking") [: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 4.0.0+maint.om/package.mo): time 0.0009255/0.0009256, allocations: 184 kB / 8.138 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.134/1.134, allocations: 221.4 MB / 229.9 MB, free: 3 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009211/0.0009211, allocations: 103.5 kB / 280.8 MB, free: 1.27 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.24e-06/5.26e-06, allocations: 0 / 336.5 MB, free: 9.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1802/0.1802, allocations: 50.39 MB / 386.9 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09935/0.2796, allocations: 100.6 MB / 487.5 MB, free: 2.141 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002118/0.2798, allocations: 87.88 kB / 487.6 MB, free: 2.055 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.2078/0.4876, allocations: 34.45 MB / 0.5098 GB, free: 94.67 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.332e-05/0.4877, allocations: 50.31 kB / 0.5099 GB, free: 94.65 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.00222/0.4899, allocations: 1.631 MB / 0.5115 GB, free: 93.73 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.044e-05/0.49, allocations: 7.844 kB / 0.5115 GB, free: 93.73 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005302/0.4905, allocations: 218.6 kB / 0.5117 GB, free: 93.64 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00169/0.4922, allocations: 1.203 MB / 0.5129 GB, free: 92.94 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.459e-05/0.4923, allocations: 46.06 kB / 0.5129 GB, free: 92.94 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001733/0.4924, allocations: 93.19 kB / 0.513 GB, free: 92.93 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002315/0.4948, allocations: 1.422 MB / 0.5144 GB, free: 92.37 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002353/0.4971, allocations: 1.725 MB / 0.5161 GB, free: 91.57 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.535e-05/0.4972, allocations: 4.781 kB / 0.5161 GB, free: 91.57 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001194/0.4973, allocations: 1.906 kB / 0.5161 GB, free: 91.57 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.076e-05/0.4974, allocations: 73.83 kB / 0.5161 GB, free: 91.56 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007053/0.5044, allocations: 6.03 MB / 0.522 GB, free: 86.53 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008103/0.5053, allocations: 0.5576 MB / 0.5226 GB, free: 85.96 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007716/0.506, allocations: 0.5906 MB / 0.5232 GB, free: 85.37 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001994/0.5062, allocations: 125.7 kB / 0.5233 GB, free: 85.23 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.628e-05/0.5063, allocations: 51.14 kB / 0.5233 GB, free: 85.17 MB / 378.7 MB Notification: Performance of pre-optimization done (n=70): time 2.034e-06/0.5063, allocations: 0 / 0.5233 GB, free: 85.17 MB / 378.7 MB Notification: Performance of matching and sorting (n=96): time 0.006775/0.5131, allocations: 4.154 MB / 0.5274 GB, free: 80.98 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.58e-05/0.5131, allocations: 60.19 kB / 0.5274 GB, free: 80.91 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007878/0.5139, allocations: 0.792 MB / 0.5282 GB, free: 80.09 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.606e-05/0.514, allocations: 25.7 kB / 0.5282 GB, free: 80.06 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001916/0.5141, allocations: 0.6379 MB / 0.5289 GB, free: 79.41 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001629/0.5143, allocations: 331.1 kB / 0.5292 GB, free: 79.08 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.606e-05/0.5144, allocations: 0 / 0.5292 GB, free: 79.08 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.982e-05/0.5144, allocations: 349.9 kB / 0.5295 GB, free: 78.73 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006189/0.5151, allocations: 0.5571 MB / 0.5301 GB, free: 78.18 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007422/0.5158, allocations: 0.8888 MB / 0.5309 GB, free: 77.14 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007931/0.5166, allocations: 0.7213 MB / 0.5316 GB, free: 76.43 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.5166, allocations: 4 kB / 0.5316 GB, free: 76.42 MB / 378.7 MB Notification: Performance of matching and sorting (n=153) (initialization): time 0.002711/0.5193, allocations: 2.014 MB / 0.5336 GB, free: 74.39 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.189e-05/0.5194, allocations: 11.94 kB / 0.5336 GB, free: 74.38 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.287e-05/0.5194, allocations: 8 kB / 0.5336 GB, free: 74.37 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001347/0.5207, allocations: 0.5797 MB / 0.5342 GB, free: 73.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008775/0.5216, allocations: 263.6 kB / 0.5344 GB, free: 73.51 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005674/0.5273, allocations: 7.65 MB / 0.5419 GB, free: 65.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000692/0.528, allocations: 35.88 kB / 0.5419 GB, free: 65.36 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.045e-05/0.5281, allocations: 52 kB / 0.542 GB, free: 65.31 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (130): * Single equations (assignments): 124 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(4,87.5%) 8,(1,100.0%) 7,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001616/0.5283, allocations: 144.7 kB / 0.5421 GB, free: 65.16 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001572/0.5285, allocations: 110.6 kB / 0.5422 GB, free: 65.05 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002689/0.5312, allocations: 1.864 MB / 0.5441 GB, free: 63.18 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.144e-06/0.5312, allocations: 11.94 kB / 0.5441 GB, free: 63.16 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.583e-06/0.5312, allocations: 12 kB / 0.5441 GB, free: 63.15 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.836e-06/0.5312, allocations: 3.984 kB / 0.5441 GB, free: 63.15 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005082/0.5363, allocations: 3.754 MB / 0.5477 GB, free: 59.34 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/0.5363, allocations: 0 / 0.5477 GB, free: 59.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004679/0.5368, allocations: 107.9 kB / 0.5478 GB, free: 59.23 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001682/0.5385, allocations: 0.7259 MB / 0.5486 GB, free: 58.49 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.458e-05/0.5385, allocations: 19.92 kB / 0.5486 GB, free: 58.47 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007075/0.5456, allocations: 7.732 MB / 0.5561 GB, free: 50.41 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.818e-06/0.5456, allocations: 4 kB / 0.5561 GB, free: 50.4 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003247/0.5489, allocations: 2.78 MB / 0.5588 GB, free: 47.52 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004001/0.5493, allocations: 311.6 kB / 0.5591 GB, free: 47.2 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001771/0.5495, allocations: 8 kB / 0.5592 GB, free: 47.19 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006011/0.5501, allocations: 31.95 kB / 0.5592 GB, free: 47.16 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.44e-05/0.5502, allocations: 52.61 kB / 0.5592 GB, free: 47.11 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.456e-05/0.5503, allocations: 39.98 kB / 0.5593 GB, free: 47.07 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0005802/0.5509, allocations: 0.5785 MB / 0.5598 GB, free: 46.48 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001146/0.552, allocations: 356 kB / 0.5602 GB, free: 46.13 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (imc.inertiaRotor.phi,imc.idq_sr[1],imc.idq_sr[2],imc.idq_rr[1],imc.idq_rr[2],loadInertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (60): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(7,63.3%) 22,(1,100.0%) 1,(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003772/0.5524, allocations: 287.2 kB / 0.5604 GB, free: 45.86 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002381/0.5548, allocations: 2.084 MB / 0.5625 GB, free: 43.7 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.5548, allocations: 0 / 0.5625 GB, free: 43.7 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001657/0.5565, allocations: 1.282 MB / 0.5637 GB, free: 42.36 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001093/0.5576, allocations: 256.8 kB / 0.564 GB, free: 42.11 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003726/0.5613, allocations: 2.74 MB / 0.5667 GB, free: 39.31 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009745/0.5623, allocations: 1.568 MB / 0.5682 GB, free: 37.71 MB / 378.7 MB Notification: Performance of SimCode: time 2.71e-07/0.5623, allocations: 0 / 0.5682 GB, free: 37.71 MB / 378.7 MB Notification: Performance of Templates: time 0.02487/0.5872, allocations: 18.72 MB / 0.5865 GB, free: 19.22 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DCBraking.pipe 2>&1)