Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.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.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.000978/0.0009778, allocations: 92.16 kB / 15.06 MB, free: 1.098 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.0009775/0.0009776, allocations: 172.7 kB / 15.95 MB, free: 208 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.61/1.61, allocations: 205.4 MB / 222.1 MB, free: 5.527 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.0005023/0.0005023, allocations: 12 kB / 278.9 MB, free: 12.69 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2916/0.2921, allocations: 47.59 MB / 326.5 MB, free: 1.422 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer): time 0.01773/0.3098, allocations: 14.77 MB / 341.3 MB, free: 4.656 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01266/0.3225, allocations: 5.342 MB / 346.6 MB, free: 15.3 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002879/0.3255, allocations: 95.5 kB / 346.7 MB, free: 15.21 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00284/0.3283, allocations: 1.006 MB / 347.7 MB, free: 14.2 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0047/0.333, allocations: 1.492 MB / 349.2 MB, free: 12.7 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002087/0.3351, allocations: 0.6978 MB / 349.9 MB, free: 12 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.008944/0.3441, allocations: 6.397 MB / 356.3 MB, free: 5.57 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004886/0.349, allocations: 3.474 MB / 359.8 MB, free: 2.043 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00423/0.3532, allocations: 2.043 MB / 361.8 MB, free: 15.99 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005101/0.3584, allocations: 2.626 MB / 364.4 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001146/0.3595, allocations: 332 kB / 364.8 MB, free: 13.03 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002568/0.3621, allocations: 0.5544 MB / 365.3 MB, free: 12.48 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001494/0.3636, allocations: 1.296 MB / 366.6 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002138/0.3658, allocations: 1.14 MB / 367.7 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01016/0.3759, allocations: 8.567 MB / 376.3 MB, free: 1.438 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.376, allocations: 3.938 kB / 376.3 MB, free: 1.434 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.376, allocations: 4 kB / 376.3 MB, free: 1.43 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0003507/0.3763, allocations: 0 / 376.3 MB, free: 1.43 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.01797/0.3943, allocations: 5.543 MB / 381.9 MB, free: 11.8 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.118e-05/0.3944, allocations: 12.03 kB / 381.9 MB, free: 11.79 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00647/0.4009, allocations: 1.059 MB / 382.9 MB, free: 10.73 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00753/0.4084, allocations: 3.245 MB / 386.2 MB, free: 7.406 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003126/0.4087, allocations: 361.7 kB / 386.5 MB, free: 7.051 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001125/0.4099, allocations: 487.8 kB / 387 MB, free: 6.574 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0154/0.4253, allocations: 6.838 MB / 393.8 MB, free: 15.65 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001013/0.4255, allocations: 8 kB / 393.8 MB, free: 15.64 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004975/0.426, allocations: 200 kB / 394 MB, free: 15.45 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002348/0.4262, allocations: 241.8 kB / 394.3 MB, free: 15.21 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01223/0.4385, allocations: 5.918 MB / 400.2 MB, free: 9.285 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03961/0.4781, allocations: 21.02 MB / 421.2 MB, free: 3.824 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01044/0.4886, allocations: 9.968 MB / 431.2 MB, free: 8.832 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004204/0.4928, allocations: 2.509 MB / 433.7 MB, free: 6.316 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01315/0.506, allocations: 6.525 MB / 440.2 MB, free: 15.68 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.137e-05/0.5061, allocations: 60.5 kB / 440.3 MB, free: 15.61 MB / 382.1 MB Notification: Performance of pre-optimization done (n=219): time 5.64e-06/0.5061, allocations: 0 / 440.3 MB, free: 15.61 MB / 382.1 MB Notification: Performance of matching and sorting (n=226): time 0.02162/0.5278, allocations: 9.792 MB / 450.1 MB, free: 5.602 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.348e-05/0.5279, allocations: 77.41 kB / 450.2 MB, free: 5.516 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006267/0.5342, allocations: 2.972 MB / 453.1 MB, free: 2.527 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001801/0.5344, allocations: 61.7 kB / 453.2 MB, free: 2.461 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001892/0.5363, allocations: 2.156 MB / 455.3 MB, free: 288 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.2598/0.796, allocations: 0.7513 MB / 456.1 MB, free: 107.2 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002477/0.7963, allocations: 52.69 kB / 456.1 MB, free: 107.2 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000241/0.7966, allocations: 407.3 kB / 456.5 MB, free: 106.9 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00292/0.7995, allocations: 1.292 MB / 457.8 MB, free: 106.9 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002398/0.8019, allocations: 1.928 MB / 459.8 MB, free: 105.9 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002498/0.8044, allocations: 1.596 MB / 461.4 MB, free: 105.2 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.504e-05/0.8045, allocations: 5.125 kB / 461.4 MB, free: 105.2 MB / 382.1 MB Notification: Performance of matching and sorting (n=328) (initialization): time 0.007052/0.8115, allocations: 4.251 MB / 465.6 MB, free: 103.6 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.564e-05/0.8116, allocations: 11.5 kB / 465.6 MB, free: 103.6 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.093e-05/0.8116, allocations: 21.23 kB / 465.6 MB, free: 103.6 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002468/0.8141, allocations: 0.7712 MB / 466.4 MB, free: 103.3 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002073/0.8162, allocations: 0.5731 MB / 467 MB, free: 103.3 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00848/0.8247, allocations: 10.04 MB / 477 MB, free: 95.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002649/0.8273, allocations: 107.2 kB / 477.1 MB, free: 95.62 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002065/0.8276, allocations: 105.7 kB / 477.2 MB, free: 95.6 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.003257/0.8308, allocations: 1.615 MB / 478.9 MB, free: 94.78 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006902/0.8315, allocations: 311.9 kB / 479.2 MB, free: 94.69 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00591/0.8374, allocations: 3.927 MB / 483.1 MB, free: 91.23 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.725e-05/0.8375, allocations: 24 kB / 483.1 MB, free: 91.21 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.378e-05/0.8375, allocations: 8 kB / 483.1 MB, free: 91.2 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.972e-05/0.8375, allocations: 15.95 kB / 483.1 MB, free: 91.19 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01431/0.8519, allocations: 8.578 MB / 491.7 MB, free: 82.51 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.268e-06/0.8519, allocations: 0 / 491.7 MB, free: 82.51 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001407/0.8533, allocations: 351.8 kB / 492.1 MB, free: 82.16 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002699/0.8561, allocations: 0.9292 MB / 493 MB, free: 81.22 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001859/0.8563, allocations: 59.98 kB / 493 MB, free: 81.16 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01182/0.8681, allocations: 14.4 MB / 0.4956 GB, free: 66 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.639e-06/0.8681, allocations: 7.984 kB / 0.4956 GB, free: 65.99 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00842/0.8766, allocations: 5.706 MB / 0.5011 GB, free: 60.18 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00199/0.8786, allocations: 0.6846 MB / 0.5018 GB, free: 59.48 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001049/0.8797, allocations: 55.98 kB / 0.5019 GB, free: 59.42 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001922/0.8816, allocations: 123.9 kB / 0.502 GB, free: 59.3 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004402/0.882, allocations: 193.8 kB / 0.5022 GB, free: 59.11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001632/0.8822, allocations: 67.92 kB / 0.5022 GB, free: 59.05 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003949/0.8862, allocations: 2.038 MB / 0.5042 GB, free: 57.01 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.8862, allocations: 0 / 0.5042 GB, free: 57.01 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004436/0.8906, allocations: 0.9426 MB / 0.5051 GB, free: 56.07 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.0007226/0.8914, allocations: 217 kB / 0.5053 GB, free: 55.86 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006079/0.8975, allocations: 3.903 MB / 0.5091 GB, free: 51.89 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.045e-06/0.8975, allocations: 4.812 kB / 0.5092 GB, free: 51.89 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003638/0.9011, allocations: 2.646 MB / 0.5117 GB, free: 49.17 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006299/0.9075, allocations: 0.8826 MB / 0.5126 GB, free: 48.29 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02116/0.9286, allocations: 11.21 MB / 0.5235 GB, free: 37.02 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002756/0.9314, allocations: 3.428 MB / 0.5269 GB, free: 33.56 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002666/0.9341, allocations: 0.7565 MB / 0.5276 GB, free: 32.8 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005029/0.9346, allocations: 187.4 kB / 0.5278 GB, free: 32.61 MB / 382.1 MB Notification: Performance of SimCode: time 1.402e-06/0.9346, allocations: 0 / 0.5278 GB, free: 32.61 MB / 382.1 MB Notification: Performance of Templates: time 0.07839/1.013, allocations: 47.19 MB / 0.5739 GB, free: 1.355 MB / 398.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe 2>&1)