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.001465/0.001465, 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.001762/0.001762, allocations: 193 kB / 16.25 MB, free: 6.617 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.346/1.346, allocations: 205.1 MB / 222.1 MB, free: 4.621 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.001398/0.001399, allocations: 55.92 kB / 278.2 MB, free: 12.51 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.245/0.2464, allocations: 46.63 MB / 324.9 MB, free: 2.074 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer): time 0.01625/0.2627, allocations: 16.55 MB / 341.4 MB, free: 3.457 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01029/0.273, allocations: 5.631 MB / 347 MB, free: 13.81 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002847/0.276, allocations: 91.56 kB / 347.1 MB, free: 13.72 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002974/0.279, allocations: 1.166 MB / 348.3 MB, free: 12.55 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004802/0.2838, allocations: 1.624 MB / 349.9 MB, free: 10.91 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002198/0.286, allocations: 0.9631 MB / 350.9 MB, free: 9.949 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.007863/0.2939, allocations: 6.444 MB / 357.3 MB, free: 3.477 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006187/0.3001, allocations: 5.272 MB / 362.6 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005603/0.3057, allocations: 2.847 MB / 365.4 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004323/0.3101, allocations: 3.339 MB / 368.8 MB, free: 7.914 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001116/0.3112, allocations: 0.7891 MB / 369.6 MB, free: 7.125 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002179/0.3134, allocations: 1.07 MB / 370.6 MB, free: 6.055 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001397/0.3148, allocations: 1.858 MB / 372.5 MB, free: 4.191 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003566/0.3184, allocations: 3.338 MB / 375.8 MB, free: 0.8398 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01145/0.3298, allocations: 10.42 MB / 386.3 MB, free: 6.387 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.085e-06/0.3299, allocations: 0 / 386.3 MB, free: 6.387 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.3299, allocations: 0 / 386.3 MB, free: 6.387 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003152/0.3302, allocations: 0 / 386.3 MB, free: 6.387 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.01758/0.3478, allocations: 6.502 MB / 392.8 MB, free: 15.8 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.688e-05/0.3479, allocations: 11.89 kB / 392.8 MB, free: 15.79 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005349/0.3532, allocations: 1.06 MB / 393.8 MB, free: 14.72 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006363/0.3596, allocations: 3.338 MB / 397.2 MB, free: 11.31 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002873/0.3599, allocations: 365.7 kB / 397.5 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009501/0.3609, allocations: 487.9 kB / 398 MB, free: 10.47 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01463/0.3755, allocations: 6.865 MB / 404.9 MB, free: 3.527 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001615/0.3757, allocations: 0 / 404.9 MB, free: 3.527 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001305/0.377, allocations: 208 kB / 405.1 MB, free: 3.324 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002903/0.3773, allocations: 237.8 kB / 405.3 MB, free: 3.09 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01306/0.3904, allocations: 5.926 MB / 411.2 MB, free: 13.15 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03876/0.4292, allocations: 20.94 MB / 432.2 MB, free: 7.777 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01015/0.4394, allocations: 9.964 MB / 442.1 MB, free: 12.79 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004248/0.4437, allocations: 2.494 MB / 444.6 MB, free: 10.29 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01197/0.4557, allocations: 6.505 MB / 451.1 MB, free: 3.672 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.891e-05/0.4558, allocations: 56.56 kB / 451.2 MB, free: 3.605 MB / 382.1 MB Notification: Performance of pre-optimization done (n=219): time 3.757e-06/0.4558, allocations: 0 / 451.2 MB, free: 3.605 MB / 382.1 MB Notification: Performance of matching and sorting (n=226): time 0.1691/0.6249, allocations: 9.679 MB / 460.9 MB, free: 106.6 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.87e-05/0.6249, allocations: 76.98 kB / 460.9 MB, free: 106.5 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004155/0.6291, allocations: 2.994 MB / 463.9 MB, free: 105.4 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002342/0.6294, allocations: 61.58 kB / 464 MB, free: 105.4 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001086/0.6305, allocations: 2.155 MB / 466.1 MB, free: 103.7 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004994/0.631, allocations: 0.7633 MB / 466.9 MB, free: 103.1 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00062/0.6316, allocations: 462.2 kB / 467.4 MB, free: 102.9 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.242e-05/0.6316, allocations: 310 kB / 467.7 MB, free: 102.6 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001636/0.6333, allocations: 1.291 MB / 468.9 MB, free: 102.1 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001968/0.6353, allocations: 1.926 MB / 470.9 MB, free: 100.9 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003467/0.6387, allocations: 3.345 MB / 474.2 MB, free: 99 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.174e-05/0.6388, allocations: 3.719 kB / 474.2 MB, free: 99 MB / 382.1 MB Notification: Performance of matching and sorting (n=328) (initialization): time 0.00581/0.6446, allocations: 4.248 MB / 478.5 MB, free: 96.23 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.014e-05/0.6446, allocations: 12 kB / 478.5 MB, free: 96.21 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.75e-05/0.6447, allocations: 20 kB / 478.5 MB, free: 96.2 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002398/0.6471, allocations: 0.7745 MB / 479.3 MB, free: 95.41 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002092/0.6492, allocations: 0.5695 MB / 479.8 MB, free: 94.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008239/0.6574, allocations: 10.88 MB / 490.7 MB, free: 83.43 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002826/0.6603, allocations: 115.9 kB / 490.8 MB, free: 83.32 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003403/0.6607, allocations: 104 kB / 490.9 MB, free: 83.21 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.003135/0.6638, allocations: 1.607 MB / 492.5 MB, free: 81.6 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009064/0.6647, allocations: 320.2 kB / 492.9 MB, free: 81.29 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005464/0.6702, allocations: 3.913 MB / 496.8 MB, free: 77.31 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.802e-05/0.6702, allocations: 20 kB / 496.8 MB, free: 77.29 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.396e-05/0.6703, allocations: 12 kB / 496.8 MB, free: 77.28 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.099e-05/0.6703, allocations: 11.95 kB / 496.8 MB, free: 77.27 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0129/0.6832, allocations: 8.582 MB / 0.4935 GB, free: 68.59 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.221e-05/0.6832, allocations: 3.688 kB / 0.4936 GB, free: 68.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001457/0.6847, allocations: 347.8 kB / 0.4939 GB, free: 68.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002883/0.6876, allocations: 0.9286 MB / 0.4948 GB, free: 67.31 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001846/0.6878, allocations: 55.98 kB / 0.4948 GB, free: 67.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01233/0.7002, allocations: 15.69 MB / 0.5102 GB, free: 50.77 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.507e-06/0.7002, allocations: 4.031 kB / 0.5102 GB, free: 50.77 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007546/0.7078, allocations: 5.695 MB / 0.5157 GB, free: 44.98 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00179/0.7096, allocations: 0.6848 MB / 0.5164 GB, free: 44.27 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007698/0.7104, allocations: 55.98 kB / 0.5165 GB, free: 44.21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001558/0.7119, allocations: 111.9 kB / 0.5166 GB, free: 44.11 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004612/0.7124, allocations: 193.7 kB / 0.5167 GB, free: 43.91 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001325/0.7125, allocations: 67.59 kB / 0.5168 GB, free: 43.85 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002495/0.715, allocations: 2.062 MB / 0.5188 GB, free: 41.79 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.7151, allocations: 0 / 0.5188 GB, free: 41.79 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002957/0.718, allocations: 0.9363 MB / 0.5197 GB, free: 40.86 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.0005906/0.7186, allocations: 266.3 kB / 0.52 GB, free: 40.6 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.008868/0.7275, allocations: 5.373 MB / 0.5252 GB, free: 35.18 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.602e-06/0.7275, allocations: 0 / 0.5252 GB, free: 35.18 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003222/0.7308, allocations: 2.628 MB / 0.5278 GB, free: 32.48 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004126/0.7349, allocations: 0.912 MB / 0.5287 GB, free: 31.56 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01578/0.7507, allocations: 11.59 MB / 0.54 GB, free: 19.94 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002859/0.7536, allocations: 3.432 MB / 0.5434 GB, free: 16.48 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002552/0.7562, allocations: 0.7526 MB / 0.5441 GB, free: 15.72 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005052/0.7567, allocations: 199.4 kB / 0.5443 GB, free: 15.52 MB / 382.1 MB Notification: Performance of SimCode: time 1.183e-06/0.7567, allocations: 0 / 0.5443 GB, free: 15.52 MB / 382.1 MB Notification: Performance of Templates: time 0.0849/0.8416, allocations: 50.78 MB / 0.5939 GB, free: 12.68 MB / 430.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)