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.001325/0.001325, allocations: 91.12 kB / 15.06 MB, free: 1.078 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.001643/0.001643, allocations: 176.7 kB / 15.95 MB, free: 192 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.4/1.4, allocations: 205.4 MB / 222.1 MB, free: 5.887 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.0004634/0.0004636, allocations: 14.81 kB / 278.9 MB, free: 13.05 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2448/0.2453, allocations: 47.58 MB / 326.5 MB, free: 1.395 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer): time 0.01521/0.2605, allocations: 14.77 MB / 341.2 MB, free: 4.727 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01144/0.272, allocations: 5.342 MB / 346.6 MB, free: 15.37 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003125/0.2752, allocations: 91.56 kB / 346.7 MB, free: 15.28 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003538/0.2787, allocations: 1.01 MB / 347.7 MB, free: 14.27 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006036/0.2848, allocations: 1.496 MB / 349.2 MB, free: 12.76 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00267/0.2875, allocations: 0.7056 MB / 349.9 MB, free: 12.05 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.009892/0.2974, allocations: 6.397 MB / 356.3 MB, free: 5.629 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006602/0.304, allocations: 3.47 MB / 359.8 MB, free: 2.105 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003763/0.3078, allocations: 2.035 MB / 361.8 MB, free: 64 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004764/0.3126, allocations: 2.63 MB / 364.4 MB, free: 13.42 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001344/0.314, allocations: 332 kB / 364.7 MB, free: 13.09 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002663/0.3166, allocations: 0.5583 MB / 365.3 MB, free: 12.54 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001588/0.3182, allocations: 1.296 MB / 366.6 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001704/0.32, allocations: 1.143 MB / 367.7 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009744/0.3297, allocations: 8.57 MB / 376.3 MB, free: 1.492 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.3297, allocations: 4 kB / 376.3 MB, free: 1.488 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.248e-06/0.3298, allocations: 0 / 376.3 MB, free: 1.488 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002941/0.3301, allocations: 3.938 kB / 376.3 MB, free: 1.484 MB / 302.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.01405/0.3441, allocations: 5.532 MB / 381.9 MB, free: 11.87 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.764e-05/0.3442, allocations: 8.031 kB / 381.9 MB, free: 11.86 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005523/0.3497, allocations: 1.071 MB / 382.9 MB, free: 10.79 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006401/0.3561, allocations: 3.241 MB / 386.2 MB, free: 7.469 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002901/0.3564, allocations: 369.7 kB / 386.5 MB, free: 7.105 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007794/0.3572, allocations: 479.8 kB / 387 MB, free: 6.637 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01245/0.3697, allocations: 6.846 MB / 393.8 MB, free: 15.71 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.611e-05/0.3698, allocations: 3.984 kB / 393.9 MB, free: 15.71 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000439/0.3703, allocations: 200 kB / 394 MB, free: 15.51 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002184/0.3705, allocations: 237.8 kB / 394.3 MB, free: 15.28 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01016/0.3807, allocations: 5.922 MB / 400.2 MB, free: 9.344 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03271/0.4134, allocations: 21.02 MB / 421.2 MB, free: 3.887 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009847/0.4233, allocations: 9.976 MB / 431.2 MB, free: 8.883 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003928/0.4272, allocations: 2.505 MB / 433.7 MB, free: 6.375 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01169/0.4389, allocations: 6.521 MB / 440.2 MB, free: 15.73 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.342e-05/0.439, allocations: 60.56 kB / 440.3 MB, free: 15.66 MB / 382.1 MB Notification: Performance of pre-optimization done (n=219): time 3.757e-06/0.439, allocations: 4 kB / 440.3 MB, free: 15.66 MB / 382.1 MB Notification: Performance of matching and sorting (n=226): time 0.0186/0.4576, allocations: 9.796 MB / 450.1 MB, free: 5.656 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.995e-05/0.4577, allocations: 77.39 kB / 450.2 MB, free: 5.57 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005559/0.4633, allocations: 2.961 MB / 453.1 MB, free: 2.594 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002465/0.4636, allocations: 65.7 kB / 453.2 MB, free: 2.523 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001605/0.4652, allocations: 2.16 MB / 455.3 MB, free: 348 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.177/0.6422, allocations: 0.7555 MB / 456.1 MB, free: 107.2 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002311/0.6425, allocations: 51.38 kB / 456.1 MB, free: 107.2 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002704/0.6428, allocations: 408.2 kB / 456.5 MB, free: 106.9 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002885/0.6457, allocations: 1.298 MB / 457.8 MB, free: 106.9 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002624/0.6483, allocations: 1.918 MB / 459.8 MB, free: 105.9 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002456/0.6508, allocations: 1.603 MB / 461.4 MB, free: 105.2 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.337e-05/0.6508, allocations: 4.656 kB / 461.4 MB, free: 105.2 MB / 382.1 MB Notification: Performance of matching and sorting (n=328) (initialization): time 0.006611/0.6574, allocations: 4.25 MB / 465.6 MB, free: 103.6 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.954e-05/0.6575, allocations: 12.31 kB / 465.6 MB, free: 103.6 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.689e-05/0.6575, allocations: 20.89 kB / 465.7 MB, free: 103.6 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002431/0.6599, allocations: 0.7665 MB / 466.4 MB, free: 103.3 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00201/0.662, allocations: 0.5674 MB / 467 MB, free: 103.3 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007894/0.6699, allocations: 10.04 MB / 477 MB, free: 95.67 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001656/0.6715, allocations: 116.4 kB / 477.1 MB, free: 95.63 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001535/0.6717, allocations: 102.4 kB / 477.2 MB, free: 95.61 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 (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 initialization (278): * Single equations (assignments): 273 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,100.0%) 25,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002281/0.674, allocations: 1.608 MB / 478.9 MB, free: 94.79 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003706/0.6744, allocations: 314.8 kB / 479.2 MB, free: 94.73 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00522/0.6796, allocations: 3.922 MB / 483.1 MB, free: 91.28 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-05/0.6796, allocations: 27.61 kB / 483.1 MB, free: 91.25 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.165e-05/0.6796, allocations: 8 kB / 483.1 MB, free: 91.25 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.619e-05/0.6797, allocations: 11.95 kB / 483.1 MB, free: 91.23 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009924/0.6896, allocations: 8.573 MB / 491.7 MB, free: 82.56 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.194e-06/0.6896, allocations: 4 kB / 491.7 MB, free: 82.55 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001342/0.691, allocations: 355.8 kB / 492.1 MB, free: 82.21 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002516/0.6935, allocations: 0.9344 MB / 493 MB, free: 81.26 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001262/0.6936, allocations: 55.98 kB / 493 MB, free: 81.2 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01107/0.7047, allocations: 14.41 MB / 0.4956 GB, free: 66.04 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/0.7047, allocations: 7.953 kB / 0.4956 GB, free: 66.03 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007324/0.7121, allocations: 5.694 MB / 0.5011 GB, free: 60.23 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001457/0.7135, allocations: 0.6885 MB / 0.5018 GB, free: 59.52 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007802/0.7143, allocations: 52 kB / 0.5018 GB, free: 59.47 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001544/0.7159, allocations: 127.9 kB / 0.502 GB, free: 59.35 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003571/0.7163, allocations: 185.8 kB / 0.5021 GB, free: 59.17 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001531/0.7164, allocations: 67.81 kB / 0.5022 GB, free: 59.11 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003007/0.7194, allocations: 2.038 MB / 0.5042 GB, free: 57.07 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.7194, allocations: 0 / 0.5042 GB, free: 57.07 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003127/0.7226, allocations: 0.9379 MB / 0.5051 GB, free: 56.13 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 (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 8,(2,100.0%) 26,(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005458/0.7231, allocations: 232.4 kB / 0.5053 GB, free: 55.91 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005068/0.7282, allocations: 3.904 MB / 0.5091 GB, free: 51.94 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.558e-06/0.7282, allocations: 4 kB / 0.5092 GB, free: 51.94 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003232/0.7315, allocations: 2.647 MB / 0.5117 GB, free: 49.22 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003813/0.7353, allocations: 0.8881 MB / 0.5126 GB, free: 48.33 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01514/0.7504, allocations: 11.2 MB / 0.5235 GB, free: 37.08 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003431/0.7539, allocations: 3.429 MB / 0.5269 GB, free: 33.61 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002598/0.7565, allocations: 0.7604 MB / 0.5276 GB, free: 32.85 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006918/0.7572, allocations: 195.4 kB / 0.5278 GB, free: 32.66 MB / 382.1 MB Notification: Performance of SimCode: time 9.32e-07/0.7572, allocations: 0 / 0.5278 GB, free: 32.66 MB / 382.1 MB Notification: Performance of Templates: time 0.07367/0.8309, allocations: 47.18 MB / 0.5739 GB, free: 1.406 MB / 398.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)