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_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.2.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.2.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.004901/0.004901, allocations: 101.1 kB / 15.73 MB, free: 6.051 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.001159/0.001169, allocations: 187.8 kB / 16.67 MB, free: 5.98 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.342/1.342, allocations: 205.1 MB / 222.5 MB, free: 4.387 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.0013/0.0013, allocations: 46.72 kB / 326.6 MB, free: 14.46 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09391/0.09522, allocations: 46.63 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.02834/0.1236, allocations: 27.88 MB / 401.1 MB, free: 5.281 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01656/0.1402, allocations: 7.738 MB / 408.8 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005149/0.1454, allocations: 167.2 kB / 409 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007072/0.1525, allocations: 1.98 MB / 411 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01009/0.1626, allocations: 2.734 MB / 413.7 MB, free: 8.613 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006133/0.1688, allocations: 1.716 MB / 415.4 MB, free: 6.895 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01575/0.1846, allocations: 12.58 MB / 428 MB, free: 10.27 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01718/0.2018, allocations: 10.95 MB / 438.9 MB, free: 15.21 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008739/0.2106, allocations: 5.936 MB / 444.9 MB, free: 9.254 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01087/0.2215, allocations: 6.722 MB / 451.6 MB, free: 2.508 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004282/0.2258, allocations: 1.668 MB / 453.3 MB, free: 0.8398 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1929/0.4187, allocations: 1.865 MB / 455.1 MB, free: 24.95 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005347/0.4241, allocations: 3.801 MB / 458.9 MB, free: 24.95 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01514/0.4393, allocations: 6.918 MB / 465.8 MB, free: 23.94 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0267/0.466, allocations: 21.68 MB / 487.5 MB, free: 16.29 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.749e-06/0.4661, allocations: 7 kB / 487.5 MB, free: 16.29 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.414e-06/0.4661, allocations: 0 / 487.5 MB, free: 16.29 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0006859/0.4668, allocations: 0 / 487.5 MB, free: 16.29 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.5023, allocations: 13.18 MB / 0.489 GB, free: 7.902 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.825e-05/0.5024, allocations: 13.08 kB / 0.489 GB, free: 7.898 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01144/0.5138, allocations: 2.319 MB / 0.4913 GB, free: 6.785 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01328/0.5271, allocations: 7.54 MB / 0.4986 GB, free: 1.945 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005265/0.5277, allocations: 0.741 MB / 0.4993 GB, free: 1.605 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002665/0.5304, allocations: 0.9912 MB / 0.5003 GB, free: 1.266 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03649/0.5669, allocations: 14.43 MB / 0.5144 GB, free: 3.41 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002807/0.5672, allocations: 7.281 kB / 0.5144 GB, free: 3.406 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002434/0.5696, allocations: 415.4 kB / 0.5148 GB, free: 3.004 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00042/0.5701, allocations: 456.4 kB / 0.5152 GB, free: 2.555 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02849/0.5986, allocations: 12.53 MB / 0.5275 GB, free: 6.027 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08511/0.6837, allocations: 43.48 MB / 0.5699 GB, free: 10.5 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02496/0.7087, allocations: 25.09 MB / 0.5944 GB, free: 15.17 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008666/0.7174, allocations: 4.889 MB / 0.5992 GB, free: 10.27 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02379/0.7413, allocations: 12.13 MB / 0.6111 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.051e-05/0.7414, allocations: 89.5 kB / 0.6111 GB, free: 14.06 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=425): time 5.991e-06/0.7414, allocations: 3.938 kB / 0.6112 GB, free: 14.06 MB / 0.4981 GB Notification: Performance of matching and sorting (n=431): time 0.04758/0.789, allocations: 21.96 MB / 0.6326 GB, free: 7.801 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.511e-05/0.7891, allocations: 94.8 kB / 0.6327 GB, free: 7.695 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008173/0.7973, allocations: 5.405 MB / 0.638 GB, free: 2.309 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0007789/0.7981, allocations: 97.7 kB / 0.6381 GB, free: 2.207 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.2101/1.008, allocations: 4.453 MB / 0.6424 GB, free: 183.1 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.00205/1.01, allocations: 1.44 MB / 0.6438 GB, free: 182.5 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001938/1.012, allocations: 0.8789 MB / 0.6447 GB, free: 182.4 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 3.954e-05/1.012, allocations: 302 kB / 0.645 GB, free: 182.1 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00393/1.016, allocations: 2.434 MB / 0.6473 GB, free: 182.1 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004821/1.021, allocations: 3.681 MB / 0.6509 GB, free: 180.7 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009028/1.03, allocations: 6.341 MB / 0.6571 GB, free: 178 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.212e-05/1.03, allocations: 11.47 kB / 0.6571 GB, free: 178 MB / 0.5137 GB Notification: Performance of matching and sorting (n=634) (initialization): time 0.01268/1.043, allocations: 8.237 MB / 0.6652 GB, free: 174.4 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 5.05e-05/1.043, allocations: 25.72 kB / 0.6652 GB, free: 174.4 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.316e-05/1.043, allocations: 35.69 kB / 0.6652 GB, free: 174.4 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003224/1.046, allocations: 1.536 MB / 0.6667 GB, free: 173.9 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004077/1.05, allocations: 1.021 MB / 0.6677 GB, free: 173.8 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02028/1.071, allocations: 29.27 MB / 0.6963 GB, free: 148.5 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005791/1.077, allocations: 222.1 kB / 0.6965 GB, free: 148.3 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008051/1.077, allocations: 200.7 kB / 0.6967 GB, free: 148.1 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.006569/1.084, allocations: 3.298 MB / 0.6999 GB, free: 145.2 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001454/1.085, allocations: 0.5789 MB / 0.7005 GB, free: 144.7 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01202/1.097, allocations: 7.967 MB / 0.7083 GB, free: 137.8 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.719e-05/1.097, allocations: 51.88 kB / 0.7083 GB, free: 137.8 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-05/1.098, allocations: 28 kB / 0.7084 GB, free: 137.7 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-05/1.098, allocations: 22.78 kB / 0.7084 GB, free: 137.7 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02619/1.124, allocations: 16.72 MB / 0.7247 GB, free: 121.5 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.454e-05/1.124, allocations: 4 kB / 0.7247 GB, free: 121.5 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002048/1.126, allocations: 463.7 kB / 0.7252 GB, free: 121 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004921/1.131, allocations: 2.343 MB / 0.7275 GB, free: 118.7 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003609/1.131, allocations: 95.97 kB / 0.7275 GB, free: 118.6 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03171/1.163, allocations: 38.07 MB / 0.7647 GB, free: 78.74 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/1.163, allocations: 7.938 kB / 0.7647 GB, free: 78.73 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01573/1.179, allocations: 11.36 MB / 0.7758 GB, free: 67.17 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003494/1.182, allocations: 1.197 MB / 0.777 GB, free: 65.95 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009336/1.183, allocations: 83.98 kB / 0.7771 GB, free: 65.86 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002557/1.186, allocations: 223.8 kB / 0.7773 GB, free: 65.64 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001087/1.187, allocations: 438.8 kB / 0.7777 GB, free: 65.21 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002418/1.187, allocations: 116 kB / 0.7778 GB, free: 65.1 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.004983/1.192, allocations: 3.686 MB / 0.7814 GB, free: 61.44 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.9e-07/1.192, allocations: 384 / 0.7814 GB, free: 61.44 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.006816/1.199, allocations: 1.87 MB / 0.7832 GB, free: 59.57 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.0007338/1.2, allocations: 259.3 kB / 0.7835 GB, free: 59.31 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0103/1.21, allocations: 8.024 MB / 0.7913 GB, free: 51.08 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 9.758e-06/1.21, allocations: 9.75 kB / 0.7913 GB, free: 51.07 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.007139/1.217, allocations: 5.728 MB / 0.7969 GB, free: 45.18 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008477/1.226, allocations: 1.701 MB / 0.7986 GB, free: 43.49 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0308/1.256, allocations: 18.48 MB / 0.8166 GB, free: 24.92 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006226/1.263, allocations: 6.368 MB / 0.8229 GB, free: 18.51 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004264/1.267, allocations: 1.299 MB / 0.8241 GB, free: 17.21 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009699/1.268, allocations: 347.4 kB / 0.8245 GB, free: 16.87 MB / 0.5137 GB Notification: Performance of SimCode: time 9.01e-07/1.268, allocations: 0 / 0.8245 GB, free: 16.87 MB / 0.5137 GB Notification: Performance of Templates: time 0.3682/1.636, allocations: 94.49 MB / 0.9167 GB, free: 111.2 MB / 0.5137 GB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.pipe 2>&1)