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_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.2_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.2_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.001314/0.001314, allocations: 110 kB / 17.06 MB, free: 6.023 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.001282/0.001282, allocations: 191 kB / 18 MB, free: 5.105 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.332/1.332, allocations: 205.1 MB / 223.9 MB, free: 12.28 MB / 190.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.001147/0.001147, allocations: 55.92 kB / 327.9 MB, free: 3.277 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08434/0.08549, allocations: 46.62 MB / 374.5 MB, free: 4.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase): time 0.1863/0.2718, allocations: 27.89 MB / 402.4 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01987/0.2917, allocations: 7.732 MB / 410.1 MB, free: 5.625 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007759/0.2995, allocations: 170.8 kB / 410.3 MB, free: 5.578 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006219/0.3058, allocations: 1.911 MB / 412.2 MB, free: 4.527 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009999/0.3158, allocations: 2.638 MB / 414.9 MB, free: 2.504 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005111/0.321, allocations: 1.708 MB / 416.6 MB, free: 1.078 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01616/0.3371, allocations: 12.57 MB / 429.1 MB, free: 8.961 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01409/0.3513, allocations: 10.97 MB / 440.1 MB, free: 13.89 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01294/0.3642, allocations: 5.889 MB / 446 MB, free: 7.988 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0126/0.3769, allocations: 6.722 MB / 452.7 MB, free: 1.242 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004997/0.3819, allocations: 1.672 MB / 454.4 MB, free: 15.57 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007069/0.389, allocations: 1.871 MB / 456.3 MB, free: 13.7 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006147/0.3952, allocations: 3.799 MB / 460.1 MB, free: 9.891 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01263/0.4079, allocations: 6.917 MB / 467 MB, free: 2.945 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02835/0.4363, allocations: 21.68 MB / 488.6 MB, free: 13.21 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.4363, allocations: 0 / 488.6 MB, free: 13.21 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.4364, allocations: 4 kB / 488.6 MB, free: 13.2 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0006675/0.437, allocations: 0 / 488.6 MB, free: 13.2 MB / 414.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.04157/0.4786, allocations: 13.19 MB / 0.4901 GB, free: 15.89 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.678e-05/0.4787, allocations: 11.89 kB / 0.4901 GB, free: 15.88 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01426/0.493, allocations: 2.317 MB / 0.4923 GB, free: 13.55 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01966/0.5126, allocations: 7.541 MB / 0.4997 GB, free: 5.918 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008341/0.5135, allocations: 0.7429 MB / 0.5004 GB, free: 5.172 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003524/0.5171, allocations: 0.9883 MB / 0.5014 GB, free: 4.184 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0368/0.5539, allocations: 14.42 MB / 0.5155 GB, free: 5.617 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004703/0.5544, allocations: 15.92 kB / 0.5155 GB, free: 5.602 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00379/0.5582, allocations: 416 kB / 0.5159 GB, free: 5.195 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005787/0.5588, allocations: 452.4 kB / 0.5163 GB, free: 4.75 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02974/0.5885, allocations: 12.53 MB / 0.5286 GB, free: 8.199 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4365/1.025, allocations: 43.48 MB / 0.571 GB, free: 117.2 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02464/1.05, allocations: 25.09 MB / 0.5955 GB, free: 96.39 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009974/1.06, allocations: 4.895 MB / 0.6003 GB, free: 94.55 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02558/1.085, allocations: 12.14 MB / 0.6122 GB, free: 89.01 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.981e-05/1.085, allocations: 82.66 kB / 0.6122 GB, free: 88.94 MB / 478.1 MB Notification: Performance of pre-optimization done (n=425): time 6.132e-06/1.085, allocations: 0 / 0.6122 GB, free: 88.94 MB / 478.1 MB Notification: Performance of matching and sorting (n=431): time 0.05134/1.137, allocations: 21.96 MB / 0.6337 GB, free: 75.09 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.774e-05/1.137, allocations: 102.3 kB / 0.6338 GB, free: 74.98 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008735/1.146, allocations: 5.39 MB / 0.639 GB, free: 69.61 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008721/1.147, allocations: 105.7 kB / 0.6391 GB, free: 69.5 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002139/1.149, allocations: 4.457 MB / 0.6435 GB, free: 65.02 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001265/1.15, allocations: 1.434 MB / 0.6449 GB, free: 63.59 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001212/1.151, allocations: 0.8795 MB / 0.6458 GB, free: 62.7 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 4.6e-05/1.151, allocations: 313.1 kB / 0.6461 GB, free: 62.39 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00329/1.155, allocations: 2.426 MB / 0.6484 GB, free: 59.96 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003827/1.158, allocations: 3.693 MB / 0.652 GB, free: 55.75 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007436/1.166, allocations: 6.331 MB / 0.6582 GB, free: 48.89 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.518e-05/1.166, allocations: 8 kB / 0.6582 GB, free: 48.89 MB / 478.1 MB Notification: Performance of matching and sorting (n=634) (initialization): time 0.012/1.178, allocations: 8.239 MB / 0.6663 GB, free: 40.52 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.44e-05/1.178, allocations: 20 kB / 0.6663 GB, free: 40.5 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.111e-05/1.178, allocations: 40 kB / 0.6663 GB, free: 40.46 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003166/1.181, allocations: 1.533 MB / 0.6678 GB, free: 38.89 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004191/1.185, allocations: 1.03 MB / 0.6688 GB, free: 37.86 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01968/1.205, allocations: 29.29 MB / 0.6974 GB, free: 6.641 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005781/1.211, allocations: 219.8 kB / 0.6976 GB, free: 6.426 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006407/1.212, allocations: 203.9 kB / 0.6978 GB, free: 6.227 MB / 478.1 MB 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.006093/1.218, allocations: 3.293 MB / 0.701 GB, free: 2.918 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001186/1.219, allocations: 0.575 MB / 0.7016 GB, free: 2.336 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01369/1.233, allocations: 7.977 MB / 0.7094 GB, free: 10.21 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.333e-05/1.233, allocations: 40 kB / 0.7094 GB, free: 10.18 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.303e-05/1.233, allocations: 28 kB / 0.7095 GB, free: 10.15 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.593e-05/1.233, allocations: 19.92 kB / 0.7095 GB, free: 10.13 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03115/1.264, allocations: 16.73 MB / 0.7258 GB, free: 9.227 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.942e-05/1.264, allocations: 4 kB / 0.7258 GB, free: 9.223 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002338/1.266, allocations: 463.7 kB / 0.7263 GB, free: 8.77 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00584/1.272, allocations: 2.351 MB / 0.7286 GB, free: 6.387 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005103/1.273, allocations: 99.97 kB / 0.7287 GB, free: 6.289 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2434/1.516, allocations: 38.05 MB / 0.7658 GB, free: 159.2 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.37e-06/1.516, allocations: 2.844 kB / 0.7658 GB, free: 159.2 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01911/1.535, allocations: 11.37 MB / 0.7769 GB, free: 154.5 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003856/1.539, allocations: 1.192 MB / 0.7781 GB, free: 154.1 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001623/1.541, allocations: 88.81 kB / 0.7782 GB, free: 154 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003309/1.544, allocations: 224.2 kB / 0.7784 GB, free: 154 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001333/1.546, allocations: 428.8 kB / 0.7788 GB, free: 153.9 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003285/1.546, allocations: 115.1 kB / 0.7789 GB, free: 153.9 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.006387/1.552, allocations: 3.688 MB / 0.7825 GB, free: 152.5 MB / 0.5138 GB Notification: Performance of sort global known variables: time 3.21e-07/1.552, allocations: 0 / 0.7825 GB, free: 152.5 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.008271/1.561, allocations: 1.871 MB / 0.7843 GB, free: 152.4 MB / 0.5138 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.000968/1.562, allocations: 252.1 kB / 0.7846 GB, free: 152.2 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01115/1.573, allocations: 8.037 MB / 0.7924 GB, free: 148.1 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 9.839e-06/1.573, allocations: 3.188 kB / 0.7924 GB, free: 148.1 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.007872/1.581, allocations: 5.725 MB / 0.798 GB, free: 145 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008453/1.589, allocations: 1.699 MB / 0.7997 GB, free: 144.4 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03067/1.62, allocations: 18.48 MB / 0.8177 GB, free: 129.8 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006978/1.627, allocations: 6.377 MB / 0.8239 GB, free: 124.3 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.004116/1.631, allocations: 1.301 MB / 0.8252 GB, free: 123 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001051/1.632, allocations: 347.4 kB / 0.8255 GB, free: 122.7 MB / 0.5138 GB Notification: Performance of SimCode: time 1.172e-06/1.632, allocations: 0 / 0.8255 GB, free: 122.7 MB / 0.5138 GB Notification: Performance of Templates: time 0.1355/1.768, allocations: 94.52 MB / 0.9178 GB, free: 28.18 MB / 0.5138 GB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.pipe 2>&1)