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.006881/0.006881, allocations: 104.8 kB / 15.73 MB, free: 6.039 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.001516/0.001516, allocations: 193 kB / 16.67 MB, free: 5.969 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.417/1.417, allocations: 205.1 MB / 222.5 MB, free: 4.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.001234/0.001234, allocations: 58.56 kB / 326.6 MB, free: 14.42 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09592/0.09717, allocations: 46.63 MB / 373.2 MB, free: 1.312 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer): time 0.01698/0.1142, allocations: 16.75 MB / 389.9 MB, free: 496 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01233/0.1266, allocations: 5.712 MB / 395.7 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004197/0.1309, allocations: 95.56 kB / 395.7 MB, free: 10.66 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004509/0.1354, allocations: 1.339 MB / 397.1 MB, free: 9.312 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006625/0.1421, allocations: 1.775 MB / 398.9 MB, free: 7.527 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002962/0.1451, allocations: 1.052 MB / 399.9 MB, free: 6.473 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.008081/0.1531, allocations: 6.323 MB / 406.2 MB, free: 128 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006261/0.1594, allocations: 5.284 MB / 411.5 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00537/0.1648, allocations: 2.932 MB / 414.4 MB, free: 7.812 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005591/0.1704, allocations: 3.339 MB / 417.8 MB, free: 4.461 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001849/0.1723, allocations: 0.7891 MB / 418.6 MB, free: 3.672 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003367/0.1757, allocations: 1.062 MB / 419.6 MB, free: 2.609 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002445/0.1782, allocations: 1.866 MB / 421.5 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007118/0.1853, allocations: 3.349 MB / 424.9 MB, free: 13.38 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01555/0.2009, allocations: 10.5 MB / 435.4 MB, free: 2.84 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.057e-05/0.2009, allocations: 3.984 kB / 435.4 MB, free: 2.836 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.201, allocations: 4 kB / 435.4 MB, free: 2.832 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000405/0.2014, allocations: 0 / 435.4 MB, free: 2.832 MB / 366.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.02911/0.2305, allocations: 6.506 MB / 441.9 MB, free: 12.24 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.719e-05/0.2306, allocations: 15.89 kB / 441.9 MB, free: 12.23 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009553/0.2402, allocations: 1.052 MB / 442.9 MB, free: 11.17 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01126/0.2514, allocations: 3.419 MB / 446.4 MB, free: 7.672 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004054/0.2519, allocations: 373.7 kB / 446.7 MB, free: 7.305 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0016/0.2535, allocations: 479.9 kB / 447.2 MB, free: 6.836 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2616/0.5151, allocations: 6.87 MB / 454.1 MB, free: 64.63 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003758/0.5155, allocations: 2.844 kB / 454.1 MB, free: 64.63 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001849/0.5174, allocations: 199.6 kB / 454.3 MB, free: 64.63 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004437/0.5178, allocations: 240.9 kB / 454.5 MB, free: 64.62 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01446/0.5323, allocations: 5.931 MB / 460.4 MB, free: 63.23 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03635/0.5687, allocations: 20.66 MB / 481.1 MB, free: 49.95 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008452/0.5772, allocations: 9.966 MB / 491.1 MB, free: 40.92 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00367/0.5809, allocations: 2.476 MB / 493.5 MB, free: 38.76 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01074/0.5917, allocations: 6.488 MB / 0.4883 GB, free: 32.24 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.028e-05/0.5918, allocations: 64.5 kB / 0.4884 GB, free: 32.17 MB / 382.1 MB Notification: Performance of pre-optimization done (n=219): time 3.837e-06/0.5918, allocations: 0 / 0.4884 GB, free: 32.17 MB / 382.1 MB Notification: Performance of matching and sorting (n=226): time 0.01658/0.6084, allocations: 9.682 MB / 0.4978 GB, free: 22.29 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.065e-05/0.6085, allocations: 73.41 kB / 0.4979 GB, free: 22.2 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004423/0.6129, allocations: 2.98 MB / 0.5008 GB, free: 19.2 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003881/0.6133, allocations: 65.7 kB / 0.5009 GB, free: 19.13 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001054/0.6144, allocations: 2.16 MB / 0.503 GB, free: 16.96 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005049/0.6149, allocations: 0.7615 MB / 0.5037 GB, free: 16.2 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006123/0.6155, allocations: 465 kB / 0.5042 GB, free: 15.74 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.523e-05/0.6156, allocations: 307.7 kB / 0.5044 GB, free: 15.44 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001643/0.6172, allocations: 1.296 MB / 0.5057 GB, free: 14.14 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001884/0.6191, allocations: 1.916 MB / 0.5076 GB, free: 11.97 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003566/0.6227, allocations: 3.356 MB / 0.5109 GB, free: 8.363 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.007e-05/0.6227, allocations: 4 kB / 0.5109 GB, free: 8.359 MB / 382.1 MB Notification: Performance of matching and sorting (n=328) (initialization): time 0.005921/0.6286, allocations: 4.241 MB / 0.515 GB, free: 4.074 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.011e-05/0.6287, allocations: 20.03 kB / 0.515 GB, free: 4.055 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.567e-05/0.6287, allocations: 20 kB / 0.515 GB, free: 4.035 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001945/0.6307, allocations: 0.7122 MB / 0.5157 GB, free: 3.312 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002116/0.6328, allocations: 0.5694 MB / 0.5163 GB, free: 2.742 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01049/0.6433, allocations: 10.89 MB / 0.5269 GB, free: 7.32 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002731/0.6461, allocations: 103.8 kB / 0.527 GB, free: 7.219 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003165/0.6464, allocations: 100 kB / 0.5271 GB, free: 7.121 MB / 398.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.002893/0.6493, allocations: 1.617 MB / 0.5287 GB, free: 5.492 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007202/0.65, allocations: 312.2 kB / 0.529 GB, free: 5.184 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006697/0.6567, allocations: 3.906 MB / 0.5328 GB, free: 1.211 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.85e-05/0.6568, allocations: 20 kB / 0.5328 GB, free: 1.191 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.678e-05/0.6568, allocations: 12 kB / 0.5328 GB, free: 1.18 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.04e-05/0.6568, allocations: 7.969 kB / 0.5329 GB, free: 1.172 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01427/0.6711, allocations: 8.565 MB / 0.5412 GB, free: 8.496 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.118e-05/0.6712, allocations: 4 kB / 0.5412 GB, free: 8.492 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001533/0.6727, allocations: 351.8 kB / 0.5416 GB, free: 8.148 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002679/0.6754, allocations: 0.8742 MB / 0.5424 GB, free: 7.258 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001707/0.6756, allocations: 51.98 kB / 0.5425 GB, free: 7.207 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01541/0.691, allocations: 15.69 MB / 0.5578 GB, free: 6.715 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.5e-06/0.691, allocations: 8 kB / 0.5578 GB, free: 6.707 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008996/0.7, allocations: 5.708 MB / 0.5634 GB, free: 0.9023 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001858/0.7019, allocations: 0.6807 MB / 0.564 GB, free: 204 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004585/0.7024, allocations: 59.98 kB / 0.5641 GB, free: 144 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001408/0.7038, allocations: 99.92 kB / 0.5642 GB, free: 44 kB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004915/0.7043, allocations: 201.7 kB / 0.5644 GB, free: 15.85 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001441/0.7045, allocations: 63.98 kB / 0.5644 GB, free: 15.79 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002949/0.7074, allocations: 2.062 MB / 0.5664 GB, free: 13.72 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.7075, allocations: 0 / 0.5664 GB, free: 13.72 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00311/0.7106, allocations: 0.9401 MB / 0.5674 GB, free: 12.79 MB / 446.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.0007022/0.7113, allocations: 258.4 kB / 0.5676 GB, free: 12.54 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005869/0.7172, allocations: 3.905 MB / 0.5714 GB, free: 8.559 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.4e-06/0.7172, allocations: 0 / 0.5714 GB, free: 8.559 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004243/0.7214, allocations: 2.633 MB / 0.574 GB, free: 5.859 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004426/0.7259, allocations: 0.903 MB / 0.5749 GB, free: 4.953 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01906/0.745, allocations: 9.413 MB / 0.5841 GB, free: 11.5 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00392/0.7489, allocations: 3.429 MB / 0.5874 GB, free: 8.035 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002581/0.7516, allocations: 0.7565 MB / 0.5882 GB, free: 7.273 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006287/0.7522, allocations: 195.4 kB / 0.5883 GB, free: 7.082 MB / 462.1 MB Notification: Performance of SimCode: time 8.52e-07/0.7522, allocations: 0 / 0.5883 GB, free: 7.082 MB / 462.1 MB Notification: Performance of Templates: time 0.2891/1.041, allocations: 48.88 MB / 0.6361 GB, free: 157.6 MB / 494.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)