Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008055/0.008054, allocations: 104.7 kB / 15.74 MB, free: 6.484 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001764/0.001764, allocations: 193.5 kB / 16.67 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.544/1.544, allocations: 205.1 MB / 222.6 MB, free: 4.496 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00114/0.00114, allocations: 58.22 kB / 326.6 MB, free: 14.39 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08533/0.08648, allocations: 46.63 MB / 373.2 MB, free: 1.285 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase): time 0.02725/0.1138, allocations: 27.88 MB / 401.1 MB, free: 5.273 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0177/0.1315, allocations: 7.731 MB / 408.8 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004918/0.1365, allocations: 167.2 kB / 409 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005552/0.1421, allocations: 1.98 MB / 411 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009112/0.1512, allocations: 2.738 MB / 413.7 MB, free: 8.605 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006066/0.1573, allocations: 1.708 MB / 415.4 MB, free: 6.895 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01633/0.1737, allocations: 12.59 MB / 428 MB, free: 10.27 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01779/0.1915, allocations: 10.95 MB / 438.9 MB, free: 15.2 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008857/0.2004, allocations: 5.936 MB / 444.9 MB, free: 9.25 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0103/0.2107, allocations: 6.722 MB / 451.6 MB, free: 2.504 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004836/0.2156, allocations: 1.672 MB / 453.3 MB, free: 0.832 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1958/0.4114, allocations: 1.866 MB / 455.1 MB, free: 24.94 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006858/0.4183, allocations: 3.803 MB / 458.9 MB, free: 24.94 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01503/0.4333, allocations: 6.913 MB / 465.9 MB, free: 23.93 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02287/0.4562, allocations: 21.68 MB / 487.5 MB, free: 16.3 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.4563, allocations: 0 / 487.5 MB, free: 16.3 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.4563, allocations: 0.5 kB / 487.5 MB, free: 16.3 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0006679/0.457, allocations: 1.094 kB / 487.5 MB, free: 16.3 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2681 * Number of variables: 2681 Notification: Performance of Generate backend data structure: time 0.03556/0.4926, allocations: 13.18 MB / 0.489 GB, free: 7.914 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.844e-05/0.4926, allocations: 17.7 kB / 0.489 GB, free: 7.906 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01144/0.504, allocations: 2.315 MB / 0.4913 GB, free: 6.793 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01296/0.517, allocations: 7.538 MB / 0.4986 GB, free: 1.957 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004439/0.5175, allocations: 0.7479 MB / 0.4994 GB, free: 1.613 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00211/0.5196, allocations: 0.9891 MB / 0.5003 GB, free: 1.273 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02968/0.5493, allocations: 14.43 MB / 0.5144 GB, free: 3.371 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003619/0.5497, allocations: 7.562 kB / 0.5144 GB, free: 3.367 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002802/0.5525, allocations: 415.1 kB / 0.5148 GB, free: 2.965 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004515/0.553, allocations: 456.4 kB / 0.5153 GB, free: 2.516 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02931/0.5823, allocations: 12.52 MB / 0.5275 GB, free: 5.992 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0928/0.6752, allocations: 43.5 MB / 0.57 GB, free: 10.46 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0309/0.7061, allocations: 25.09 MB / 0.5945 GB, free: 15.13 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01226/0.7184, allocations: 4.891 MB / 0.5992 GB, free: 10.23 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03873/0.7572, allocations: 12.14 MB / 0.6111 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001006/0.7574, allocations: 85.84 kB / 0.6112 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=425): time 1.267e-05/0.7574, allocations: 0 / 0.6112 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of matching and sorting (n=431): time 0.06126/0.8187, allocations: 21.96 MB / 0.6326 GB, free: 7.762 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.691e-05/0.8188, allocations: 94.8 kB / 0.6327 GB, free: 7.656 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01352/0.8324, allocations: 5.401 MB / 0.638 GB, free: 2.277 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.001016/0.8334, allocations: 105.7 kB / 0.6381 GB, free: 2.168 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.2345/1.068, allocations: 4.455 MB / 0.6424 GB, free: 182.8 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001883/1.07, allocations: 1.436 MB / 0.6438 GB, free: 182.2 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001893/1.072, allocations: 0.879 MB / 0.6447 GB, free: 182.2 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 4.069e-05/1.072, allocations: 301.1 kB / 0.645 GB, free: 181.9 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003994/1.076, allocations: 2.432 MB / 0.6473 GB, free: 181.9 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005451/1.081, allocations: 3.683 MB / 0.6509 GB, free: 180.5 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009949/1.091, allocations: 6.345 MB / 0.6571 GB, free: 177.8 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.898e-05/1.091, allocations: 10.78 kB / 0.6572 GB, free: 177.8 MB / 0.5137 GB Notification: Performance of matching and sorting (n=634) (initialization): time 0.0129/1.104, allocations: 8.231 MB / 0.6652 GB, free: 174.2 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 4.745e-05/1.104, allocations: 26.56 kB / 0.6652 GB, free: 174.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.974e-05/1.104, allocations: 34.56 kB / 0.6652 GB, free: 174.2 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003323/1.108, allocations: 1.533 MB / 0.6667 GB, free: 173.6 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003932/1.112, allocations: 1.022 MB / 0.6677 GB, free: 173.5 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02099/1.133, allocations: 29.27 MB / 0.6963 GB, free: 148.4 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005817/1.139, allocations: 225.5 kB / 0.6965 GB, free: 148.2 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009568/1.14, allocations: 199.8 kB / 0.6967 GB, free: 148 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 166 * Number of states: 0 () * Number of discrete variables: 16 (idealCloser3.control[3],idealCloser3.control[2],idealCloser3.control[1],idealCloserM.control[5],idealCloserM.control[4],idealCloserM.control[3],idealCloserM.control[2],idealCloserM.control[1],rheostat3.booleanStep[3].y,rheostat3.booleanStep[2].y,rheostat3.booleanStep[1].y,rheostatM.booleanStep[5].y,rheostatM.booleanStep[4].y,rheostatM.booleanStep[3].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[1].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (546): * Single equations (assignments): 530 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 14 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 14 systems {(1,1,100.0%), (1,5,100.0%), (1,5,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (1,1,100.0%), (4,22,68.8%), (2,6,100.0%), (2,6,100.0%), (1,5,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006969/1.146, allocations: 3.301 MB / 0.7 GB, free: 145.2 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001606/1.148, allocations: 0.5789 MB / 0.7005 GB, free: 144.6 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01243/1.161, allocations: 7.971 MB / 0.7083 GB, free: 137.8 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.879e-05/1.161, allocations: 43.94 kB / 0.7084 GB, free: 137.7 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.114e-05/1.161, allocations: 28 kB / 0.7084 GB, free: 137.7 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.936e-05/1.161, allocations: 19.12 kB / 0.7084 GB, free: 137.7 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02492/1.186, allocations: 16.72 MB / 0.7247 GB, free: 121.4 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.512e-05/1.186, allocations: 4 kB / 0.7247 GB, free: 121.4 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002018/1.188, allocations: 473.3 kB / 0.7252 GB, free: 121 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004776/1.193, allocations: 2.342 MB / 0.7275 GB, free: 118.6 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002976/1.193, allocations: 99.97 kB / 0.7276 GB, free: 118.5 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0309/1.224, allocations: 38.05 MB / 0.7647 GB, free: 78.67 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/1.224, allocations: 11.22 kB / 0.7647 GB, free: 78.66 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0157/1.239, allocations: 11.37 MB / 0.7758 GB, free: 67.09 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002802/1.242, allocations: 1.197 MB / 0.777 GB, free: 65.87 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008999/1.243, allocations: 84 kB / 0.7771 GB, free: 65.79 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002534/1.246, allocations: 228.1 kB / 0.7773 GB, free: 65.57 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009535/1.247, allocations: 430.8 kB / 0.7777 GB, free: 65.14 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002538/1.247, allocations: 124 kB / 0.7778 GB, free: 65.02 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.004729/1.252, allocations: 3.69 MB / 0.7814 GB, free: 61.36 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.6e-07/1.252, allocations: 0 / 0.7814 GB, free: 61.36 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.005639/1.257, allocations: 1.87 MB / 0.7833 GB, free: 59.49 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 14 (aimsM.inertiaRotor.w,aimsM.stator.core.Phi.re,aimsM.stator.core.Phi.im,aimsM.rotor.zeroInductor.i0,aimsM.rotor.core.Phi.re,aimsM.rotor.core.Phi.im,aims3.inertiaRotor.w,aims3.stator.core.Phi.re,aims3.stator.core.Phi.im,aims3.rotor.zeroInductor.i0,aims3.rotor.core.Phi.re,aims3.rotor.core.Phi.im,quadraticLoadTorqueM.phi,quadraticLoadTorque3.phi) * Number of discrete variables: 16 (rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatM.booleanStep[4].y,rheostatM.booleanStep[5].y,rheostat3.booleanStep[1].y,rheostat3.booleanStep[2].y,rheostat3.booleanStep[3].y,idealCloserM.control[1],idealCloserM.control[2],idealCloserM.control[3],idealCloserM.control[4],idealCloserM.control[5],idealCloser3.control[1],idealCloser3.control[2],idealCloser3.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (245): * Single equations (assignments): 232 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 13 systems {(1,5,100.0%), (6,46,72.2%), (1,1,100.0%), (1,1,100.0%), (1,5,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (11,56,49.6%), (1,8,100.0%), (1,8,100.0%), (2,12,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005198/1.258, allocations: 254.4 kB / 0.7835 GB, free: 59.23 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.009417/1.267, allocations: 8.03 MB / 0.7913 GB, free: 51 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/1.267, allocations: 4 kB / 0.7913 GB, free: 50.99 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.006889/1.274, allocations: 5.724 MB / 0.7969 GB, free: 45.11 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007214/1.281, allocations: 1.68 MB / 0.7986 GB, free: 43.44 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03186/1.313, allocations: 18.49 MB / 0.8166 GB, free: 24.86 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006184/1.32, allocations: 6.371 MB / 0.8229 GB, free: 18.45 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004528/1.324, allocations: 1.299 MB / 0.8241 GB, free: 17.14 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009313/1.325, allocations: 351.4 kB / 0.8245 GB, free: 16.8 MB / 0.5137 GB Notification: Performance of SimCode: time 8.32e-07/1.325, allocations: 0 / 0.8245 GB, free: 16.8 MB / 0.5137 GB Notification: Performance of Templates: time 0.3683/1.693, allocations: 94.5 MB / 0.9167 GB, free: 111.1 MB / 0.5137 GB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.pipe 2>&1)