Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.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.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking") [: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.00161/0.00161, allocations: 195.2 kB / 8.137 MB, free: 2.184 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.055/1.055, allocations: 194.2 MB / 202.8 MB, free: 8.66 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.001751/0.001751, allocations: 115.8 kB / 247.7 MB, free: 6.367 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.61e-06/5.64e-06, allocations: 0 / 297.6 MB, free: 7.969 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07152/0.07155, allocations: 44.48 MB / 342.1 MB, free: 11.38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2396/0.3112, allocations: 104 MB / 446.1 MB, free: 7.414 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002282/0.3115, allocations: 87.66 kB / 446.2 MB, free: 7.371 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.1473/0.4588, allocations: 54.06 MB / 0.4885 GB, free: 8.484 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001977/0.4591, allocations: 71.88 kB / 0.4886 GB, free: 8.414 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: 652 * Number of variables: 652 Notification: Performance of Generate backend data structure: time 0.005482/0.4646, allocations: 2.629 MB / 0.4912 GB, free: 5.723 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.264e-05/0.4646, allocations: 8.031 kB / 0.4912 GB, free: 5.715 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001034/0.4657, allocations: 364 kB / 0.4915 GB, free: 5.355 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003809/0.4695, allocations: 1.944 MB / 0.4934 GB, free: 3.355 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.334e-05/0.4696, allocations: 80 kB / 0.4935 GB, free: 3.277 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000334/0.4699, allocations: 151.9 kB / 0.4936 GB, free: 3.129 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00444/0.4744, allocations: 2.614 MB / 0.4962 GB, free: 0.5078 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004925/0.4793, allocations: 3.003 MB / 0.4991 GB, free: 13.33 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.713e-05/0.4794, allocations: 15.84 kB / 0.4991 GB, free: 13.32 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000228/0.4797, allocations: 4 kB / 0.4991 GB, free: 13.31 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000105/0.4798, allocations: 116.8 kB / 0.4993 GB, free: 13.2 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01644/0.4962, allocations: 10.47 MB / 0.5095 GB, free: 2.453 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001535/0.4978, allocations: 1.032 MB / 0.5105 GB, free: 1.414 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001541/0.4994, allocations: 1.102 MB / 0.5116 GB, free: 316 kB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003184/0.4997, allocations: 142.3 kB / 0.5117 GB, free: 152 kB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.346e-05/0.4997, allocations: 51.88 kB / 0.5117 GB, free: 92 kB / 394.7 MB Notification: Performance of pre-optimization done (n=136): time 3.597e-06/0.4998, allocations: 0 / 0.5117 GB, free: 92 kB / 394.7 MB Notification: Performance of matching and sorting (n=150): time 0.111/0.6107, allocations: 5.027 MB / 0.5167 GB, free: 128.9 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.083e-05/0.6108, allocations: 96.11 kB / 0.5167 GB, free: 128.8 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001712/0.6125, allocations: 1.336 MB / 0.518 GB, free: 128.7 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 9.965e-05/0.6126, allocations: 25.7 kB / 0.5181 GB, free: 128.6 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003677/0.613, allocations: 0.9589 MB / 0.519 GB, free: 128.2 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002758/0.6133, allocations: 495.4 kB / 0.5195 GB, free: 128 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.583e-05/0.6134, allocations: 0 / 0.5195 GB, free: 128 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.165e-05/0.6135, allocations: 372.5 kB / 0.5198 GB, free: 127.7 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009747/0.6145, allocations: 0.8195 MB / 0.5206 GB, free: 127.7 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001119/0.6156, allocations: 1.264 MB / 0.5219 GB, free: 127.2 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001184/0.6168, allocations: 1.01 MB / 0.5229 GB, free: 127.1 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.831e-06/0.6168, allocations: 3.281 kB / 0.5229 GB, free: 127.1 MB / 394.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.003597/0.6204, allocations: 2.672 MB / 0.5255 GB, free: 127 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007995/0.6212, allocations: 5.522 MB / 0.5309 GB, free: 121.1 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.946e-05/0.6212, allocations: 14.09 kB / 0.5309 GB, free: 121.1 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00137/0.6226, allocations: 0.6858 MB / 0.5315 GB, free: 121.1 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001423/0.6241, allocations: 362.6 kB / 0.5319 GB, free: 121.1 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006546/0.6306, allocations: 7.496 MB / 0.5392 GB, free: 117.3 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001574/0.6322, allocations: 63.14 kB / 0.5393 GB, free: 117.3 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00016/0.6324, allocations: 69.5 kB / 0.5393 GB, free: 117.3 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.644e-06/0.6324, allocations: 3.75 kB / 0.5393 GB, free: 117.3 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003428/0.6358, allocations: 2.458 MB / 0.5417 GB, free: 117.3 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.899e-05/0.6359, allocations: 12.91 kB / 0.5418 GB, free: 117.3 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001341/0.6372, allocations: 0.681 MB / 0.5424 GB, free: 117.2 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00133/0.6386, allocations: 353.3 kB / 0.5428 GB, free: 117.2 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006587/0.6452, allocations: 7.511 MB / 0.5501 GB, free: 113.5 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001447/0.6466, allocations: 49.47 kB / 0.5501 GB, free: 113.5 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001403/0.6468, allocations: 74.59 kB / 0.5502 GB, free: 113.5 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 6 (diodeBridge2mPulse.diode_p.idealDiode[1].off,diodeBridge2mPulse.diode_p.idealDiode[2].off,diodeBridge2mPulse.diode_p.idealDiode[3].off,diodeBridge2mPulse.diode_n.idealDiode[1].off,diodeBridge2mPulse.diode_n.idealDiode[2].off,diodeBridge2mPulse.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (183): * Single equations (assignments): 179 * 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: 2 {(2,100.0%) 9,(1,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of prepare postOptimizeDAE: time 0.0004059/0.6472, allocations: 162.7 kB / 0.5504 GB, free: 113.4 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003887/0.6476, allocations: 187.8 kB / 0.5505 GB, free: 113.3 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003773/0.6514, allocations: 2.467 MB / 0.553 GB, free: 113.1 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-05/0.6514, allocations: 19.09 kB / 0.553 GB, free: 113.1 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.723e-06/0.6514, allocations: 0 / 0.553 GB, free: 113.1 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.282e-05/0.6514, allocations: 7.594 kB / 0.553 GB, free: 113.1 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007106/0.6586, allocations: 4.917 MB / 0.5578 GB, free: 111.5 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.772e-06/0.6586, allocations: 3.844 kB / 0.5578 GB, free: 111.5 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001087/0.6597, allocations: 227.2 kB / 0.558 GB, free: 111.5 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001516/0.6612, allocations: 0.6921 MB / 0.5587 GB, free: 111.3 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.514e-05/0.6613, allocations: 15.09 kB / 0.5587 GB, free: 111.2 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007388/0.6687, allocations: 8.961 MB / 0.5674 GB, free: 104.8 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.079e-06/0.6688, allocations: 7.688 kB / 0.5675 GB, free: 104.8 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005064/0.6738, allocations: 3.853 MB / 0.5712 GB, free: 103.1 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001164/0.675, allocations: 455.4 kB / 0.5716 GB, free: 102.8 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003129/0.6753, allocations: 9.875 kB / 0.5717 GB, free: 102.8 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00107/0.6764, allocations: 55.61 kB / 0.5717 GB, free: 102.8 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002147/0.6766, allocations: 90.42 kB / 0.5718 GB, free: 102.8 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001122/0.6768, allocations: 41.12 kB / 0.5718 GB, free: 102.8 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.001453/0.6782, allocations: 1.009 MB / 0.5728 GB, free: 102.3 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003055/0.6813, allocations: 0.8952 MB / 0.5737 GB, free: 102.3 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 5 (smpm.inertiaRotor.phi,smpm.i_0_s,smpm.idq_sr[1],smpm.idq_sr[2],inertiaLoad.w) * Number of discrete variables: 6 (diodeBridge2mPulse.diode_p.idealDiode[1].off,diodeBridge2mPulse.diode_p.idealDiode[2].off,diodeBridge2mPulse.diode_p.idealDiode[3].off,diodeBridge2mPulse.diode_n.idealDiode[1].off,diodeBridge2mPulse.diode_n.idealDiode[2].off,diodeBridge2mPulse.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 109 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005771/0.6819, allocations: 387.5 kB / 0.5741 GB, free: 102.2 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00518/0.6871, allocations: 4.186 MB / 0.5782 GB, free: 100.3 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.027e-06/0.6871, allocations: 3.875 kB / 0.5782 GB, free: 100.3 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001815/0.6889, allocations: 1.563 MB / 0.5797 GB, free: 99.47 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002261/0.6912, allocations: 474 kB / 0.5801 GB, free: 99.37 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008256/0.6995, allocations: 4.486 MB / 0.5845 GB, free: 97.66 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002007/0.7015, allocations: 2.242 MB / 0.5867 GB, free: 96.67 MB / 394.7 MB Notification: Performance of SimCode: time 7.31e-07/0.7015, allocations: 0 / 0.5867 GB, free: 96.67 MB / 394.7 MB Notification: Performance of Templates: time 0.06178/0.7633, allocations: 42.61 MB / 0.6283 GB, free: 67.96 MB / 394.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe 2>&1)