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.007117/0.007117, allocations: 98.03 kB / 15.73 MB, free: 6.012 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.001651/0.001652, allocations: 194.3 kB / 16.67 MB, free: 5.926 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.422/1.422, allocations: 205.1 MB / 222.5 MB, free: 4.488 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.001157/0.001157, allocations: 53.73 kB / 326.6 MB, free: 14.54 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09508/0.09625, allocations: 46.63 MB / 373.2 MB, free: 1.406 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer): time 0.01791/0.1142, allocations: 16.75 MB / 389.9 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01099/0.1252, allocations: 5.72 MB / 395.7 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003078/0.1284, allocations: 95.56 kB / 395.8 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004377/0.1328, allocations: 1.332 MB / 397.1 MB, free: 9.406 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006212/0.139, allocations: 1.775 MB / 398.9 MB, free: 7.621 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003243/0.1423, allocations: 1.056 MB / 399.9 MB, free: 6.562 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.009478/0.1518, allocations: 6.319 MB / 406.2 MB, free: 224 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007997/0.1598, allocations: 5.284 MB / 411.5 MB, free: 10.85 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005905/0.1658, allocations: 2.932 MB / 414.4 MB, free: 7.906 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005937/0.1717, allocations: 3.343 MB / 417.8 MB, free: 4.551 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002385/0.1741, allocations: 0.7852 MB / 418.6 MB, free: 3.766 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003775/0.1779, allocations: 1.058 MB / 419.6 MB, free: 2.707 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002749/0.1807, allocations: 1.874 MB / 421.5 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006035/0.1867, allocations: 3.345 MB / 424.9 MB, free: 13.46 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01384/0.2006, allocations: 10.54 MB / 435.4 MB, free: 2.891 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.874e-06/0.2006, allocations: 0 / 435.4 MB, free: 2.891 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.993e-06/0.2006, allocations: 0 / 435.4 MB, free: 2.891 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003097/0.201, allocations: 0 / 435.4 MB, free: 2.891 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.01856/0.2195, allocations: 6.66 MB / 442.1 MB, free: 12.14 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.247e-05/0.2196, allocations: 11.89 kB / 442.1 MB, free: 12.13 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005612/0.2252, allocations: 1.083 MB / 443.2 MB, free: 11.04 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008173/0.2334, allocations: 3.426 MB / 446.6 MB, free: 7.543 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003438/0.2338, allocations: 373.6 kB / 446.9 MB, free: 7.176 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001524/0.2353, allocations: 487.9 kB / 447.4 MB, free: 6.699 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2066/0.4419, allocations: 6.865 MB / 454.3 MB, free: 64.7 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001886/0.4422, allocations: 4.656 kB / 454.3 MB, free: 64.7 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001423/0.4436, allocations: 199.6 kB / 454.5 MB, free: 64.7 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007402/0.4443, allocations: 239.8 kB / 454.7 MB, free: 64.69 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01577/0.4601, allocations: 5.928 MB / 460.6 MB, free: 63.08 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0354/0.4956, allocations: 20.73 MB / 481.4 MB, free: 49.87 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007542/0.5031, allocations: 9.95 MB / 491.3 MB, free: 40.85 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003175/0.5063, allocations: 2.484 MB / 493.8 MB, free: 38.64 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009392/0.5158, allocations: 6.501 MB / 0.4886 GB, free: 32.17 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.441e-05/0.5158, allocations: 53.5 kB / 0.4886 GB, free: 32.11 MB / 382.1 MB Notification: Performance of pre-optimization done (n=219): time 5.199e-06/0.5158, allocations: 0 / 0.4886 GB, free: 32.11 MB / 382.1 MB Notification: Performance of matching and sorting (n=226): time 0.01576/0.5316, allocations: 9.756 MB / 0.4982 GB, free: 22.36 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.818e-05/0.5317, allocations: 77.41 kB / 0.4982 GB, free: 22.27 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003866/0.5356, allocations: 2.994 MB / 0.5012 GB, free: 19.27 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001687/0.5358, allocations: 65.7 kB / 0.5012 GB, free: 19.2 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001053/0.5368, allocations: 2.217 MB / 0.5034 GB, free: 17.14 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004592/0.5373, allocations: 0.7969 MB / 0.5042 GB, free: 16.35 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006434/0.5379, allocations: 465.2 kB / 0.5046 GB, free: 15.89 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.323e-05/0.538, allocations: 301.1 kB / 0.5049 GB, free: 15.59 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001676/0.5397, allocations: 1.294 MB / 0.5062 GB, free: 14.3 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001855/0.5415, allocations: 1.92 MB / 0.508 GB, free: 12.12 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003613/0.5452, allocations: 3.344 MB / 0.5113 GB, free: 8.523 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.111e-05/0.5452, allocations: 8 kB / 0.5113 GB, free: 8.516 MB / 382.1 MB Notification: Performance of matching and sorting (n=328) (initialization): time 0.006227/0.5514, allocations: 4.262 MB / 0.5155 GB, free: 4.211 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.177e-05/0.5515, allocations: 15.94 kB / 0.5155 GB, free: 4.195 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.736e-05/0.5515, allocations: 16 kB / 0.5155 GB, free: 4.18 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00201/0.5535, allocations: 0.7247 MB / 0.5162 GB, free: 3.445 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002073/0.5556, allocations: 0.5656 MB / 0.5168 GB, free: 2.879 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01089/0.5665, allocations: 10.88 MB / 0.5274 GB, free: 7.449 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002909/0.5695, allocations: 112 kB / 0.5275 GB, free: 7.34 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002631/0.5697, allocations: 104 kB / 0.5276 GB, free: 7.238 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.00322/0.573, allocations: 1.606 MB / 0.5292 GB, free: 5.621 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007867/0.5738, allocations: 337.9 kB / 0.5295 GB, free: 5.289 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006642/0.5804, allocations: 3.914 MB / 0.5333 GB, free: 1.309 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.797e-05/0.5805, allocations: 24 kB / 0.5333 GB, free: 1.285 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.378e-05/0.5805, allocations: 8 kB / 0.5333 GB, free: 1.277 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.148e-05/0.5805, allocations: 15.95 kB / 0.5334 GB, free: 1.262 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01406/0.5946, allocations: 8.556 MB / 0.5417 GB, free: 8.598 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.839e-06/0.5946, allocations: 4 kB / 0.5417 GB, free: 8.594 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001524/0.5962, allocations: 343.5 kB / 0.542 GB, free: 8.258 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002666/0.5988, allocations: 0.8861 MB / 0.5429 GB, free: 7.355 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001677/0.599, allocations: 55.97 kB / 0.543 GB, free: 7.301 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01566/0.6147, allocations: 15.7 MB / 0.5583 GB, free: 6.789 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.569e-06/0.6147, allocations: 96 / 0.5583 GB, free: 6.789 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009394/0.6241, allocations: 5.715 MB / 0.5639 GB, free: 0.9727 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001914/0.6261, allocations: 0.698 MB / 0.5646 GB, free: 260 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004563/0.6266, allocations: 52.09 kB / 0.5646 GB, free: 208 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001415/0.628, allocations: 119.8 kB / 0.5647 GB, free: 88 kB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005048/0.6285, allocations: 185.7 kB / 0.5649 GB, free: 15.91 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001534/0.6287, allocations: 64.55 kB / 0.565 GB, free: 15.84 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00324/0.6319, allocations: 2.066 MB / 0.567 GB, free: 13.78 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6319, allocations: 0 / 0.567 GB, free: 13.78 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003369/0.6353, allocations: 0.9413 MB / 0.5679 GB, free: 12.84 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.0007024/0.636, allocations: 270.5 kB / 0.5681 GB, free: 12.57 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006191/0.6422, allocations: 3.91 MB / 0.572 GB, free: 8.59 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.59e-06/0.6422, allocations: 0 / 0.572 GB, free: 8.59 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004048/0.6463, allocations: 2.637 MB / 0.5745 GB, free: 5.883 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004159/0.6505, allocations: 0.9067 MB / 0.5754 GB, free: 4.973 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01647/0.6669, allocations: 9.553 MB / 0.5848 GB, free: 11.36 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003452/0.6704, allocations: 3.426 MB / 0.5881 GB, free: 7.895 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002651/0.6731, allocations: 0.7643 MB / 0.5888 GB, free: 7.125 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005975/0.6737, allocations: 195.4 kB / 0.589 GB, free: 6.934 MB / 462.1 MB Notification: Performance of SimCode: time 4.21e-07/0.6737, allocations: 0 / 0.589 GB, free: 6.934 MB / 462.1 MB Notification: Performance of Templates: time 0.2853/0.959, allocations: 48.87 MB / 0.6368 GB, free: 157.8 MB / 494.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)