Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start,tolerance=1e-05,outputFormat="empty",numberOfIntervals=3000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start,tolerance=1e-05,outputFormat="empty",numberOfIntervals=3000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001329/0.001329, allocations: 170.4 kB / 12.72 MB, free: 2.594 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.106/1.106, allocations: 170.6 MB / 183.8 MB, free: 11.48 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.00165/0.00165, allocations: 108.1 kB / 223.2 MB, free: 4.109 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.505e-05/2.508e-05, allocations: 0 / 268.9 MB, free: 20.92 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06293/0.06297, allocations: 38.76 MB / 307.6 MB, free: 14.13 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.294/0.357, allocations: 117 MB / 424.6 MB, free: 8.184 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002343/0.3573, allocations: 77.64 kB / 424.7 MB, free: 8.145 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5244/0.8817, allocations: 145.6 MB / 0.557 GB, free: 31.39 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.8818, allocations: 8 kB / 0.557 GB, free: 31.38 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0006914/0.8825, allocations: 171.8 kB / 0.5571 GB, free: 31.21 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1699 * Number of variables: 1699 Notification: Performance of Generate backend data structure: time 0.02029/0.9028, allocations: 6.386 MB / 0.5634 GB, free: 24.75 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.775e-05/0.9028, allocations: 16.03 kB / 0.5634 GB, free: 24.73 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005947/0.9088, allocations: 0.9904 MB / 0.5644 GB, free: 23.73 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01365/0.9225, allocations: 5.22 MB / 0.5694 GB, free: 18.45 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003505/0.9229, allocations: 493 kB / 0.5699 GB, free: 17.96 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002136/0.925, allocations: 0.6404 MB / 0.5705 GB, free: 17.32 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02352/0.9486, allocations: 8.738 MB / 0.5791 GB, free: 8.273 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003394/0.949, allocations: 19.83 kB / 0.5791 GB, free: 8.254 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001979/0.951, allocations: 280 kB / 0.5794 GB, free: 7.98 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002722/0.9512, allocations: 264.8 kB / 0.5796 GB, free: 7.719 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01677/0.968, allocations: 6.892 MB / 0.5863 GB, free: 0.8125 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4599/1.428, allocations: 27.94 MB / 0.6136 GB, free: 29.37 MB / 346.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005789/1.434, allocations: 5.911 MB / 0.6194 GB, free: 27.34 MB / 346.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003931/1.438, allocations: 2.997 MB / 0.6223 GB, free: 27.3 MB / 346.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003907/1.438, allocations: 156.2 kB / 0.6225 GB, free: 27.2 MB / 346.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.63e-05/1.438, allocations: 76.09 kB / 0.6226 GB, free: 27.16 MB / 346.8 MB Notification: Performance of pre-optimization done (n=322): time 5.15e-06/1.438, allocations: 0 / 0.6226 GB, free: 27.16 MB / 346.8 MB Notification: Performance of matching and sorting (n=341): time 0.02301/1.461, allocations: 12.05 MB / 0.6343 GB, free: 25.07 MB / 346.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.375e-05/1.461, allocations: 89.75 kB / 0.6344 GB, free: 25 MB / 346.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007538/1.469, allocations: 3.398 MB / 0.6377 GB, free: 23.73 MB / 346.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0008484/1.47, allocations: 84.83 kB / 0.6378 GB, free: 23.65 MB / 346.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002436/1.472, allocations: 2.939 MB / 0.6407 GB, free: 21.68 MB / 346.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001552/1.474, allocations: 1.142 MB / 0.6418 GB, free: 20.79 MB / 346.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006141/1.474, allocations: 74.62 kB / 0.6419 GB, free: 20.73 MB / 346.8 MB Notification: Performance of setup shared object (initialization): time 0.0002907/1.475, allocations: 464.9 kB / 0.6423 GB, free: 20.36 MB / 346.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00306/1.478, allocations: 1.797 MB / 0.6441 GB, free: 19.68 MB / 346.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003761/1.482, allocations: 2.667 MB / 0.6467 GB, free: 17.98 MB / 346.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003777/1.485, allocations: 2.232 MB / 0.6489 GB, free: 17.15 MB / 346.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.174e-05/1.485, allocations: 9.375 kB / 0.6489 GB, free: 17.15 MB / 346.8 MB Notification: Performance of matching and sorting (n=483) (initialization): time 0.01071/1.496, allocations: 6.229 MB / 0.6549 GB, free: 14.73 MB / 346.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.29e-05/1.496, allocations: 14.69 kB / 0.655 GB, free: 14.73 MB / 346.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-05/1.496, allocations: 25.88 kB / 0.655 GB, free: 14.73 MB / 346.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002644/1.499, allocations: 1.267 MB / 0.6562 GB, free: 14.3 MB / 346.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003284/1.502, allocations: 0.8247 MB / 0.657 GB, free: 14.28 MB / 346.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01584/1.518, allocations: 21.29 MB / 0.6778 GB, free: 12.7 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004204/1.522, allocations: 193.6 kB / 0.678 GB, free: 12.63 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00083/1.523, allocations: 146.2 kB / 0.6781 GB, free: 12.6 MB / 362.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 113 * 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 (417): * Single equations (assignments): 403 * 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%) 1,(1,100.0%) 8,(2,100.0%) 5,(2,100.0%) 5,(2,100.0%) 5,(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.00145/1.525, allocations: 339.5 kB / 0.6785 GB, free: 12.36 MB / 362.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00145/1.526, allocations: 450.3 kB / 0.6789 GB, free: 12.14 MB / 362.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01131/1.537, allocations: 6.03 MB / 0.6848 GB, free: 9.473 MB / 362.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.315e-05/1.538, allocations: 34.38 kB / 0.6848 GB, free: 9.473 MB / 362.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-05/1.538, allocations: 14.75 kB / 0.6848 GB, free: 9.473 MB / 362.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.621e-05/1.538, allocations: 17.02 kB / 0.6848 GB, free: 9.473 MB / 362.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02931/1.567, allocations: 12.97 MB / 0.6975 GB, free: 1.73 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-05/1.567, allocations: 7.234 kB / 0.6975 GB, free: 1.727 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002237/1.569, allocations: 480.2 kB / 0.698 GB, free: 1.336 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004172/1.573, allocations: 1.614 MB / 0.6995 GB, free: 16 kB / 362.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008207/1.574, allocations: 98.69 kB / 0.6996 GB, free: 0 / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02887/1.603, allocations: 30.15 MB / 0.7291 GB, free: 1.688 MB / 394.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.745e-06/1.603, allocations: 11.94 kB / 0.7291 GB, free: 1.676 MB / 394.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2566/1.86, allocations: 9.427 MB / 0.7383 GB, free: 72.49 MB / 394.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002898/1.863, allocations: 0.9212 MB / 0.7392 GB, free: 72.39 MB / 394.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001635/1.864, allocations: 73.7 kB / 0.7393 GB, free: 72.39 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003262/1.868, allocations: 199.2 kB / 0.7395 GB, free: 72.39 MB / 394.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000951/1.869, allocations: 291.3 kB / 0.7397 GB, free: 72.39 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004561/1.869, allocations: 95.19 kB / 0.7398 GB, free: 72.39 MB / 394.8 MB Notification: Performance of sorting global known variables: time 0.005418/1.875, allocations: 2.597 MB / 0.7424 GB, free: 72.19 MB / 394.8 MB Notification: Performance of sort global known variables: time 4.11e-07/1.875, allocations: 0 / 0.7424 GB, free: 72.19 MB / 394.8 MB Notification: Performance of remove unused functions: time 0.007814/1.883, allocations: 1.355 MB / 0.7437 GB, free: 72.19 MB / 394.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 16 (aimsM.stator.zeroInductor.i0,aimsM.stator.core.Phi.re,aimsM.stator.core.Phi.im,aimsM.rotor.zeroInductor.i0,aimsM.rotor.core.Phi.re,aimsM.rotor.core.Phi.im,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 (248): * Single equations (assignments): 231 * 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%) 1,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 1,(1,100.0%) 8,(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.001483/1.884, allocations: 0.5679 MB / 0.7442 GB, free: 72.08 MB / 394.8 MB Notification: Performance of simCode: created initialization part: time 0.008667/1.893, allocations: 6.199 MB / 0.7503 GB, free: 70.47 MB / 394.8 MB Notification: Performance of simCode: created event and clocks part: time 9.147e-06/1.893, allocations: 6.75 kB / 0.7503 GB, free: 70.47 MB / 394.8 MB Notification: Performance of simCode: created simulation system equations: time 0.005942/1.899, allocations: 4.787 MB / 0.755 GB, free: 68.54 MB / 394.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007204/1.906, allocations: 1.253 MB / 0.7562 GB, free: 68.52 MB / 394.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02264/1.929, allocations: 10.9 MB / 0.7669 GB, free: 66.07 MB / 394.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004395/1.933, allocations: 4.513 MB / 0.7713 GB, free: 65.17 MB / 394.8 MB Notification: Performance of simCode: alias equations: time 0.004699/1.938, allocations: 0.9793 MB / 0.7722 GB, free: 65.07 MB / 394.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001094/1.939, allocations: 276.8 kB / 0.7725 GB, free: 65.07 MB / 394.8 MB Notification: Performance of SimCode: time 1.302e-06/1.939, allocations: 0 / 0.7725 GB, free: 65.07 MB / 394.8 MB Notification: Performance of Templates: time 0.116/2.055, allocations: 74.05 MB / 0.8448 GB, free: 26.48 MB / 394.8 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe 2>&1)