Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_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.1_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.1_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.008777/0.008777, allocations: 99.84 kB / 15.73 MB, free: 6.043 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.001542/0.001542, allocations: 188.3 kB / 16.67 MB, free: 5.973 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.433/1.433, allocations: 205.1 MB / 222.6 MB, free: 4.523 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.001169/0.001169, allocations: 55.33 kB / 326.6 MB, free: 14.3 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08761/0.08879, allocations: 46.62 MB / 373.2 MB, free: 1.305 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start): time 0.02424/0.1131, allocations: 23.56 MB / 396.8 MB, free: 9.637 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01332/0.1265, allocations: 6.902 MB / 403.7 MB, free: 2.715 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005486/0.132, allocations: 139.4 kB / 403.8 MB, free: 2.578 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005206/0.1373, allocations: 1.63 MB / 405.4 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00885/0.1461, allocations: 2.373 MB / 407.8 MB, free: 14.55 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004333/0.1505, allocations: 1.435 MB / 409.2 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01223/0.1627, allocations: 8.932 MB / 418.2 MB, free: 4.148 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009861/0.1726, allocations: 6.996 MB / 425.2 MB, free: 13.05 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006865/0.1796, allocations: 4.046 MB / 429.2 MB, free: 8.996 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00754/0.1871, allocations: 4.721 MB / 433.9 MB, free: 4.258 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00282/0.19, allocations: 1.105 MB / 435 MB, free: 3.152 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003866/0.1939, allocations: 1.378 MB / 436.4 MB, free: 1.773 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003544/0.1975, allocations: 2.727 MB / 439.1 MB, free: 15.04 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007715/0.2052, allocations: 4.672 MB / 443.8 MB, free: 10.35 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2183/0.4235, allocations: 14.45 MB / 458.3 MB, free: 29.1 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.4235, allocations: 0 / 458.3 MB, free: 29.1 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.495e-06/0.4236, allocations: 1.281 kB / 458.3 MB, free: 29.1 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005357/0.4241, allocations: 1.625 kB / 458.3 MB, free: 29.1 MB / 382.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.02855/0.4527, allocations: 8.891 MB / 467.2 MB, free: 26.21 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.356e-05/0.4527, allocations: 9.75 kB / 467.2 MB, free: 26.21 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008331/0.4611, allocations: 1.306 MB / 468.5 MB, free: 25.8 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01248/0.4736, allocations: 5.083 MB / 473.6 MB, free: 24.82 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005037/0.4741, allocations: 0.5013 MB / 474.1 MB, free: 24.8 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004107/0.4782, allocations: 0.6657 MB / 474.7 MB, free: 24.79 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02699/0.5052, allocations: 9.453 MB / 484.2 MB, free: 21.73 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003625/0.5056, allocations: 7.25 kB / 484.2 MB, free: 21.73 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002856/0.5085, allocations: 284.7 kB / 484.5 MB, free: 21.51 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002667/0.5088, allocations: 298 kB / 484.8 MB, free: 21.47 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01607/0.5249, allocations: 8.073 MB / 492.8 MB, free: 17.21 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05768/0.5826, allocations: 29.03 MB / 0.5096 GB, free: 5.008 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01249/0.5951, allocations: 11.97 MB / 0.5213 GB, free: 7.926 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006314/0.6015, allocations: 3.38 MB / 0.5246 GB, free: 4.539 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01801/0.6195, allocations: 7.967 MB / 0.5324 GB, free: 12.58 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.284e-05/0.6196, allocations: 64.97 kB / 0.5325 GB, free: 12.51 MB / 430.1 MB Notification: Performance of pre-optimization done (n=305): time 6.713e-06/0.6197, allocations: 0 / 0.5325 GB, free: 12.51 MB / 430.1 MB Notification: Performance of matching and sorting (n=324): time 0.03661/0.6563, allocations: 15.85 MB / 0.5479 GB, free: 12.21 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.955e-05/0.6564, allocations: 93.45 kB / 0.548 GB, free: 12.11 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006936/0.6633, allocations: 4 MB / 0.5519 GB, free: 8.086 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006459/0.664, allocations: 77.7 kB / 0.552 GB, free: 8.004 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002263/0.6663, allocations: 3.089 MB / 0.555 GB, free: 4.898 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001238/0.6675, allocations: 1.096 MB / 0.5561 GB, free: 3.812 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001161/0.6687, allocations: 0.6767 MB / 0.5568 GB, free: 3.129 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.559e-05/0.6688, allocations: 301.1 kB / 0.557 GB, free: 2.832 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002983/0.6718, allocations: 1.866 MB / 0.5589 GB, free: 0.9648 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003829/0.6756, allocations: 2.84 MB / 0.5616 GB, free: 13.75 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006825/0.6825, allocations: 4.901 MB / 0.5664 GB, free: 8.539 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.44e-05/0.6825, allocations: 8 kB / 0.5664 GB, free: 8.531 MB / 462.1 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.01175/0.6943, allocations: 6.402 MB / 0.5727 GB, free: 2.211 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.43e-05/0.6944, allocations: 20 kB / 0.5727 GB, free: 2.191 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.01e-05/0.6944, allocations: 28 kB / 0.5727 GB, free: 2.164 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003017/0.6974, allocations: 1.273 MB / 0.574 GB, free: 0.8594 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003449/0.7009, allocations: 0.8198 MB / 0.5748 GB, free: 96 kB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02003/0.721, allocations: 22.52 MB / 0.5968 GB, free: 8.141 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003717/0.7247, allocations: 195.8 kB / 0.5969 GB, free: 7.949 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004479/0.7252, allocations: 152 kB / 0.5971 GB, free: 7.801 MB / 494.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.003747/0.7289, allocations: 2.191 MB / 0.5992 GB, free: 5.648 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008795/0.7298, allocations: 438.7 kB / 0.5997 GB, free: 5.215 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01001/0.7398, allocations: 6.065 MB / 0.6056 GB, free: 15.03 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.437e-05/0.7399, allocations: 28 kB / 0.6056 GB, free: 15 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.141e-05/0.7399, allocations: 16 kB / 0.6056 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-05/0.74, allocations: 19.41 kB / 0.6056 GB, free: 14.97 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0222/0.7622, allocations: 12.35 MB / 0.6177 GB, free: 2.48 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.258e-05/0.7622, allocations: 4 kB / 0.6177 GB, free: 2.477 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00202/0.7642, allocations: 459.1 kB / 0.6181 GB, free: 2.051 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00399/0.7683, allocations: 1.607 MB / 0.6197 GB, free: 412 kB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000287/0.7686, allocations: 83.97 kB / 0.6198 GB, free: 328 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2529/1.021, allocations: 32.86 MB / 0.6519 GB, free: 176.3 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.413e-06/1.022, allocations: 8.094 kB / 0.6519 GB, free: 176.3 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01426/1.036, allocations: 8.646 MB / 0.6603 GB, free: 172.6 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002646/1.038, allocations: 0.9145 MB / 0.6612 GB, free: 172.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000859/1.039, allocations: 66.7 kB / 0.6613 GB, free: 172.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002149/1.042, allocations: 181.1 kB / 0.6615 GB, free: 172.1 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006622/1.042, allocations: 279.2 kB / 0.6617 GB, free: 172.1 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000194/1.042, allocations: 90.86 kB / 0.6618 GB, free: 172.1 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.003384/1.046, allocations: 2.721 MB / 0.6645 GB, free: 171.1 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2e-07/1.046, allocations: 0 / 0.6645 GB, free: 171.1 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004249/1.05, allocations: 1.328 MB / 0.6658 GB, free: 170.9 MB / 0.5137 GB 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.0005857/1.051, allocations: 274.7 kB / 0.666 GB, free: 170.8 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007651/1.058, allocations: 6.342 MB / 0.6722 GB, free: 167.5 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 7.424e-06/1.058, allocations: 2.031 kB / 0.6722 GB, free: 167.5 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.005483/1.064, allocations: 4.779 MB / 0.6769 GB, free: 164.5 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005633/1.07, allocations: 1.339 MB / 0.6782 GB, free: 164.1 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02005/1.09, allocations: 13.24 MB / 0.6911 GB, free: 153.1 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003981/1.094, allocations: 4.484 MB / 0.6955 GB, free: 148.6 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004001/1.098, allocations: 1.05 MB / 0.6965 GB, free: 147.6 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007169/1.098, allocations: 275.4 kB / 0.6968 GB, free: 147.3 MB / 0.5137 GB Notification: Performance of SimCode: time 1.132e-06/1.098, allocations: 0 / 0.6968 GB, free: 147.3 MB / 0.5137 GB Notification: Performance of Templates: time 0.09995/1.198, allocations: 71.39 MB / 0.7665 GB, free: 75.86 MB / 0.5137 GB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe 2>&1)