Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.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.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL") [: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.001821/0.001821, allocations: 189.4 kB / 8.135 MB, free: 2.199 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.168/1.168, allocations: 194.2 MB / 202.8 MB, free: 8.703 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.001873/0.001873, allocations: 116.3 kB / 247.7 MB, free: 6.359 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 8.256e-06/8.286e-06, allocations: 0 / 297.6 MB, free: 7.953 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08736/0.08739, allocations: 44.48 MB / 342.1 MB, free: 11.36 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2589/0.3464, allocations: 116.3 MB / 458.4 MB, free: 11.33 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00024/0.3467, allocations: 90.09 kB / 458.5 MB, free: 11.29 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.4512/0.7979, allocations: 116 MB / 0.561 GB, free: 52.32 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004852/0.7984, allocations: 135.8 kB / 0.5612 GB, free: 52.3 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1348 * Number of variables: 1348 Notification: Performance of Generate backend data structure: time 0.01343/0.8118, allocations: 4.924 MB / 0.566 GB, free: 50.37 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/0.8119, allocations: 11.75 kB / 0.566 GB, free: 50.36 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005899/0.8178, allocations: 1.005 MB / 0.567 GB, free: 50.05 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01176/0.8296, allocations: 4.612 MB / 0.5715 GB, free: 49.16 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002648/0.8299, allocations: 167 kB / 0.5716 GB, free: 49.16 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001586/0.8315, allocations: 312.5 kB / 0.5719 GB, free: 49.15 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01215/0.8437, allocations: 5.238 MB / 0.5771 GB, free: 47.88 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01462/0.8583, allocations: 6.061 MB / 0.583 GB, free: 45.19 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000156/0.8585, allocations: 11.81 kB / 0.583 GB, free: 45.18 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005105/0.859, allocations: 5.406 kB / 0.583 GB, free: 45.18 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002128/0.8592, allocations: 233.3 kB / 0.5832 GB, free: 45.16 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03654/0.8958, allocations: 20.57 MB / 0.6033 GB, free: 34.24 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00257/0.8984, allocations: 1.736 MB / 0.605 GB, free: 33.56 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003037/0.9015, allocations: 2.268 MB / 0.6072 GB, free: 32.74 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009137/0.9106, allocations: 5.212 MB / 0.6123 GB, free: 30.1 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.405e-05/0.9107, allocations: 62.94 kB / 0.6124 GB, free: 30.04 MB / 394.7 MB Notification: Performance of pre-optimization done (n=258): time 4.689e-06/0.9107, allocations: 0 / 0.6124 GB, free: 30.04 MB / 394.7 MB Notification: Performance of matching and sorting (n=277): time 0.01517/0.9259, allocations: 8.739 MB / 0.6209 GB, free: 26.12 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.302e-05/0.926, allocations: 81.56 kB / 0.621 GB, free: 26.05 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003396/0.9294, allocations: 2.147 MB / 0.6231 GB, free: 25.2 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003691/0.9297, allocations: 25.7 kB / 0.6231 GB, free: 25.17 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009076/0.9307, allocations: 1.824 MB / 0.6249 GB, free: 23.8 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007036/0.9314, allocations: 0.9015 MB / 0.6258 GB, free: 23 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001589/0.9315, allocations: 0 / 0.6258 GB, free: 23 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001402/0.9317, allocations: 433.1 kB / 0.6262 GB, free: 22.6 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001794/0.9335, allocations: 1.44 MB / 0.6276 GB, free: 21.9 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002119/0.9356, allocations: 2.188 MB / 0.6297 GB, free: 20.2 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002523/0.9382, allocations: 1.864 MB / 0.6315 GB, free: 18.32 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.278e-05/0.9382, allocations: 4 kB / 0.6315 GB, free: 18.32 MB / 394.7 MB Notification: Performance of matching and sorting (n=403) (initialization): time 0.007003/0.9452, allocations: 4.702 MB / 0.6361 GB, free: 13.53 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/0.9452, allocations: 9 kB / 0.6361 GB, free: 13.52 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.829e-05/0.9453, allocations: 24 kB / 0.6362 GB, free: 13.5 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001792/0.9471, allocations: 0.7626 MB / 0.6369 GB, free: 12.71 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002743/0.9498, allocations: 0.6942 MB / 0.6376 GB, free: 12.02 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009588/0.9594, allocations: 12.51 MB / 0.6498 GB, free: 14.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002819/0.9623, allocations: 83.73 kB / 0.6499 GB, free: 14.62 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003605/0.9626, allocations: 124 kB / 0.65 GB, free: 14.5 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 103 * Number of states: 0 () * Number of discrete variables: 3 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (360): * Single equations (assignments): 350 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(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: 7 {(2,100.0%) 12,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006023/0.9633, allocations: 197.2 kB / 0.6502 GB, free: 14.3 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005657/0.9638, allocations: 304.2 kB / 0.6505 GB, free: 14 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008331/0.9722, allocations: 4.398 MB / 0.6548 GB, free: 9.492 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.564e-05/0.9722, allocations: 28 kB / 0.6548 GB, free: 9.465 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.523e-05/0.9722, allocations: 8.188 kB / 0.6548 GB, free: 9.457 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.643e-05/0.9723, allocations: 15.95 kB / 0.6548 GB, free: 9.441 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01714/0.9894, allocations: 9.193 MB / 0.6638 GB, free: 80 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.621e-05/0.9895, allocations: 4 kB / 0.6638 GB, free: 76 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.1225/1.112, allocations: 439.6 kB / 0.6642 GB, free: 116.3 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002511/1.115, allocations: 0.913 MB / 0.6651 GB, free: 116.2 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002539/1.115, allocations: 35.59 kB / 0.6652 GB, free: 116.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01273/1.128, allocations: 15.45 MB / 0.6802 GB, free: 106.5 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.013e-06/1.128, allocations: 3.031 kB / 0.6802 GB, free: 106.5 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009275/1.137, allocations: 6.826 MB / 0.6869 GB, free: 105.4 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001704/1.139, allocations: 0.7088 MB / 0.6876 GB, free: 105.3 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005753/1.139, allocations: 28.64 kB / 0.6876 GB, free: 105.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001705/1.141, allocations: 87.02 kB / 0.6877 GB, free: 105.3 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003466/1.141, allocations: 165 kB / 0.6879 GB, free: 105.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002033/1.141, allocations: 77.59 kB / 0.6879 GB, free: 105.3 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.002658/1.144, allocations: 1.598 MB / 0.6895 GB, free: 105.1 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003342/1.147, allocations: 0.9182 MB / 0.6904 GB, free: 105.1 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 14 (aimcM.inertiaRotor.w,aimcM.stator.core.Phi.re,aimcM.stator.core.Phi.im,aimcM.stator.zeroInductor.i0,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,aimcE.inertiaRotor.w,aimcE.i_0_s,aimcE.idq_sr[1],aimcE.idq_sr[2],aimcE.idq_rr[1],aimcE.idq_rr[2],quadraticLoadTorqueM.phi,quadraticLoadTorqueE.phi) * Number of discrete variables: 3 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (218): * Single equations (assignments): 209 * 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: 8 * 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: 8 {(2,100.0%) 12,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 1,(1,100.0%) 13,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006512/1.148, allocations: 397.6 kB / 0.6908 GB, free: 105 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005741/1.154, allocations: 4.607 MB / 0.6953 GB, free: 104 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/1.154, allocations: 0 / 0.6953 GB, free: 104 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003717/1.158, allocations: 2.934 MB / 0.6982 GB, free: 103.1 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003286/1.161, allocations: 0.6146 MB / 0.6988 GB, free: 103 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01626/1.177, allocations: 8.475 MB / 0.707 GB, free: 101.2 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004163/1.181, allocations: 3.729 MB / 0.7107 GB, free: 100.3 MB / 410.7 MB Notification: Performance of SimCode: time 9.81e-07/1.181, allocations: 6.625 kB / 0.7107 GB, free: 100.3 MB / 410.7 MB Notification: Performance of Templates: time 0.07402/1.255, allocations: 47.12 MB / 0.7567 GB, free: 91.9 MB / 410.7 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe 2>&1)