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.001541/0.001541, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001819/0.001819, allocations: 193.2 kB / 16.14 MB, free: 6.707 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.407/1.407, allocations: 205.1 MB / 222 MB, free: 4.945 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.001137/0.001137, allocations: 48.41 kB / 278.1 MB, free: 13 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2178/0.2189, allocations: 46.63 MB / 324.7 MB, free: 1.828 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer): time 0.01706/0.236, allocations: 16.54 MB / 341.2 MB, free: 3.574 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01129/0.2474, allocations: 5.663 MB / 346.9 MB, free: 13.89 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003/0.2505, allocations: 91.56 kB / 347 MB, free: 13.8 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003533/0.254, allocations: 1.158 MB / 348.1 MB, free: 12.64 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006026/0.26, allocations: 1.636 MB / 349.8 MB, free: 11 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002412/0.2625, allocations: 0.9632 MB / 350.7 MB, free: 10.03 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.007852/0.2703, allocations: 6.939 MB / 357.7 MB, free: 3.062 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005503/0.2759, allocations: 4.417 MB / 362.1 MB, free: 14.56 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004844/0.2807, allocations: 2.364 MB / 364.5 MB, free: 12.19 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00499/0.2857, allocations: 3.105 MB / 367.6 MB, free: 9.074 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001028/0.2868, allocations: 464 kB / 368 MB, free: 8.621 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002629/0.2894, allocations: 0.7456 MB / 368.8 MB, free: 7.875 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001318/0.2908, allocations: 1.511 MB / 370.3 MB, free: 6.359 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003542/0.2943, allocations: 2.97 MB / 373.2 MB, free: 3.375 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009953/0.3043, allocations: 10.16 MB / 383.4 MB, free: 9.184 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.833e-06/0.3043, allocations: 0 / 383.4 MB, free: 9.184 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.3043, allocations: 4 kB / 383.4 MB, free: 9.18 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002789/0.3046, allocations: 0 / 383.4 MB, free: 9.18 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.01612/0.3208, allocations: 6.506 MB / 389.9 MB, free: 2.59 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.199e-05/0.3208, allocations: 12.03 kB / 389.9 MB, free: 2.578 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00483/0.3257, allocations: 1.056 MB / 391 MB, free: 1.516 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005817/0.3315, allocations: 3.33 MB / 394.3 MB, free: 14.11 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002598/0.3318, allocations: 377.7 kB / 394.7 MB, free: 13.74 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007579/0.3325, allocations: 483.9 kB / 395.2 MB, free: 13.27 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01183/0.3444, allocations: 6.865 MB / 402 MB, free: 6.32 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.882e-05/0.3445, allocations: 0 / 402 MB, free: 6.32 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004443/0.345, allocations: 204 kB / 402.2 MB, free: 6.121 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002217/0.3452, allocations: 237.8 kB / 402.5 MB, free: 5.887 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0103/0.3555, allocations: 5.929 MB / 408.4 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03134/0.3869, allocations: 20.94 MB / 429.3 MB, free: 10.57 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009031/0.3959, allocations: 9.968 MB / 439.3 MB, free: 15.58 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004065/0.4, allocations: 2.493 MB / 441.8 MB, free: 13.08 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0114/0.4115, allocations: 6.505 MB / 448.3 MB, free: 6.461 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.391e-05/0.4116, allocations: 60.56 kB / 448.3 MB, free: 6.391 MB / 382.1 MB Notification: Performance of pre-optimization done (n=219): time 4.628e-06/0.4116, allocations: 0 / 448.3 MB, free: 6.391 MB / 382.1 MB Notification: Performance of matching and sorting (n=226): time 0.2038/0.6154, allocations: 9.67 MB / 458 MB, free: 107.2 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.073e-05/0.6155, allocations: 74.66 kB / 458.1 MB, free: 107.1 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006535/0.622, allocations: 2.99 MB / 461.1 MB, free: 106 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003993/0.6225, allocations: 65.3 kB / 461.1 MB, free: 105.9 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001494/0.624, allocations: 2.159 MB / 463.3 MB, free: 104.3 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000715/0.6247, allocations: 0.7578 MB / 464.1 MB, free: 103.7 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008704/0.6256, allocations: 472.8 kB / 464.5 MB, free: 103.5 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.88e-05/0.6256, allocations: 304.9 kB / 464.8 MB, free: 103.2 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001732/0.6274, allocations: 1.293 MB / 466.1 MB, free: 102.7 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002001/0.6294, allocations: 1.923 MB / 468 MB, free: 101.5 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003926/0.6333, allocations: 3.341 MB / 471.4 MB, free: 99.59 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.817e-05/0.6334, allocations: 7.594 kB / 471.4 MB, free: 99.59 MB / 382.1 MB Notification: Performance of matching and sorting (n=328) (initialization): time 0.006478/0.6398, allocations: 4.244 MB / 475.6 MB, free: 97.77 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.758e-05/0.6399, allocations: 19.91 kB / 475.6 MB, free: 97.76 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.531e-05/0.6399, allocations: 20.47 kB / 475.7 MB, free: 97.76 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002597/0.6426, allocations: 0.7625 MB / 476.4 MB, free: 97.36 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002058/0.6446, allocations: 0.5683 MB / 477 MB, free: 97.21 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008066/0.6527, allocations: 10.04 MB / 487 MB, free: 86.97 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002467/0.6552, allocations: 107.9 kB / 487.1 MB, free: 86.86 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002875/0.6555, allocations: 107.9 kB / 487.2 MB, free: 86.76 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.002874/0.6584, allocations: 1.613 MB / 488.9 MB, free: 85.13 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009537/0.6593, allocations: 312.2 kB / 489.2 MB, free: 84.82 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005868/0.6652, allocations: 3.912 MB / 493.1 MB, free: 80.84 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.191e-05/0.6652, allocations: 20 kB / 493.1 MB, free: 80.82 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.182e-05/0.6653, allocations: 15.94 kB / 493.1 MB, free: 80.81 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.698e-05/0.6653, allocations: 15.25 kB / 493.1 MB, free: 80.8 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01432/0.6796, allocations: 8.566 MB / 0.4899 GB, free: 72.14 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.121e-05/0.6797, allocations: 0 / 0.4899 GB, free: 72.14 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001428/0.6811, allocations: 343.8 kB / 0.4903 GB, free: 71.8 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002769/0.6839, allocations: 0.9325 MB / 0.4912 GB, free: 70.86 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001787/0.6841, allocations: 59.97 kB / 0.4912 GB, free: 70.8 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01109/0.6952, allocations: 14.41 MB / 0.5053 GB, free: 55.62 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.6952, allocations: 0 / 0.5053 GB, free: 55.62 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007624/0.7029, allocations: 5.699 MB / 0.5109 GB, free: 49.82 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001671/0.7046, allocations: 0.6885 MB / 0.5115 GB, free: 49.11 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008583/0.7054, allocations: 51.98 kB / 0.5116 GB, free: 49.06 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001767/0.7072, allocations: 107.9 kB / 0.5117 GB, free: 48.96 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004625/0.7077, allocations: 193.7 kB / 0.5119 GB, free: 48.77 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001596/0.7078, allocations: 59.98 kB / 0.5119 GB, free: 48.71 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00318/0.711, allocations: 2.066 MB / 0.514 GB, free: 46.64 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.711, allocations: 0 / 0.514 GB, free: 46.64 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003414/0.7145, allocations: 0.9361 MB / 0.5149 GB, free: 45.71 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.0006626/0.7151, allocations: 258 kB / 0.5151 GB, free: 45.46 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005323/0.7205, allocations: 3.881 MB / 0.5189 GB, free: 41.52 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.97e-06/0.7205, allocations: 0 / 0.5189 GB, free: 41.52 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00338/0.7239, allocations: 2.638 MB / 0.5215 GB, free: 38.8 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004275/0.7282, allocations: 0.8686 MB / 0.5223 GB, free: 37.93 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01673/0.7449, allocations: 11.59 MB / 0.5336 GB, free: 26.3 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004049/0.749, allocations: 3.433 MB / 0.537 GB, free: 22.83 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002762/0.7518, allocations: 0.7526 MB / 0.5377 GB, free: 22.07 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007477/0.7526, allocations: 195.4 kB / 0.5379 GB, free: 21.88 MB / 382.1 MB Notification: Performance of SimCode: time 7.92e-07/0.7526, allocations: 0 / 0.5379 GB, free: 21.88 MB / 382.1 MB Notification: Performance of Templates: time 0.07773/0.8303, allocations: 49 MB / 0.5858 GB, free: 4.812 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)