Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.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.AIMS_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.00092/0.0009203, allocations: 187.8 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.357/1.357, allocations: 194.3 MB / 203.1 MB, free: 9.324 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.001821/0.001821, allocations: 115.8 kB / 248.1 MB, free: 6.332 MB / 203.1 MB Notification: Performance of FrontEnd - loaded program: time 1.505e-05/1.506e-05, allocations: 4 kB / 298.1 MB, free: 8.23 MB / 251.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08923/0.08925, allocations: 44.49 MB / 342.6 MB, free: 11.64 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3532/0.4426, allocations: 123.6 MB / 466.1 MB, free: 5.148 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002585/0.4429, allocations: 89.31 kB / 466.2 MB, free: 5.102 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.5848/1.028, allocations: 148.7 MB / 0.6005 GB, free: 60.58 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.124e-06/1.028, allocations: 3.688 kB / 0.6005 GB, free: 60.58 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0009554/1.029, allocations: 179.5 kB / 0.6007 GB, free: 60.55 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: 1778 * Number of variables: 1778 Notification: Performance of Generate backend data structure: time 0.02199/1.051, allocations: 6.555 MB / 0.6071 GB, free: 56.53 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.308e-05/1.051, allocations: 11.22 kB / 0.6071 GB, free: 56.53 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007511/1.058, allocations: 1.239 MB / 0.6083 GB, free: 55.92 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01703/1.075, allocations: 6.224 MB / 0.6144 GB, free: 49.86 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004855/1.076, allocations: 220 kB / 0.6146 GB, free: 49.64 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003409/1.079, allocations: 407.8 kB / 0.615 GB, free: 49.24 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02103/1.1, allocations: 7.025 MB / 0.6218 GB, free: 42.21 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02606/1.126, allocations: 8.19 MB / 0.6298 GB, free: 33.73 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004454/1.127, allocations: 15.89 kB / 0.6298 GB, free: 33.71 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002523/1.13, allocations: 11.98 kB / 0.6298 GB, free: 33.7 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002901/1.13, allocations: 289.4 kB / 0.6301 GB, free: 33.42 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05826/1.188, allocations: 28.16 MB / 0.6576 GB, free: 4.836 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3053/1.493, allocations: 11.59 MB / 0.6689 GB, free: 47.61 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005551/1.499, allocations: 3.147 MB / 0.672 GB, free: 47.55 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01172/1.511, allocations: 6.584 MB / 0.6784 GB, free: 46.86 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.785e-05/1.511, allocations: 74.19 kB / 0.6785 GB, free: 46.82 MB / 395.1 MB Notification: Performance of pre-optimization done (n=306): time 5.791e-06/1.511, allocations: 0 / 0.6785 GB, free: 46.82 MB / 395.1 MB Notification: Performance of matching and sorting (n=325): time 0.02007/1.531, allocations: 11.05 MB / 0.6893 GB, free: 45.12 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.2e-05/1.531, allocations: 89.16 kB / 0.6894 GB, free: 45.06 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005675/1.537, allocations: 2.785 MB / 0.6921 GB, free: 44.82 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006558/1.537, allocations: 27.61 kB / 0.6921 GB, free: 44.79 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002252/1.54, allocations: 3.08 MB / 0.6951 GB, free: 43.55 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001358/1.541, allocations: 1.053 MB / 0.6962 GB, free: 42.86 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001952/1.541, allocations: 0 / 0.6962 GB, free: 42.86 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001874/1.541, allocations: 451.9 kB / 0.6966 GB, free: 42.55 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002669/1.544, allocations: 1.718 MB / 0.6983 GB, free: 42.54 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003072/1.547, allocations: 2.605 MB / 0.7008 GB, free: 41.56 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003559/1.551, allocations: 2.264 MB / 0.703 GB, free: 41.52 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.842e-05/1.551, allocations: 7.531 kB / 0.703 GB, free: 41.52 MB / 395.1 MB Notification: Performance of matching and sorting (n=479) (initialization): time 0.01144/1.562, allocations: 5.908 MB / 0.7088 GB, free: 40.87 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.788e-05/1.562, allocations: 21.69 kB / 0.7088 GB, free: 40.87 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.494e-05/1.562, allocations: 26.91 kB / 0.7088 GB, free: 40.87 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002593/1.565, allocations: 1.209 MB / 0.71 GB, free: 40.75 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00361/1.569, allocations: 0.8124 MB / 0.7108 GB, free: 40.75 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01496/1.584, allocations: 19.85 MB / 0.7302 GB, free: 25.93 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004379/1.588, allocations: 125.5 kB / 0.7303 GB, free: 25.92 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007087/1.589, allocations: 156.8 kB / 0.7305 GB, free: 25.89 MB / 395.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 121 * Number of states: 0 () * Number of discrete variables: 9 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatE.booleanStep[1].y,rheostatE.booleanStep[2].y,rheostatE.booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (416): * Single equations (assignments): 402 * 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: 11 * 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: 11 {(2,100.0%) 14,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008017/1.59, allocations: 204.9 kB / 0.7307 GB, free: 25.76 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001009/1.591, allocations: 405.7 kB / 0.7311 GB, free: 25.55 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009118/1.6, allocations: 5.756 MB / 0.7367 GB, free: 23.08 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.551e-05/1.6, allocations: 32.22 kB / 0.7367 GB, free: 23.08 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.061e-05/1.6, allocations: 16.22 kB / 0.7367 GB, free: 23.08 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.783e-05/1.6, allocations: 20.83 kB / 0.7367 GB, free: 23.07 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01986/1.62, allocations: 11.2 MB / 0.7477 GB, free: 18.38 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-05/1.62, allocations: 3.422 kB / 0.7477 GB, free: 18.38 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001955/1.622, allocations: 460.5 kB / 0.7481 GB, free: 18.37 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003264/1.625, allocations: 1.557 MB / 0.7496 GB, free: 17.85 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002549/1.625, allocations: 29.55 kB / 0.7497 GB, free: 17.84 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02268/1.648, allocations: 28.97 MB / 0.778 GB, free: 9.844 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.602e-06/1.648, allocations: 2.156 kB / 0.778 GB, free: 9.844 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01285/1.661, allocations: 8.647 MB / 0.7864 GB, free: 5.707 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002497/1.663, allocations: 0.8617 MB / 0.7873 GB, free: 5.188 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009784/1.664, allocations: 21.69 kB / 0.7873 GB, free: 5.18 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002129/1.667, allocations: 148.2 kB / 0.7874 GB, free: 5.18 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006771/1.667, allocations: 286.4 kB / 0.7877 GB, free: 5.137 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002151/1.667, allocations: 85.06 kB / 0.7878 GB, free: 5.117 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.003689/1.671, allocations: 2.074 MB / 0.7898 GB, free: 4.297 MB / 411.1 MB Notification: Performance of sort global known variables: time 2.71e-07/1.671, allocations: 0 / 0.7898 GB, free: 4.297 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.006334/1.678, allocations: 1.207 MB / 0.791 GB, free: 3.68 MB / 411.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 16 (aimsM.stator.core.Phi.re,aimsM.stator.core.Phi.im,aimsM.stator.zeroInductor.i0,aimsM.rotor.core.Phi.re,aimsM.rotor.core.Phi.im,aimsM.rotor.zeroInductor.i0,aimsE.i_0_s,aimsE.idq_sr[1],aimsE.idq_sr[2],aimsE.idq_rr[1],aimsE.idq_rr[2],aimsE.i_0_r,loadInertiaM.w,loadInertiaE.w,quadraticLoadTorqueM.phi,quadraticLoadTorqueE.phi) * Number of discrete variables: 9 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatE.booleanStep[1].y,rheostatE.booleanStep[2].y,rheostatE.booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (232): * Single equations (assignments): 215 * 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: 16 * 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: 16 {(2,100.0%) 14,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00107/1.679, allocations: 470.5 kB / 0.7914 GB, free: 3.363 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.008731/1.687, allocations: 5.907 MB / 0.7972 GB, free: 13.86 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 8.126e-06/1.687, allocations: 0 / 0.7972 GB, free: 13.86 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007337/1.695, allocations: 4.519 MB / 0.8016 GB, free: 9.574 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005551/1.7, allocations: 0.9435 MB / 0.8025 GB, free: 8.855 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02618/1.727, allocations: 10.79 MB / 0.8131 GB, free: 15.25 MB / 443.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006943/1.734, allocations: 4.609 MB / 0.8176 GB, free: 11.82 MB / 443.1 MB Notification: Performance of simCode: alias equations: time 0.004009/1.738, allocations: 0.9736 MB / 0.8185 GB, free: 11.15 MB / 443.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000828/1.738, allocations: 246.2 kB / 0.8188 GB, free: 10.92 MB / 443.1 MB Notification: Performance of SimCode: time 1.102e-06/1.738, allocations: 0 / 0.8188 GB, free: 10.92 MB / 443.1 MB Notification: Performance of Templates: time 0.3787/2.117, allocations: 57.88 MB / 0.8753 GB, free: 89.21 MB / 443.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe 2>&1)