Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001142/0.001142, allocations: 105.7 kB / 17.06 MB, free: 6.027 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.001281/0.001281, allocations: 196 kB / 17.99 MB, free: 5.109 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.358/1.358, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.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.001152/0.001152, allocations: 55.92 kB / 327.9 MB, free: 3.281 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09658/0.09775, allocations: 46.61 MB / 374.5 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer): time 0.248/0.3457, allocations: 16.75 MB / 391.2 MB, free: 3.473 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01314/0.3589, allocations: 5.726 MB / 397 MB, free: 15.31 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004943/0.364, allocations: 97.38 kB / 397.1 MB, free: 15.28 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004778/0.3688, allocations: 1.334 MB / 398.4 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009214/0.378, allocations: 1.77 MB / 400.2 MB, free: 13.42 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003978/0.382, allocations: 1.062 MB / 401.2 MB, free: 12.74 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01137/0.3934, allocations: 6.319 MB / 407.6 MB, free: 9.492 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01191/0.4053, allocations: 5.289 MB / 412.8 MB, free: 7.164 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007782/0.4131, allocations: 2.948 MB / 415.8 MB, free: 5.441 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007512/0.4207, allocations: 3.341 MB / 419.1 MB, free: 2.957 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00262/0.4233, allocations: 0.789 MB / 419.9 MB, free: 2.168 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004744/0.428, allocations: 1.062 MB / 421 MB, free: 1.105 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003468/0.4315, allocations: 1.866 MB / 422.8 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008396/0.4399, allocations: 3.342 MB / 426.2 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01568/0.4557, allocations: 10.52 MB / 436.7 MB, free: 1.332 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.4557, allocations: 0 / 436.7 MB, free: 1.332 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.4557, allocations: 0 / 436.7 MB, free: 1.332 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000292/0.456, allocations: 0 / 436.7 MB, free: 1.332 MB / 350.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.01731/0.4733, allocations: 6.522 MB / 443.2 MB, free: 10.73 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.108e-05/0.4734, allocations: 11.89 kB / 443.2 MB, free: 10.71 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004925/0.4783, allocations: 1.048 MB / 444.3 MB, free: 9.66 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00736/0.4857, allocations: 3.408 MB / 447.7 MB, free: 6.176 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003131/0.486, allocations: 369.7 kB / 448.1 MB, free: 5.812 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001154/0.4872, allocations: 495.8 kB / 448.5 MB, free: 5.328 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01296/0.5002, allocations: 6.865 MB / 455.4 MB, free: 14.38 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.637e-05/0.5003, allocations: 4 kB / 455.4 MB, free: 14.38 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004809/0.5008, allocations: 200 kB / 455.6 MB, free: 14.18 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002216/0.501, allocations: 241.8 kB / 455.8 MB, free: 13.95 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01177/0.5128, allocations: 5.926 MB / 461.8 MB, free: 8.008 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03635/0.5492, allocations: 20.67 MB / 482.4 MB, free: 2.902 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009437/0.5587, allocations: 9.96 MB / 492.4 MB, free: 7.906 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003789/0.5625, allocations: 2.481 MB / 494.9 MB, free: 5.422 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0117/0.5742, allocations: 6.482 MB / 0.4896 GB, free: 14.82 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.533e-05/0.5743, allocations: 64.5 kB / 0.4897 GB, free: 14.75 MB / 430.1 MB Notification: Performance of pre-optimization done (n=219): time 3.506e-06/0.5743, allocations: 0 / 0.4897 GB, free: 14.75 MB / 430.1 MB Notification: Performance of matching and sorting (n=226): time 0.01807/0.5924, allocations: 9.675 MB / 0.4991 GB, free: 4.863 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.785e-05/0.5925, allocations: 77.41 kB / 0.4992 GB, free: 4.773 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004636/0.5972, allocations: 2.988 MB / 0.5021 GB, free: 1.77 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001798/0.5974, allocations: 65.7 kB / 0.5022 GB, free: 1.699 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00149/0.5988, allocations: 2.16 MB / 0.5043 GB, free: 15.52 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005699/0.5994, allocations: 0.7624 MB / 0.505 GB, free: 14.74 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006801/0.6001, allocations: 465 kB / 0.5055 GB, free: 14.28 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000142/0.6003, allocations: 305.1 kB / 0.5058 GB, free: 13.98 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002006/0.6023, allocations: 1.293 MB / 0.507 GB, free: 12.68 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00243/0.6047, allocations: 1.912 MB / 0.5089 GB, free: 10.51 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004462/0.6092, allocations: 3.352 MB / 0.5122 GB, free: 6.906 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.044e-05/0.6092, allocations: 11.94 kB / 0.5122 GB, free: 6.895 MB / 446.1 MB Notification: Performance of matching and sorting (n=328) (initialization): time 0.007002/0.6162, allocations: 4.241 MB / 0.5163 GB, free: 2.609 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.98e-05/0.6163, allocations: 15.94 kB / 0.5163 GB, free: 2.594 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.965e-05/0.6163, allocations: 20 kB / 0.5164 GB, free: 2.574 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002167/0.6185, allocations: 0.7161 MB / 0.5171 GB, free: 1.844 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002225/0.6207, allocations: 0.5655 MB / 0.5176 GB, free: 1.277 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0106/0.6313, allocations: 10.88 MB / 0.5282 GB, free: 5.836 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0023/0.6337, allocations: 104 kB / 0.5283 GB, free: 5.734 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001803/0.6338, allocations: 104 kB / 0.5284 GB, free: 5.633 MB / 462.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.002658/0.6365, allocations: 1.621 MB / 0.53 GB, free: 4 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005172/0.637, allocations: 316.2 kB / 0.5303 GB, free: 3.688 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006205/0.6433, allocations: 3.906 MB / 0.5341 GB, free: 15.71 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.456e-05/0.6433, allocations: 20 kB / 0.5341 GB, free: 15.7 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.276e-05/0.6433, allocations: 12 kB / 0.5342 GB, free: 15.68 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-05/0.6433, allocations: 7.969 kB / 0.5342 GB, free: 15.68 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01318/0.6565, allocations: 8.567 MB / 0.5425 GB, free: 6.953 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.287e-05/0.6566, allocations: 8.188 kB / 0.5425 GB, free: 6.945 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001489/0.6581, allocations: 339.6 kB / 0.5429 GB, free: 6.613 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0026/0.6607, allocations: 0.8797 MB / 0.5437 GB, free: 5.715 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001459/0.6608, allocations: 55.98 kB / 0.5438 GB, free: 5.66 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2135/0.8743, allocations: 15.68 MB / 0.5591 GB, free: 140.8 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.788e-06/0.8744, allocations: 3.672 kB / 0.5591 GB, free: 140.8 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009256/0.8836, allocations: 5.695 MB / 0.5647 GB, free: 138.4 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001838/0.8855, allocations: 0.69 MB / 0.5653 GB, free: 138.1 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003501/0.8859, allocations: 53.86 kB / 0.5654 GB, free: 138.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00138/0.8873, allocations: 109.7 kB / 0.5655 GB, free: 138 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00046/0.8877, allocations: 187.4 kB / 0.5657 GB, free: 138 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001473/0.8879, allocations: 59.88 kB / 0.5657 GB, free: 138 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003408/0.8913, allocations: 2.061 MB / 0.5677 GB, free: 137.2 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.8913, allocations: 3.938 kB / 0.5677 GB, free: 137.2 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003766/0.8951, allocations: 0.9421 MB / 0.5687 GB, free: 137.1 MB / 478.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.0007243/0.8958, allocations: 266.1 kB / 0.5689 GB, free: 137 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006308/0.9021, allocations: 3.906 MB / 0.5727 GB, free: 135.2 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/0.9022, allocations: 1.281 kB / 0.5727 GB, free: 135.2 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003936/0.9061, allocations: 2.634 MB / 0.5753 GB, free: 133.8 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003723/0.9098, allocations: 0.9177 MB / 0.5762 GB, free: 133.5 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01309/0.9229, allocations: 9.395 MB / 0.5854 GB, free: 129.1 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002522/0.9255, allocations: 3.425 MB / 0.5887 GB, free: 127.8 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002016/0.9275, allocations: 0.7642 MB / 0.5895 GB, free: 127.7 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005201/0.928, allocations: 200.8 kB / 0.5897 GB, free: 127.6 MB / 478.1 MB Notification: Performance of SimCode: time 6.71e-07/0.928, allocations: 0 / 0.5897 GB, free: 127.6 MB / 478.1 MB Notification: Performance of Templates: time 0.06364/0.9917, allocations: 49.54 MB / 0.638 GB, free: 80.08 MB / 478.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe 2>&1)