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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.0009094/0.0009095, allocations: 188.5 kB / 8.353 MB, free: 0.707 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.219/1.219, allocations: 194.3 MB / 203.1 MB, free: 9.316 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001672/0.001671, allocations: 113.2 kB / 248.1 MB, free: 6.363 MB / 203.1 MB Notification: Performance of FrontEnd - loaded program: time 1.615e-05/1.617e-05, allocations: 4 kB / 298.1 MB, free: 8.238 MB / 251.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07814/0.07817, allocations: 44.5 MB / 342.6 MB, free: 11.63 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2995/0.3777, allocations: 104.7 MB / 447.3 MB, free: 7.559 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002686/0.3781, allocations: 86.39 kB / 447.4 MB, free: 7.516 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.4055/0.7836, allocations: 87.13 MB / 0.522 GB, free: 66.78 MB / 395.1 MB Notification: Performance of FrontEnd: time 3.006e-06/0.7836, allocations: 3.062 kB / 0.522 GB, free: 66.78 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0004496/0.7841, allocations: 91.69 kB / 0.5221 GB, free: 66.77 MB / 395.1 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.01291/0.797, allocations: 3.682 MB / 0.5257 GB, free: 65.53 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.907e-05/0.7971, allocations: 10.98 kB / 0.5257 GB, free: 65.53 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005143/0.8023, allocations: 0.7977 MB / 0.5265 GB, free: 65.31 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008983/0.8113, allocations: 3.668 MB / 0.53 GB, free: 64.75 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001521/0.8115, allocations: 118.1 kB / 0.5302 GB, free: 64.75 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007826/0.8123, allocations: 216.9 kB / 0.5304 GB, free: 64.75 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006673/0.8189, allocations: 3.79 MB / 0.5341 GB, free: 64.73 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008027/0.827, allocations: 4.325 MB / 0.5383 GB, free: 64.3 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.799e-05/0.8271, allocations: 8.469 kB / 0.5383 GB, free: 64.3 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003102/0.8274, allocations: 2.969 kB / 0.5383 GB, free: 64.3 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001734/0.8276, allocations: 159.3 kB / 0.5384 GB, free: 64.29 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.027/0.8546, allocations: 15.28 MB / 0.5534 GB, free: 61.12 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006621/0.8613, allocations: 7.59 MB / 0.5608 GB, free: 55.63 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003081/0.8645, allocations: 1.59 MB / 0.5623 GB, free: 55.59 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008164/0.8727, allocations: 4.505 MB / 0.5667 GB, free: 53.27 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.575e-05/0.8727, allocations: 49.03 kB / 0.5668 GB, free: 53.22 MB / 395.1 MB Notification: Performance of pre-optimization done (n=159): time 4.509e-06/0.8727, allocations: 0 / 0.5668 GB, free: 53.22 MB / 395.1 MB Notification: Performance of matching and sorting (n=162): time 0.009445/0.8822, allocations: 5.575 MB / 0.5722 GB, free: 50.55 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.944e-05/0.8823, allocations: 68.41 kB / 0.5723 GB, free: 50.48 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002154/0.8844, allocations: 1.567 MB / 0.5738 GB, free: 49.81 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001305/0.8846, allocations: 25.7 kB / 0.5738 GB, free: 49.78 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006972/0.8853, allocations: 1.62 MB / 0.5754 GB, free: 48.55 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003097/0.8856, allocations: 0.5245 MB / 0.5759 GB, free: 48.13 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.325e-05/0.8857, allocations: 2.953 kB / 0.5759 GB, free: 48.13 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 9.488e-05/0.8858, allocations: 377.6 kB / 0.5763 GB, free: 47.8 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009807/0.8868, allocations: 0.8418 MB / 0.5771 GB, free: 47.45 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001193/0.888, allocations: 1.289 MB / 0.5784 GB, free: 46.54 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001736/0.8897, allocations: 1.185 MB / 0.5795 GB, free: 46.07 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.628e-06/0.8897, allocations: 7.875 kB / 0.5795 GB, free: 46.07 MB / 395.1 MB Notification: Performance of matching and sorting (n=237) (initialization): time 0.004365/0.8941, allocations: 3.081 MB / 0.5826 GB, free: 44.88 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.596e-05/0.8942, allocations: 10.81 kB / 0.5826 GB, free: 44.88 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.777e-05/0.8942, allocations: 12.28 kB / 0.5826 GB, free: 44.88 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001515/0.8957, allocations: 0.6988 MB / 0.5833 GB, free: 44.65 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001261/0.897, allocations: 365.8 kB / 0.5836 GB, free: 44.64 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008364/0.9054, allocations: 10.02 MB / 0.5934 GB, free: 37.29 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001905/0.9073, allocations: 52.59 kB / 0.5934 GB, free: 37.29 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001892/0.9075, allocations: 82.86 kB / 0.5935 GB, free: 37.27 MB / 395.1 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 (187): * Single equations (assignments): 182 * 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%) 1,(1,100.0%) 8,(9,33.3%) 19,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003471/0.9079, allocations: 150.7 kB / 0.5937 GB, free: 37.15 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002669/0.9081, allocations: 208.6 kB / 0.5939 GB, free: 37.04 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004633/0.9128, allocations: 3.003 MB / 0.5968 GB, free: 35.76 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.166e-05/0.9128, allocations: 14.06 kB / 0.5968 GB, free: 35.76 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.356e-05/0.9128, allocations: 11.25 kB / 0.5968 GB, free: 35.76 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.782e-05/0.9129, allocations: 13.12 kB / 0.5968 GB, free: 35.76 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008894/0.9218, allocations: 5.906 MB / 0.6026 GB, free: 33.14 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.063e-06/0.9218, allocations: 3.953 kB / 0.6026 GB, free: 33.14 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008147/0.9226, allocations: 171.7 kB / 0.6028 GB, free: 33.13 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00177/0.9244, allocations: 0.8832 MB / 0.6036 GB, free: 32.84 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.638e-05/0.9245, allocations: 18.7 kB / 0.6036 GB, free: 32.84 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01072/0.9352, allocations: 14.23 MB / 0.6175 GB, free: 22.02 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.01e-06/0.9353, allocations: 0 / 0.6175 GB, free: 22.02 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005498/0.9408, allocations: 4.391 MB / 0.6218 GB, free: 19.86 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007782/0.9416, allocations: 0.4899 MB / 0.6223 GB, free: 19.53 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002382/0.9418, allocations: 11.34 kB / 0.6223 GB, free: 19.53 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009183/0.9427, allocations: 67.81 kB / 0.6224 GB, free: 19.52 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000305/0.9431, allocations: 163.5 kB / 0.6225 GB, free: 19.49 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.839e-05/0.9432, allocations: 43.81 kB / 0.6226 GB, free: 19.48 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.001396/0.9446, allocations: 1.182 MB / 0.6237 GB, free: 18.95 MB / 395.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.9446, allocations: 0 / 0.6237 GB, free: 18.95 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.002121/0.9467, allocations: 0.6449 MB / 0.6244 GB, free: 18.93 MB / 395.1 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 (92): * Single equations (assignments): 86 * 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%) 1,(1,100.0%) 8,(9,33.3%) 19,(1,100.0%) 13,(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.000431/0.9471, allocations: 335.5 kB / 0.6247 GB, free: 18.79 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.003565/0.9507, allocations: 2.809 MB / 0.6274 GB, free: 17.34 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.9507, allocations: 2.156 kB / 0.6274 GB, free: 17.34 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002691/0.9534, allocations: 2.1 MB / 0.6295 GB, free: 16.07 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002307/0.9558, allocations: 466.5 kB / 0.6299 GB, free: 15.95 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007642/0.9634, allocations: 5.418 MB / 0.6352 GB, free: 13.38 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001812/0.9652, allocations: 2.739 MB / 0.6379 GB, free: 11.25 MB / 395.1 MB Notification: Performance of simCode: alias equations: time 0.001405/0.9667, allocations: 440.3 kB / 0.6383 GB, free: 10.95 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003116/0.967, allocations: 123.2 kB / 0.6384 GB, free: 10.83 MB / 395.1 MB Notification: Performance of SimCode: time 9.62e-07/0.967, allocations: 0 / 0.6384 GB, free: 10.83 MB / 395.1 MB Notification: Performance of Templates: time 0.2444/1.211, allocations: 30.5 MB / 0.6682 GB, free: 54.55 MB / 395.1 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)