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.005113/0.005113, allocations: 102.7 kB / 15.73 MB, free: 6.031 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.00111/0.00111, allocations: 190.7 kB / 16.67 MB, free: 5.953 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.486/1.486, allocations: 205.1 MB / 222.6 MB, free: 4.484 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.001159/0.001159, allocations: 54.62 kB / 326.6 MB, free: 14.4 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09197/0.09314, allocations: 46.62 MB / 373.2 MB, free: 1.289 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase): time 0.02761/0.1208, allocations: 27.89 MB / 401.1 MB, free: 5.27 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01624/0.1371, allocations: 7.731 MB / 408.8 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005493/0.1426, allocations: 171.2 kB / 409 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006534/0.1492, allocations: 1.972 MB / 411 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01104/0.1603, allocations: 2.738 MB / 413.7 MB, free: 8.609 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005484/0.1658, allocations: 1.719 MB / 415.4 MB, free: 6.887 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01523/0.1811, allocations: 12.59 MB / 428 MB, free: 10.25 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01299/0.1941, allocations: 10.94 MB / 438.9 MB, free: 15.2 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008891/0.203, allocations: 5.94 MB / 444.9 MB, free: 9.246 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009678/0.2127, allocations: 6.726 MB / 451.6 MB, free: 2.496 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003176/0.2159, allocations: 1.672 MB / 453.3 MB, free: 0.8242 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1927/0.4086, allocations: 1.863 MB / 455.1 MB, free: 24.89 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00678/0.4155, allocations: 3.802 MB / 458.9 MB, free: 24.89 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01524/0.4307, allocations: 6.911 MB / 465.9 MB, free: 23.88 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02336/0.4541, allocations: 21.69 MB / 487.5 MB, free: 16.18 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.4542, allocations: 0 / 487.5 MB, free: 16.18 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.4542, allocations: 0.5 kB / 487.5 MB, free: 16.18 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0006005/0.4548, allocations: 1.156 kB / 487.5 MB, free: 16.18 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.03852/0.4933, allocations: 13.19 MB / 0.489 GB, free: 7.797 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.132e-05/0.4934, allocations: 18.11 kB / 0.489 GB, free: 7.789 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01231/0.5057, allocations: 2.313 MB / 0.4913 GB, free: 6.676 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01494/0.5207, allocations: 7.54 MB / 0.4986 GB, free: 1.836 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000535/0.5212, allocations: 0.7411 MB / 0.4994 GB, free: 1.496 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002715/0.524, allocations: 0.9879 MB / 0.5003 GB, free: 1.16 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03273/0.5567, allocations: 14.43 MB / 0.5144 GB, free: 3.309 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003132/0.5571, allocations: 13.44 kB / 0.5144 GB, free: 3.301 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002295/0.5594, allocations: 415.7 kB / 0.5148 GB, free: 2.898 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004007/0.5598, allocations: 452.4 kB / 0.5153 GB, free: 2.453 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02639/0.5862, allocations: 12.53 MB / 0.5275 GB, free: 5.926 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07867/0.6649, allocations: 43.49 MB / 0.57 GB, free: 10.39 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0246/0.6895, allocations: 25.09 MB / 0.5945 GB, free: 15.06 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00868/0.6982, allocations: 4.887 MB / 0.5992 GB, free: 10.16 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02745/0.7257, allocations: 12.14 MB / 0.6111 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.517e-05/0.7258, allocations: 89.78 kB / 0.6112 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=425): time 5.951e-06/0.7259, allocations: 0 / 0.6112 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of matching and sorting (n=431): time 0.0507/0.7766, allocations: 21.95 MB / 0.6326 GB, free: 7.695 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.245e-05/0.7767, allocations: 94.8 kB / 0.6327 GB, free: 7.59 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01101/0.7877, allocations: 5.403 MB / 0.638 GB, free: 2.207 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0007135/0.7884, allocations: 101.7 kB / 0.6381 GB, free: 2.102 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.205/0.9934, allocations: 4.453 MB / 0.6424 GB, free: 182.9 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.002047/0.9955, allocations: 1.441 MB / 0.6438 GB, free: 182.3 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001863/0.9973, allocations: 0.8791 MB / 0.6447 GB, free: 182.2 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 4.036e-05/0.9974, allocations: 302.2 kB / 0.645 GB, free: 181.9 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003894/1.001, allocations: 2.43 MB / 0.6473 GB, free: 181.9 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004906/1.006, allocations: 3.687 MB / 0.6509 GB, free: 180.5 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008594/1.015, allocations: 6.343 MB / 0.6571 GB, free: 177.7 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.964e-05/1.015, allocations: 15.06 kB / 0.6571 GB, free: 177.7 MB / 0.5137 GB Notification: Performance of matching and sorting (n=634) (initialization): time 0.01303/1.028, allocations: 8.23 MB / 0.6652 GB, free: 174.2 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 5.429e-05/1.028, allocations: 24.12 kB / 0.6652 GB, free: 174.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.351e-05/1.028, allocations: 39.47 kB / 0.6652 GB, free: 174.2 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003414/1.032, allocations: 1.539 MB / 0.6667 GB, free: 173.6 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004046/1.036, allocations: 1.021 MB / 0.6677 GB, free: 173.5 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02152/1.057, allocations: 29.27 MB / 0.6963 GB, free: 148.3 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005703/1.063, allocations: 217.3 kB / 0.6965 GB, free: 148.1 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001041/1.064, allocations: 203.8 kB / 0.6967 GB, free: 147.9 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.006201/1.07, allocations: 3.3 MB / 0.7 GB, free: 145.1 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001236/1.071, allocations: 0.5828 MB / 0.7005 GB, free: 144.5 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01158/1.083, allocations: 7.967 MB / 0.7083 GB, free: 137.7 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.449e-05/1.083, allocations: 43.94 kB / 0.7083 GB, free: 137.6 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.505e-05/1.083, allocations: 28 kB / 0.7084 GB, free: 137.6 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.604e-05/1.083, allocations: 25.27 kB / 0.7084 GB, free: 137.6 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02556/1.109, allocations: 16.73 MB / 0.7247 GB, free: 121.3 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.729e-05/1.109, allocations: 4 kB / 0.7247 GB, free: 121.3 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00203/1.111, allocations: 463.6 kB / 0.7252 GB, free: 120.9 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005247/1.116, allocations: 2.336 MB / 0.7275 GB, free: 118.5 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004656/1.117, allocations: 104 kB / 0.7276 GB, free: 118.4 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03159/1.148, allocations: 38.06 MB / 0.7647 GB, free: 78.59 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/1.148, allocations: 4 kB / 0.7647 GB, free: 78.58 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01533/1.164, allocations: 11.37 MB / 0.7758 GB, free: 67.01 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003106/1.167, allocations: 1.197 MB / 0.777 GB, free: 65.79 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009908/1.168, allocations: 83.98 kB / 0.7771 GB, free: 65.71 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002465/1.17, allocations: 223.8 kB / 0.7773 GB, free: 65.49 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009693/1.171, allocations: 430.8 kB / 0.7777 GB, free: 65.07 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002517/1.171, allocations: 116 kB / 0.7778 GB, free: 64.95 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.005224/1.177, allocations: 3.69 MB / 0.7814 GB, free: 61.29 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.7e-07/1.177, allocations: 3.938 kB / 0.7814 GB, free: 61.29 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.008426/1.185, allocations: 1.874 MB / 0.7832 GB, free: 59.41 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.0008366/1.186, allocations: 250.8 kB / 0.7835 GB, free: 59.16 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01059/1.197, allocations: 8.033 MB / 0.7913 GB, free: 50.92 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.025e-05/1.197, allocations: 4 kB / 0.7913 GB, free: 50.91 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.007752/1.204, allocations: 5.724 MB / 0.7969 GB, free: 45.04 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008183/1.213, allocations: 1.69 MB / 0.7986 GB, free: 43.35 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03037/1.243, allocations: 18.49 MB / 0.8166 GB, free: 24.78 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007286/1.25, allocations: 6.371 MB / 0.8229 GB, free: 18.36 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004191/1.255, allocations: 1.299 MB / 0.8241 GB, free: 17.06 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009748/1.256, allocations: 351.3 kB / 0.8245 GB, free: 16.71 MB / 0.5137 GB Notification: Performance of SimCode: time 7.11e-07/1.256, allocations: 0 / 0.8245 GB, free: 16.71 MB / 0.5137 GB Notification: Performance of Templates: time 0.3457/1.601, allocations: 94.5 MB / 0.9167 GB, free: 111 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)