Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.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_YD,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD") [: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.001582/0.001582, allocations: 191 kB / 8.133 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.231/1.231, allocations: 194.2 MB / 202.8 MB, free: 8.68 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.00213/0.00213, allocations: 117.8 kB / 247.7 MB, free: 6.418 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 7.443e-06/7.514e-06, allocations: 0 / 297.6 MB, free: 8 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1144/0.1145, allocations: 44.48 MB / 342.1 MB, free: 11.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2682/0.3827, allocations: 104.6 MB / 446.7 MB, free: 6.973 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002277/0.383, allocations: 80.77 kB / 446.8 MB, free: 6.934 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.3596/0.7426, allocations: 87.01 MB / 0.5213 GB, free: 49.77 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002357/0.7429, allocations: 96.38 kB / 0.5214 GB, free: 49.75 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: 945 * Number of variables: 945 Notification: Performance of Generate backend data structure: time 0.008511/0.7514, allocations: 3.687 MB / 0.525 GB, free: 48.51 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.713e-05/0.7515, allocations: 7.312 kB / 0.525 GB, free: 48.51 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004156/0.7556, allocations: 0.8024 MB / 0.5258 GB, free: 48.29 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007266/0.7629, allocations: 3.67 MB / 0.5293 GB, free: 47.74 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001889/0.7631, allocations: 115.2 kB / 0.5295 GB, free: 47.74 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005443/0.7637, allocations: 216.3 kB / 0.5297 GB, free: 47.74 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006065/0.7698, allocations: 3.877 MB / 0.5334 GB, free: 47.72 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006372/0.7761, allocations: 4.384 MB / 0.5377 GB, free: 47.29 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.437e-05/0.7762, allocations: 6.062 kB / 0.5377 GB, free: 47.29 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003209/0.7766, allocations: 3.781 kB / 0.5377 GB, free: 47.29 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001091/0.7767, allocations: 163.1 kB / 0.5379 GB, free: 47.28 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01994/0.7966, allocations: 15.39 MB / 0.5529 GB, free: 44.09 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001514/0.7982, allocations: 1.358 MB / 0.5543 GB, free: 44.07 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001983/0.8002, allocations: 1.69 MB / 0.5559 GB, free: 44.04 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006159/0.8064, allocations: 4.144 MB / 0.56 GB, free: 43.36 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.902e-05/0.8064, allocations: 56.03 kB / 0.56 GB, free: 43.32 MB / 394.7 MB Notification: Performance of pre-optimization done (n=193): time 3.957e-06/0.8064, allocations: 0 / 0.56 GB, free: 43.32 MB / 394.7 MB Notification: Performance of matching and sorting (n=196): time 0.01012/0.8166, allocations: 6.072 MB / 0.5659 GB, free: 40.77 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.876e-05/0.8166, allocations: 77.88 kB / 0.566 GB, free: 40.7 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002231/0.8189, allocations: 1.589 MB / 0.5676 GB, free: 40.03 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001302/0.819, allocations: 29.11 kB / 0.5676 GB, free: 40 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004773/0.8195, allocations: 1.267 MB / 0.5688 GB, free: 39.09 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004066/0.8199, allocations: 0.6262 MB / 0.5694 GB, free: 38.59 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001078/0.82, allocations: 0 / 0.5694 GB, free: 38.59 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001061/0.8201, allocations: 391.9 kB / 0.5698 GB, free: 38.25 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001282/0.8214, allocations: 1.008 MB / 0.5708 GB, free: 37.84 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001505/0.8229, allocations: 1.484 MB / 0.5722 GB, free: 36.85 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001874/0.8248, allocations: 1.296 MB / 0.5735 GB, free: 36.34 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.115e-06/0.8248, allocations: 3.938 kB / 0.5735 GB, free: 36.34 MB / 394.7 MB Notification: Performance of matching and sorting (n=271) (initialization): time 0.005176/0.83, allocations: 3.391 MB / 0.5768 GB, free: 35.04 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.923e-05/0.8301, allocations: 12.34 kB / 0.5768 GB, free: 35.04 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.31e-05/0.8301, allocations: 14.75 kB / 0.5768 GB, free: 35.04 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001738/0.8318, allocations: 0.7172 MB / 0.5775 GB, free: 34.82 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001713/0.8336, allocations: 420.3 kB / 0.578 GB, free: 34.8 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009252/0.8428, allocations: 9.816 MB / 0.5875 GB, free: 27.7 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001814/0.8447, allocations: 52.41 kB / 0.5876 GB, free: 27.7 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001966/0.8449, allocations: 84.17 kB / 0.5877 GB, free: 27.68 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (221): * Single equations (assignments): 216 * 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: 4 * 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: 4 {(1,100.0%) 8,(9,33.3%) 19,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003824/0.8453, allocations: 164.4 kB / 0.5878 GB, free: 27.55 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003333/0.8456, allocations: 214.6 kB / 0.588 GB, free: 27.45 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005653/0.8513, allocations: 3.322 MB / 0.5913 GB, free: 26.05 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.08e-05/0.8513, allocations: 21.22 kB / 0.5913 GB, free: 26.05 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.17e-05/0.8513, allocations: 13.88 kB / 0.5913 GB, free: 26.05 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.96e-05/0.8514, allocations: 13.89 kB / 0.5913 GB, free: 26.04 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01078/0.8622, allocations: 6.765 MB / 0.5979 GB, free: 22.97 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.648e-06/0.8622, allocations: 0.9688 kB / 0.5979 GB, free: 22.97 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001233/0.8634, allocations: 229.6 kB / 0.5981 GB, free: 22.96 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002404/0.8659, allocations: 0.8987 MB / 0.599 GB, free: 22.67 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001738/0.866, allocations: 16.66 kB / 0.599 GB, free: 22.67 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01353/0.8796, allocations: 13.94 MB / 0.6126 GB, free: 12.22 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/0.8796, allocations: 1.25 kB / 0.6126 GB, free: 12.22 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007042/0.8867, allocations: 4.953 MB / 0.6175 GB, free: 9.891 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001246/0.888, allocations: 0.535 MB / 0.618 GB, free: 9.539 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003963/0.8884, allocations: 20.73 kB / 0.618 GB, free: 9.531 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001167/0.8895, allocations: 61.92 kB / 0.6181 GB, free: 9.523 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002584/0.8898, allocations: 122.7 kB / 0.6182 GB, free: 9.508 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001289/0.8899, allocations: 55.5 kB / 0.6183 GB, free: 9.492 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.001634/0.8916, allocations: 1.19 MB / 0.6194 GB, free: 8.973 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002507/0.8941, allocations: 0.6587 MB / 0.6201 GB, free: 8.953 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.zeroInductor.i0,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 6 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (126): * Single equations (assignments): 120 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 13,(1,100.0%) 1,(1,100.0%) 8,(9,33.3%) 19,(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.0005051/0.8946, allocations: 322.5 kB / 0.6204 GB, free: 8.828 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003954/0.8986, allocations: 3.112 MB / 0.6234 GB, free: 7.375 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.8986, allocations: 3.344 kB / 0.6234 GB, free: 7.375 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002793/0.9014, allocations: 2.126 MB / 0.6255 GB, free: 6.219 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002113/0.9035, allocations: 460.2 kB / 0.6259 GB, free: 6.09 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01072/0.9143, allocations: 5.767 MB / 0.6316 GB, free: 3.73 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002773/0.9171, allocations: 2.865 MB / 0.6344 GB, free: 2.129 MB / 394.7 MB Notification: Performance of SimCode: time 8.02e-07/0.9171, allocations: 0 / 0.6344 GB, free: 2.129 MB / 394.7 MB Notification: Performance of Templates: time 0.0665/0.9836, allocations: 35.85 MB / 0.6694 GB, free: 6.039 MB / 426.7 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe 2>&1)