Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.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_YD,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001569/0.001569, allocations: 108.3 kB / 16.51 MB, free: 6.715 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.001842/0.001842, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.283/1.283, allocations: 205.1 MB / 223.3 MB, free: 12.48 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.001145/0.001145, allocations: 47.92 kB / 279.3 MB, free: 3.578 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08802/0.08918, allocations: 46.62 MB / 326 MB, free: 4.895 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD): time 0.01496/0.1042, allocations: 13.54 MB / 339.5 MB, free: 7.289 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009554/0.1138, allocations: 4.459 MB / 343.9 MB, free: 2.812 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003058/0.1169, allocations: 71.69 kB / 344 MB, free: 2.742 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003147/0.1201, allocations: 0.8978 MB / 344.9 MB, free: 1.84 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004151/0.1243, allocations: 1.263 MB / 346.2 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002066/0.1263, allocations: 0.8461 MB / 347 MB, free: 15.72 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006489/0.1328, allocations: 5.095 MB / 352.1 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003886/0.1368, allocations: 3.034 MB / 355.2 MB, free: 7.504 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002612/0.1394, allocations: 1.732 MB / 356.9 MB, free: 5.766 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003078/0.1425, allocations: 2.272 MB / 359.2 MB, free: 3.484 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000609/0.1431, allocations: 340 kB / 359.5 MB, free: 3.152 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001465/0.1446, allocations: 0.5428 MB / 360 MB, free: 2.609 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008687/0.1455, allocations: 1.067 MB / 361.1 MB, free: 1.539 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002364/0.1479, allocations: 2.185 MB / 363.3 MB, free: 15.34 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006221/0.1541, allocations: 7.493 MB / 370.8 MB, free: 7.828 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.199e-06/0.1541, allocations: 3.938 kB / 370.8 MB, free: 7.824 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1541, allocations: 0 / 370.8 MB, free: 7.824 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001576/0.1543, allocations: 0 / 370.8 MB, free: 7.824 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: 945 * Number of variables: 945 Notification: Performance of Generate backend data structure: time 0.01362/0.1679, allocations: 5.021 MB / 375.8 MB, free: 2.73 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.702e-05/0.168, allocations: 8.031 kB / 375.8 MB, free: 2.723 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004931/0.1729, allocations: 0.878 MB / 376.7 MB, free: 1.84 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1645/0.3374, allocations: 2.58 MB / 379.3 MB, free: 47.73 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002994/0.3377, allocations: 272 kB / 379.5 MB, free: 47.73 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009476/0.3387, allocations: 360.4 kB / 379.9 MB, free: 47.73 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009982/0.3487, allocations: 5.031 MB / 384.9 MB, free: 45.72 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.45e-05/0.3488, allocations: 3.594 kB / 384.9 MB, free: 45.72 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003418/0.3492, allocations: 154 kB / 385.1 MB, free: 45.61 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001894/0.3494, allocations: 158.6 kB / 385.2 MB, free: 45.59 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007953/0.3573, allocations: 4.38 MB / 389.6 MB, free: 43.91 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02056/0.3779, allocations: 15.92 MB / 405.5 MB, free: 33.14 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005882/0.3838, allocations: 7.78 MB / 413.3 MB, free: 24.83 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002277/0.3862, allocations: 1.717 MB / 415 MB, free: 23.12 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006916/0.3931, allocations: 4.66 MB / 419.7 MB, free: 18.42 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.05e-05/0.3932, allocations: 51.88 kB / 419.7 MB, free: 18.36 MB / 318.1 MB Notification: Performance of pre-optimization done (n=161): time 3.848e-06/0.3932, allocations: 0 / 419.7 MB, free: 18.36 MB / 318.1 MB Notification: Performance of matching and sorting (n=164): time 0.01449/0.4077, allocations: 8.127 MB / 427.9 MB, free: 10.02 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.93e-05/0.4078, allocations: 68.72 kB / 427.9 MB, free: 9.934 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002851/0.4106, allocations: 2.159 MB / 430.1 MB, free: 7.738 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001226/0.4108, allocations: 53.7 kB / 430.1 MB, free: 7.68 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000699/0.4115, allocations: 1.623 MB / 431.8 MB, free: 6.047 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003036/0.4118, allocations: 0.5461 MB / 432.3 MB, free: 5.504 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004762/0.4123, allocations: 355.2 kB / 432.7 MB, free: 5.152 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.695e-05/0.4123, allocations: 309 kB / 433 MB, free: 4.848 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001241/0.4135, allocations: 0.9408 MB / 433.9 MB, free: 3.906 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001387/0.415, allocations: 1.461 MB / 435.4 MB, free: 2.23 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002752/0.4177, allocations: 2.499 MB / 437.9 MB, free: 15.52 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.093e-05/0.4177, allocations: 8 kB / 437.9 MB, free: 15.51 MB / 334.1 MB Notification: Performance of matching and sorting (n=245) (initialization): time 0.005447/0.4232, allocations: 3.35 MB / 441.2 MB, free: 12.12 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.981e-05/0.4232, allocations: 12 kB / 441.2 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.809e-05/0.4233, allocations: 16 kB / 441.2 MB, free: 12.09 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00181/0.4251, allocations: 0.7393 MB / 442 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001478/0.4266, allocations: 371.4 kB / 442.3 MB, free: 10.98 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01082/0.4374, allocations: 10.39 MB / 452.7 MB, free: 60 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001955/0.4394, allocations: 86.88 kB / 452.8 MB, free: 15.97 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003041/0.4398, allocations: 91.97 kB / 452.9 MB, free: 15.89 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 69 * Number of states: 0 () * Number of discrete variables: 6 (booleanStepYD[3].y,booleanStepYD[2].y,booleanStepYD[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 (195): * Single equations (assignments): 190 * 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 {(1,8,100.0%), (9,19,33.3%), (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.002404/0.4422, allocations: 1.212 MB / 454.1 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006323/0.4428, allocations: 229.2 kB / 454.3 MB, free: 14.44 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005608/0.4484, allocations: 3.158 MB / 457.5 MB, free: 11.22 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.478e-05/0.4485, allocations: 23.94 kB / 457.5 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.431e-05/0.4485, allocations: 12 kB / 457.5 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.781e-05/0.4485, allocations: 7.969 kB / 457.5 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01214/0.4607, allocations: 6.573 MB / 464.1 MB, free: 4.492 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.847e-06/0.4607, allocations: 0 / 464.1 MB, free: 4.492 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000883/0.4616, allocations: 171.8 kB / 464.3 MB, free: 4.324 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002465/0.4641, allocations: 0.9053 MB / 465.2 MB, free: 3.402 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000188/0.4643, allocations: 51.92 kB / 465.2 MB, free: 3.352 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01599/0.4803, allocations: 14.79 MB / 480 MB, free: 3.781 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.901e-06/0.4803, allocations: 7.969 kB / 480 MB, free: 3.773 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007417/0.4878, allocations: 4.504 MB / 484.5 MB, free: 15.18 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001245/0.489, allocations: 0.5178 MB / 485.1 MB, free: 14.64 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006117/0.4897, allocations: 44 kB / 485.1 MB, free: 14.6 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001295/0.491, allocations: 75.88 kB / 485.2 MB, free: 14.53 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004734/0.4915, allocations: 165 kB / 485.3 MB, free: 14.36 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001234/0.4916, allocations: 47.98 kB / 485.4 MB, free: 14.32 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002762/0.4944, allocations: 1.481 MB / 486.9 MB, free: 12.82 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4944, allocations: 0 / 486.9 MB, free: 12.82 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00293/0.4973, allocations: 0.707 MB / 487.6 MB, free: 12.11 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (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,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (94): * Single equations (assignments): 88 * 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,1,100.0%), (1,8,100.0%), (9,19,33.3%), (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.0004261/0.4978, allocations: 175.1 kB / 487.7 MB, free: 11.94 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004992/0.5028, allocations: 3.109 MB / 490.9 MB, free: 8.762 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/0.5028, allocations: 0 / 490.9 MB, free: 8.762 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003459/0.5063, allocations: 2.263 MB / 493.1 MB, free: 6.422 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003509/0.5098, allocations: 0.6081 MB / 493.7 MB, free: 5.812 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01389/0.5237, allocations: 8.408 MB / 0.4904 GB, free: 13.37 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003334/0.5271, allocations: 2.67 MB / 0.493 GB, free: 10.67 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002062/0.5291, allocations: 483.4 kB / 0.4934 GB, free: 10.19 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005762/0.5297, allocations: 135.4 kB / 0.4936 GB, free: 10.06 MB / 398.1 MB Notification: Performance of SimCode: time 1.292e-06/0.5298, allocations: 0 / 0.4936 GB, free: 10.06 MB / 398.1 MB Notification: Performance of Templates: time 0.06447/0.5942, allocations: 36.89 MB / 0.5296 GB, free: 5.133 MB / 430.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe 2>&1)