Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.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.AIMS_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001643/0.001643, allocations: 104.7 kB / 16.62 MB, free: 6.809 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.001912/0.001912, allocations: 189.9 kB / 17.55 MB, free: 5.953 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.352/1.352, allocations: 205.1 MB / 223.4 MB, free: 12.44 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.001194/0.001194, allocations: 51.94 kB / 279.5 MB, free: 3.488 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08555/0.08675, allocations: 46.63 MB / 326.1 MB, free: 4.789 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start): time 0.02237/0.1092, allocations: 23.26 MB / 349.4 MB, free: 13.42 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01386/0.1231, allocations: 6.809 MB / 356.2 MB, free: 6.59 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005058/0.1282, allocations: 127.4 kB / 356.3 MB, free: 6.465 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005179/0.1334, allocations: 1.399 MB / 357.7 MB, free: 5.059 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009121/0.1426, allocations: 2.149 MB / 359.9 MB, free: 2.898 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005339/0.1479, allocations: 1.299 MB / 361.2 MB, free: 1.598 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0112/0.1591, allocations: 9.039 MB / 370.2 MB, free: 8.52 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009036/0.1682, allocations: 7.015 MB / 377.2 MB, free: 1.418 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1579/0.3261, allocations: 3.944 MB / 381.2 MB, free: 17.34 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007591/0.3338, allocations: 4.77 MB / 385.9 MB, free: 16.93 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005188/0.339, allocations: 1.101 MB / 387 MB, free: 16.93 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006314/0.3453, allocations: 1.389 MB / 388.4 MB, free: 16.93 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004437/0.3498, allocations: 2.715 MB / 391.2 MB, free: 16.65 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006663/0.3565, allocations: 4.674 MB / 395.8 MB, free: 15.51 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.011/0.3675, allocations: 14.32 MB / 410.1 MB, free: 7.961 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.563e-06/0.3676, allocations: 0 / 410.1 MB, free: 7.961 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.3676, allocations: 0.625 kB / 410.1 MB, free: 7.961 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003845/0.368, allocations: 3.031 kB / 410.1 MB, free: 7.961 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: 1778 * Number of variables: 1778 Notification: Performance of Generate backend data structure: time 0.01974/0.3877, allocations: 8.896 MB / 419 MB, free: 2.219 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.069e-05/0.3878, allocations: 9.75 kB / 419.1 MB, free: 2.219 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006009/0.3938, allocations: 1.308 MB / 420.4 MB, free: 1.586 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01071/0.4045, allocations: 4.985 MB / 425.3 MB, free: 13.63 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004447/0.405, allocations: 0.5039 MB / 425.9 MB, free: 13.13 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002251/0.4073, allocations: 0.6604 MB / 426.5 MB, free: 12.47 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0225/0.4298, allocations: 9.453 MB / 436 MB, free: 2.918 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001933/0.43, allocations: 15.56 kB / 436 MB, free: 2.906 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001002/0.431, allocations: 275 kB / 436.2 MB, free: 2.641 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00028/0.4313, allocations: 301.4 kB / 436.5 MB, free: 2.344 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01501/0.4463, allocations: 8.076 MB / 444.6 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.049/0.4954, allocations: 29.38 MB / 474 MB, free: 12.85 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01096/0.5064, allocations: 11.98 MB / 486 MB, free: 15.75 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005464/0.5119, allocations: 3.38 MB / 489.4 MB, free: 12.36 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0142/0.5261, allocations: 7.977 MB / 497.3 MB, free: 4.383 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.432e-05/0.5262, allocations: 76.97 kB / 497.4 MB, free: 4.297 MB / 398.1 MB Notification: Performance of pre-optimization done (n=305): time 5.46e-06/0.5263, allocations: 0 / 497.4 MB, free: 4.297 MB / 398.1 MB Notification: Performance of matching and sorting (n=324): time 0.03188/0.5582, allocations: 15.85 MB / 0.5012 GB, free: 3.996 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.166e-05/0.5583, allocations: 85.42 kB / 0.5013 GB, free: 3.902 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006317/0.5646, allocations: 4.004 MB / 0.5052 GB, free: 15.88 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006628/0.5653, allocations: 85.7 kB / 0.5053 GB, free: 15.79 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002066/0.5674, allocations: 3.077 MB / 0.5083 GB, free: 12.7 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001445/0.5688, allocations: 1.093 MB / 0.5094 GB, free: 11.61 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001233/0.5701, allocations: 0.6767 MB / 0.51 GB, free: 10.93 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000115/0.5702, allocations: 305.1 kB / 0.5103 GB, free: 10.62 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002821/0.573, allocations: 1.858 MB / 0.5122 GB, free: 8.766 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003557/0.5766, allocations: 2.845 MB / 0.5149 GB, free: 5.539 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006526/0.5831, allocations: 4.904 MB / 0.5197 GB, free: 340 kB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-05/0.5832, allocations: 12 kB / 0.5197 GB, free: 328 kB / 430.1 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.0107/0.5939, allocations: 6.401 MB / 0.526 GB, free: 10.01 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.063e-05/0.594, allocations: 19.98 kB / 0.526 GB, free: 9.988 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.773e-05/0.594, allocations: 28 kB / 0.526 GB, free: 9.961 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002797/0.5968, allocations: 1.271 MB / 0.5273 GB, free: 8.656 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003228/0.6001, allocations: 0.8182 MB / 0.5281 GB, free: 7.887 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1774/0.7775, allocations: 22.56 MB / 0.5501 GB, free: 141.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0035/0.781, allocations: 192.2 kB / 0.5503 GB, free: 141.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004332/0.7815, allocations: 154 kB / 0.5504 GB, free: 141.1 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 130 * Number of states: 0 () * Number of discrete variables: 9 (rheostatE.booleanStep[3].y,rheostatE.booleanStep[2].y,rheostatE.booleanStep[1].y,rheostatM.booleanStep[3].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[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 (424): * Single equations (assignments): 410 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 3 systems {(2,100.0%), (2,100.0%), (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): 11 systems {(1,8,100.0%), (2,14,100.0%), (1,1,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (1,1,100.0%), (1,5,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003886/0.7854, allocations: 2.182 MB / 0.5526 GB, free: 140.1 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001017/0.7864, allocations: 449.1 kB / 0.553 GB, free: 140.1 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009355/0.7958, allocations: 6.054 MB / 0.5589 GB, free: 137.4 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.67e-05/0.7958, allocations: 30.97 kB / 0.5589 GB, free: 137.4 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.819e-05/0.7959, allocations: 14.94 kB / 0.5589 GB, free: 137.4 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.292e-05/0.7959, allocations: 15.52 kB / 0.559 GB, free: 137.4 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01823/0.8141, allocations: 12.37 MB / 0.571 GB, free: 132.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.14e-05/0.8142, allocations: 3.625 kB / 0.571 GB, free: 132.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001887/0.8161, allocations: 452.1 kB / 0.5715 GB, free: 132 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003411/0.8195, allocations: 1.63 MB / 0.5731 GB, free: 131.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003655/0.8199, allocations: 71.73 kB / 0.5731 GB, free: 131.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02161/0.8415, allocations: 32.9 MB / 0.6053 GB, free: 102.5 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.988e-06/0.8416, allocations: 4.031 kB / 0.6053 GB, free: 102.5 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01214/0.8537, allocations: 8.647 MB / 0.6137 GB, free: 93.8 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00267/0.8564, allocations: 0.9086 MB / 0.6146 GB, free: 93.1 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001299/0.8577, allocations: 68 kB / 0.6147 GB, free: 93.03 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002733/0.8605, allocations: 179.8 kB / 0.6148 GB, free: 92.86 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007541/0.8613, allocations: 276.2 kB / 0.6151 GB, free: 92.59 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002348/0.8615, allocations: 87.97 kB / 0.6152 GB, free: 92.5 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004775/0.8663, allocations: 2.721 MB / 0.6178 GB, free: 89.77 MB / 446.1 MB Notification: Performance of sort global known variables: time 9.21e-07/0.8663, allocations: 4 kB / 0.6178 GB, free: 89.77 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006335/0.8727, allocations: 1.332 MB / 0.6191 GB, free: 88.44 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 16 (aimsM.inertiaRotor.w,aimsM.stator.zeroInductor.i0,aimsM.stator.core.Phi.re,aimsM.stator.core.Phi.im,aimsM.rotor.zeroInductor.i0,aimsM.rotor.core.Phi.re,aimsM.rotor.core.Phi.im,aimsE.inertiaRotor.w,aimsE.i_0_s,aimsE.idq_sr[1],aimsE.idq_sr[2],aimsE.idq_rr[1],aimsE.idq_rr[2],aimsE.i_0_r,quadraticLoadTorqueM.phi,quadraticLoadTorqueE.phi) * Number of discrete variables: 9 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatE.booleanStep[1].y,rheostatE.booleanStep[2].y,rheostatE.booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (231): * Single equations (assignments): 214 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 16 * 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): 16 systems {(2,14,100.0%), (1,1,100.0%), (1,8,100.0%), (2,1,100.0%), (1,1,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (1,5,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,1,100.0%), (1,8,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.001044/0.8738, allocations: 273.7 kB / 0.6194 GB, free: 88.17 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01647/0.8902, allocations: 9.435 MB / 0.6286 GB, free: 78.56 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.081e-05/0.8903, allocations: 4 kB / 0.6286 GB, free: 78.55 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005805/0.8961, allocations: 4.786 MB / 0.6333 GB, free: 73.55 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006244/0.9024, allocations: 1.325 MB / 0.6346 GB, free: 72.22 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02156/0.924, allocations: 16.29 MB / 0.6505 GB, free: 55.88 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004305/0.9283, allocations: 4.487 MB / 0.6549 GB, free: 51.35 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003748/0.9321, allocations: 1.046 MB / 0.6559 GB, free: 50.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008144/0.933, allocations: 279.4 kB / 0.6562 GB, free: 50.03 MB / 446.1 MB Notification: Performance of SimCode: time 1.312e-06/0.933, allocations: 0 / 0.6562 GB, free: 50.03 MB / 446.1 MB Notification: Performance of Templates: time 0.2679/1.201, allocations: 73.74 MB / 0.7282 GB, free: 116.7 MB / 446.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe 2>&1)