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.001077/0.001077, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001111/0.001111, allocations: 194.8 kB / 16.25 MB, free: 6.621 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.339/1.339, allocations: 205.1 MB / 222.1 MB, free: 4.703 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.001164/0.001164, allocations: 51.92 kB / 278.2 MB, free: 12.68 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2109/0.2121, allocations: 46.63 MB / 324.9 MB, free: 1.945 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase): time 0.02623/0.2383, allocations: 27.45 MB / 352.3 MB, free: 8.559 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01642/0.2548, allocations: 7.618 MB / 359.9 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005381/0.2602, allocations: 163.2 kB / 360.1 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005875/0.2662, allocations: 1.644 MB / 361.7 MB, free: 15.1 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008874/0.2751, allocations: 2.382 MB / 364.1 MB, free: 12.71 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00536/0.2804, allocations: 1.552 MB / 365.7 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01745/0.2979, allocations: 12.88 MB / 378.5 MB, free: 14.21 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01596/0.3139, allocations: 10.97 MB / 389.5 MB, free: 3.137 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008566/0.3225, allocations: 5.635 MB / 395.1 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0102/0.3328, allocations: 6.714 MB / 401.9 MB, free: 6.746 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004428/0.3373, allocations: 1.66 MB / 403.5 MB, free: 5.086 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006856/0.3441, allocations: 1.871 MB / 405.4 MB, free: 3.215 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006566/0.3507, allocations: 3.791 MB / 409.2 MB, free: 15.41 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01421/0.365, allocations: 6.89 MB / 416.1 MB, free: 8.496 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02585/0.3909, allocations: 21.45 MB / 437.5 MB, free: 2.98 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.115e-06/0.3909, allocations: 0 / 437.5 MB, free: 2.98 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.3909, allocations: 0 / 437.5 MB, free: 2.98 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0007344/0.3917, allocations: 0 / 437.5 MB, free: 2.98 MB / 366.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.04062/0.4323, allocations: 13.16 MB / 450.7 MB, free: 5.699 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.522e-05/0.4324, allocations: 11.89 kB / 450.7 MB, free: 5.688 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01315/0.4455, allocations: 2.321 MB / 453 MB, free: 3.352 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3319/0.7775, allocations: 7.341 MB / 460.4 MB, free: 95.2 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009998/0.7785, allocations: 0.7437 MB / 461.1 MB, free: 94.86 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004817/0.7833, allocations: 0.9866 MB / 462.1 MB, free: 94.54 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03256/0.8159, allocations: 14.42 MB / 476.5 MB, free: 87.44 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002957/0.8163, allocations: 12.69 kB / 476.5 MB, free: 87.44 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002214/0.8185, allocations: 421.2 kB / 476.9 MB, free: 87.12 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003057/0.8188, allocations: 448.8 kB / 477.4 MB, free: 87.06 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02337/0.8422, allocations: 12.53 MB / 489.9 MB, free: 75.2 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07715/0.9194, allocations: 44.08 MB / 0.5215 GB, free: 30.9 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02038/0.9398, allocations: 25.07 MB / 0.5459 GB, free: 3.578 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00839/0.9482, allocations: 4.953 MB / 0.5508 GB, free: 14.62 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02648/0.9748, allocations: 12.17 MB / 0.5627 GB, free: 2.441 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.196e-05/0.9749, allocations: 93.7 kB / 0.5628 GB, free: 2.34 MB / 398.1 MB Notification: Performance of pre-optimization done (n=425): time 6.853e-06/0.9749, allocations: 0 / 0.5628 GB, free: 2.34 MB / 398.1 MB Notification: Performance of matching and sorting (n=431): time 0.05387/1.029, allocations: 21.95 MB / 0.5842 GB, free: 11.98 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.315e-05/1.029, allocations: 98.8 kB / 0.5843 GB, free: 11.88 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009714/1.039, allocations: 5.405 MB / 0.5896 GB, free: 6.488 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009053/1.04, allocations: 97.7 kB / 0.5897 GB, free: 6.387 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00367/1.043, allocations: 4.464 MB / 0.594 GB, free: 1.898 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001997/1.045, allocations: 1.432 MB / 0.5954 GB, free: 468 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001698/1.047, allocations: 0.8795 MB / 0.5963 GB, free: 15.57 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001432/1.047, allocations: 301.1 kB / 0.5966 GB, free: 15.27 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004425/1.052, allocations: 2.434 MB / 0.5989 GB, free: 12.83 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004804/1.056, allocations: 3.683 MB / 0.6025 GB, free: 8.617 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009602/1.066, allocations: 6.346 MB / 0.6087 GB, free: 1.75 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.383e-05/1.066, allocations: 15.94 kB / 0.6087 GB, free: 1.734 MB / 446.1 MB Notification: Performance of matching and sorting (n=634) (initialization): time 0.2166/1.283, allocations: 8.226 MB / 0.6168 GB, free: 143.8 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.038e-05/1.283, allocations: 24.22 kB / 0.6168 GB, free: 143.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.346e-05/1.283, allocations: 35.69 kB / 0.6168 GB, free: 143.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003325/1.286, allocations: 1.534 MB / 0.6183 GB, free: 143.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004238/1.29, allocations: 1.022 MB / 0.6193 GB, free: 143.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02052/1.311, allocations: 29.3 MB / 0.6479 GB, free: 119 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004516/1.316, allocations: 221.1 kB / 0.6482 GB, free: 118.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007982/1.316, allocations: 202.1 kB / 0.6484 GB, free: 118.8 MB / 446.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.006045/1.322, allocations: 3.296 MB / 0.6516 GB, free: 117.2 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001336/1.324, allocations: 0.5772 MB / 0.6521 GB, free: 117.2 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0112/1.335, allocations: 7.967 MB / 0.6599 GB, free: 113.7 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.362e-05/1.335, allocations: 42.66 kB / 0.66 GB, free: 113.7 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.038e-05/1.335, allocations: 25.34 kB / 0.66 GB, free: 113.7 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.251e-05/1.335, allocations: 25.23 kB / 0.66 GB, free: 113.7 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02372/1.359, allocations: 16.74 MB / 0.6763 GB, free: 98.12 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.888e-05/1.359, allocations: 0 / 0.6763 GB, free: 98.12 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002179/1.361, allocations: 464.1 kB / 0.6768 GB, free: 97.67 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004738/1.366, allocations: 2.364 MB / 0.6791 GB, free: 95.27 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005254/1.366, allocations: 95.97 kB / 0.6792 GB, free: 95.18 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02992/1.396, allocations: 38.08 MB / 0.7164 GB, free: 55.67 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.357e-06/1.396, allocations: 4 kB / 0.7164 GB, free: 55.67 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01534/1.412, allocations: 11.38 MB / 0.7275 GB, free: 44.22 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003342/1.415, allocations: 1.201 MB / 0.7287 GB, free: 43 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001427/1.417, allocations: 88.25 kB / 0.7288 GB, free: 42.91 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003486/1.42, allocations: 223.8 kB / 0.729 GB, free: 42.69 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001199/1.421, allocations: 426.9 kB / 0.7294 GB, free: 42.27 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002727/1.422, allocations: 119.9 kB / 0.7295 GB, free: 42.15 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005712/1.427, allocations: 3.69 MB / 0.7331 GB, free: 38.49 MB / 446.1 MB Notification: Performance of sort global known variables: time 7.31e-07/1.427, allocations: 0 / 0.7331 GB, free: 38.49 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.008372/1.436, allocations: 1.874 MB / 0.7349 GB, free: 36.62 MB / 446.1 MB 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.001026/1.437, allocations: 238.6 kB / 0.7352 GB, free: 36.38 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.02309/1.46, allocations: 12.28 MB / 0.7471 GB, free: 23.92 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.023e-05/1.46, allocations: 0 / 0.7471 GB, free: 23.92 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007471/1.467, allocations: 5.721 MB / 0.7527 GB, free: 18.04 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00737/1.475, allocations: 1.691 MB / 0.7544 GB, free: 16.35 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03429/1.509, allocations: 22.97 MB / 0.7768 GB, free: 9.367 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01061/1.52, allocations: 6.374 MB / 0.783 GB, free: 2.953 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.006171/1.526, allocations: 1.295 MB / 0.7843 GB, free: 1.652 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001698/1.528, allocations: 351.3 kB / 0.7846 GB, free: 1.309 MB / 462.1 MB Notification: Performance of SimCode: time 1.022e-06/1.528, allocations: 0 / 0.7846 GB, free: 1.309 MB / 462.1 MB Notification: Performance of Templates: time 0.3288/1.856, allocations: 99.01 MB / 0.8813 GB, free: 69.28 MB / 462.1 MB 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)