Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.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.AIMC_Transformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001068/0.001068, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.008338/0.008338, allocations: 169 kB / 16.26 MB, free: 6.66 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.36/1.36, allocations: 205.4 MB / 222.4 MB, free: 5.559 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.0004478/0.0004478, allocations: 15.98 kB / 279.5 MB, free: 12.5 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.225/0.2254, allocations: 47.57 MB / 327 MB, free: 1.609 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer): time 0.01653/0.242, allocations: 15.81 MB / 342.8 MB, free: 3.652 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01419/0.2562, allocations: 5.593 MB / 348.4 MB, free: 14.04 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004958/0.2612, allocations: 91.56 kB / 348.5 MB, free: 13.95 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004764/0.266, allocations: 1.158 MB / 349.7 MB, free: 12.79 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007866/0.2739, allocations: 1.632 MB / 351.3 MB, free: 11.15 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003412/0.2774, allocations: 0.9593 MB / 352.3 MB, free: 10.19 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01048/0.2879, allocations: 6.912 MB / 359.2 MB, free: 3.246 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007345/0.2952, allocations: 4.386 MB / 363.6 MB, free: 14.77 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005088/0.3003, allocations: 2.074 MB / 365.6 MB, free: 12.7 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005123/0.3055, allocations: 2.738 MB / 368.4 MB, free: 9.945 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001462/0.307, allocations: 328 kB / 368.7 MB, free: 9.625 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002719/0.3097, allocations: 0.6245 MB / 369.3 MB, free: 9 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002061/0.3118, allocations: 1.308 MB / 370.6 MB, free: 7.688 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004259/0.316, allocations: 2.761 MB / 373.4 MB, free: 4.906 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01183/0.3279, allocations: 9.83 MB / 383.2 MB, free: 11.04 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.3279, allocations: 0 / 383.2 MB, free: 11.04 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.3279, allocations: 0 / 383.2 MB, free: 11.04 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0004022/0.3284, allocations: 0 / 383.2 MB, free: 11.04 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1287 * Number of variables: 1287 Notification: Performance of Generate backend data structure: time 0.01637/0.3447, allocations: 5.481 MB / 388.7 MB, free: 5.48 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.116e-05/0.3448, allocations: 11.97 kB / 388.7 MB, free: 5.469 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005993/0.3508, allocations: 1.068 MB / 389.8 MB, free: 4.395 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007685/0.3585, allocations: 3.326 MB / 393.1 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004102/0.359, allocations: 373.7 kB / 393.5 MB, free: 0.625 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001251/0.3602, allocations: 483.8 kB / 394 MB, free: 156 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01298/0.3732, allocations: 6.877 MB / 400.8 MB, free: 9.195 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.573e-05/0.3734, allocations: 11.89 kB / 400.8 MB, free: 9.184 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004709/0.3738, allocations: 196 kB / 401 MB, free: 8.992 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002205/0.3741, allocations: 241.8 kB / 401.3 MB, free: 8.754 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01122/0.3853, allocations: 5.957 MB / 407.2 MB, free: 2.785 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04005/0.4254, allocations: 21.06 MB / 428.3 MB, free: 13.29 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01064/0.4361, allocations: 9.976 MB / 438.3 MB, free: 2.285 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004032/0.4401, allocations: 2.505 MB / 440.8 MB, free: 15.77 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01146/0.4516, allocations: 6.521 MB / 447.3 MB, free: 9.141 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.124e-05/0.4517, allocations: 64.5 kB / 447.3 MB, free: 9.066 MB / 382.1 MB Notification: Performance of pre-optimization done (n=219): time 4.799e-06/0.4518, allocations: 0 / 447.3 MB, free: 9.066 MB / 382.1 MB Notification: Performance of matching and sorting (n=226): time 0.2111/0.6628, allocations: 9.766 MB / 457.1 MB, free: 106.8 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.922e-05/0.6629, allocations: 78.62 kB / 457.2 MB, free: 106.8 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004793/0.6677, allocations: 2.993 MB / 460.2 MB, free: 105.9 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003725/0.6681, allocations: 62.39 kB / 460.2 MB, free: 105.9 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001337/0.6695, allocations: 2.158 MB / 462.4 MB, free: 104.9 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006147/0.6701, allocations: 0.7601 MB / 463.2 MB, free: 104.3 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002832/0.6704, allocations: 215.2 kB / 463.4 MB, free: 104.2 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.119e-05/0.6704, allocations: 305 kB / 463.7 MB, free: 103.9 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001949/0.6724, allocations: 1.309 MB / 465 MB, free: 103.4 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00195/0.6743, allocations: 1.925 MB / 466.9 MB, free: 102.2 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003753/0.6781, allocations: 3.376 MB / 470.3 MB, free: 100.3 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.024e-05/0.6781, allocations: 3.906 kB / 470.3 MB, free: 100.3 MB / 382.1 MB Notification: Performance of matching and sorting (n=328) (initialization): time 0.005933/0.6841, allocations: 4.278 MB / 474.6 MB, free: 98.49 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.663e-05/0.6841, allocations: 10.97 kB / 474.6 MB, free: 98.49 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.355e-05/0.6841, allocations: 19.25 kB / 474.6 MB, free: 98.49 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002346/0.6865, allocations: 0.7707 MB / 475.4 MB, free: 98.26 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001989/0.6885, allocations: 0.5706 MB / 475.9 MB, free: 98.12 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008404/0.6969, allocations: 10.04 MB / 486 MB, free: 89.08 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00209/0.699, allocations: 107.9 kB / 486.1 MB, free: 88.97 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001505/0.6992, allocations: 104 kB / 486.2 MB, free: 88.87 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 82 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep2[3].y,booleanStep2[2].y,booleanStep2[1].y,idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (278): * Single equations (assignments): 273 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(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): 4 systems {(3,25,77.8%), (1,8,100.0%), (1,1,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002374/0.7016, allocations: 1.617 MB / 487.8 MB, free: 87.25 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004738/0.7021, allocations: 312.2 kB / 488.1 MB, free: 86.94 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005355/0.7074, allocations: 3.937 MB / 492 MB, free: 82.93 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.512e-05/0.7074, allocations: 31.83 kB / 492.1 MB, free: 82.91 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.32e-05/0.7075, allocations: 8.875 kB / 492.1 MB, free: 82.9 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.697e-05/0.7075, allocations: 11.95 kB / 492.1 MB, free: 82.89 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01051/0.718, allocations: 8.598 MB / 0.489 GB, free: 74.2 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.246e-06/0.718, allocations: 4 kB / 0.489 GB, free: 74.19 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001358/0.7194, allocations: 347.8 kB / 0.4893 GB, free: 73.85 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002734/0.7222, allocations: 0.9306 MB / 0.4902 GB, free: 72.91 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001377/0.7223, allocations: 65.61 kB / 0.4903 GB, free: 72.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01102/0.7333, allocations: 14.43 MB / 0.5044 GB, free: 57.64 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/0.7334, allocations: 12.05 kB / 0.5044 GB, free: 57.63 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00735/0.7407, allocations: 5.728 MB / 0.51 GB, free: 51.8 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001344/0.7421, allocations: 0.6885 MB / 0.5106 GB, free: 51.09 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003716/0.7425, allocations: 55.98 kB / 0.5107 GB, free: 51.04 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001358/0.7438, allocations: 119.9 kB / 0.5108 GB, free: 50.92 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000387/0.7442, allocations: 189.7 kB / 0.511 GB, free: 50.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001206/0.7444, allocations: 63.91 kB / 0.511 GB, free: 50.68 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002475/0.7468, allocations: 2.07 MB / 0.5131 GB, free: 48.61 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.7469, allocations: 0 / 0.5131 GB, free: 48.61 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002689/0.7496, allocations: 0.9402 MB / 0.514 GB, free: 47.67 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 9 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (156): * Single equations (assignments): 150 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,8,100.0%), (2,26,100.0%), (1,1,100.0%), (1,13,100.0%), (1,8,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.0006151/0.7502, allocations: 247.8 kB / 0.5142 GB, free: 47.43 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004758/0.755, allocations: 3.911 MB / 0.518 GB, free: 43.45 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.755, allocations: 4 kB / 0.518 GB, free: 43.45 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003178/0.7582, allocations: 2.651 MB / 0.5206 GB, free: 40.72 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004049/0.7622, allocations: 0.8683 MB / 0.5215 GB, free: 39.85 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01445/0.7767, allocations: 11.74 MB / 0.533 GB, free: 28.05 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002464/0.7792, allocations: 3.426 MB / 0.5363 GB, free: 24.59 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002403/0.7816, allocations: 0.7604 MB / 0.537 GB, free: 23.83 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005087/0.7821, allocations: 187.4 kB / 0.5372 GB, free: 23.64 MB / 382.1 MB Notification: Performance of SimCode: time 1.512e-06/0.7821, allocations: 0 / 0.5372 GB, free: 23.64 MB / 382.1 MB Notification: Performance of Templates: time 0.07732/0.8594, allocations: 48.36 MB / 0.5844 GB, free: 7.215 MB / 414.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe 2>&1)