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.00109/0.00109, allocations: 111 kB / 17.06 MB, free: 5.965 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.001199/0.001199, allocations: 198.9 kB / 18.01 MB, free: 5.055 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.373/1.373, allocations: 205.1 MB / 223.9 MB, free: 12.21 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.001207/0.001207, allocations: 51.92 kB / 327.9 MB, free: 3.266 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08081/0.08203, allocations: 46.62 MB / 374.5 MB, free: 4.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start): time 0.1744/0.2564, allocations: 23.56 MB / 398.1 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02247/0.2789, allocations: 6.905 MB / 405 MB, free: 9.543 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007839/0.2869, allocations: 139.2 kB / 405.1 MB, free: 9.504 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008067/0.295, allocations: 1.621 MB / 406.7 MB, free: 8.609 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01236/0.3074, allocations: 2.373 MB / 409.1 MB, free: 7.074 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006784/0.3142, allocations: 1.451 MB / 410.6 MB, free: 6.012 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.02056/0.3347, allocations: 8.917 MB / 419.5 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01888/0.3537, allocations: 7.003 MB / 426.5 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01054/0.3643, allocations: 4.074 MB / 430.6 MB, free: 7.535 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01203/0.3763, allocations: 4.725 MB / 435.3 MB, free: 2.793 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004409/0.3808, allocations: 1.102 MB / 436.4 MB, free: 1.691 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006133/0.3869, allocations: 1.378 MB / 437.8 MB, free: 320 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005697/0.3927, allocations: 2.72 MB / 440.5 MB, free: 13.58 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01344/0.4062, allocations: 4.68 MB / 445.2 MB, free: 8.883 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0263/0.4325, allocations: 14.45 MB / 459.6 MB, free: 10.39 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.84e-06/0.4326, allocations: 0 / 459.6 MB, free: 10.39 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.4326, allocations: 0 / 459.6 MB, free: 10.39 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004232/0.433, allocations: 4 kB / 459.6 MB, free: 10.39 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.03734/0.4704, allocations: 8.9 MB / 468.5 MB, free: 1.398 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.059e-05/0.4705, allocations: 16.03 kB / 468.5 MB, free: 1.383 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01192/0.4824, allocations: 1.299 MB / 469.8 MB, free: 76 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01726/0.4997, allocations: 5.086 MB / 474.9 MB, free: 10.92 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000753/0.5005, allocations: 0.4941 MB / 475.4 MB, free: 10.42 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003047/0.5036, allocations: 0.6604 MB / 476.1 MB, free: 9.762 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02662/0.5302, allocations: 9.445 MB / 485.5 MB, free: 200 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002847/0.5305, allocations: 19.83 kB / 485.5 MB, free: 180 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001603/0.5322, allocations: 276.1 kB / 485.8 MB, free: 15.9 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002999/0.5325, allocations: 293.4 kB / 486.1 MB, free: 15.61 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01692/0.5494, allocations: 8.079 MB / 494.2 MB, free: 7.52 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05196/0.6014, allocations: 29.04 MB / 0.5109 GB, free: 9.793 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01208/0.6135, allocations: 11.99 MB / 0.5226 GB, free: 12.65 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005349/0.6189, allocations: 3.361 MB / 0.5259 GB, free: 9.273 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01514/0.634, allocations: 7.968 MB / 0.5337 GB, free: 1.191 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.236e-05/0.6341, allocations: 64.97 kB / 0.5338 GB, free: 1.117 MB / 462.1 MB Notification: Performance of pre-optimization done (n=305): time 4.649e-06/0.6341, allocations: 0 / 0.5338 GB, free: 1.117 MB / 462.1 MB Notification: Performance of matching and sorting (n=324): time 0.03185/0.666, allocations: 15.85 MB / 0.5492 GB, free: 0.7344 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001203/0.6661, allocations: 85.95 kB / 0.5493 GB, free: 0.6367 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3533/1.019, allocations: 3.998 MB / 0.5532 GB, free: 145.6 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005497/1.02, allocations: 82.7 kB / 0.5533 GB, free: 145.5 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001871/1.022, allocations: 3.086 MB / 0.5563 GB, free: 144.1 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001212/1.023, allocations: 1.09 MB / 0.5574 GB, free: 143.3 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001129/1.024, allocations: 0.6755 MB / 0.5581 GB, free: 143 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 5.152e-05/1.024, allocations: 303.4 kB / 0.5583 GB, free: 142.7 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002903/1.027, allocations: 1.864 MB / 0.5602 GB, free: 142 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003194/1.03, allocations: 2.837 MB / 0.5629 GB, free: 140.2 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006177/1.037, allocations: 4.909 MB / 0.5677 GB, free: 137.3 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.309e-05/1.037, allocations: 8.297 kB / 0.5677 GB, free: 137.3 MB / 478.1 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.009987/1.047, allocations: 6.404 MB / 0.574 GB, free: 134.6 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.865e-05/1.047, allocations: 19.38 kB / 0.574 GB, free: 134.6 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.721e-05/1.047, allocations: 28.33 kB / 0.574 GB, free: 134.6 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002566/1.049, allocations: 1.268 MB / 0.5753 GB, free: 134.1 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002878/1.052, allocations: 0.8142 MB / 0.5761 GB, free: 134.1 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01537/1.068, allocations: 22.54 MB / 0.5981 GB, free: 115.2 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003768/1.071, allocations: 190.7 kB / 0.5983 GB, free: 115.1 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003118/1.072, allocations: 156.7 kB / 0.5984 GB, free: 115.1 MB / 478.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.00455/1.076, allocations: 2.182 MB / 0.6005 GB, free: 113.9 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001164/1.078, allocations: 450.4 kB / 0.601 GB, free: 113.7 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008597/1.086, allocations: 6.053 MB / 0.6069 GB, free: 109.9 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.532e-05/1.086, allocations: 32 kB / 0.6069 GB, free: 109.9 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.915e-05/1.086, allocations: 16 kB / 0.6069 GB, free: 109.8 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.537e-05/1.086, allocations: 20.06 kB / 0.6069 GB, free: 109.8 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01712/1.103, allocations: 12.34 MB / 0.619 GB, free: 97.52 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.115e-05/1.103, allocations: 7.5 kB / 0.619 GB, free: 97.52 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001798/1.105, allocations: 451.8 kB / 0.6194 GB, free: 97.07 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003293/1.109, allocations: 1.625 MB / 0.621 GB, free: 95.4 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002047/1.109, allocations: 75.97 kB / 0.6211 GB, free: 95.33 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02101/1.13, allocations: 32.89 MB / 0.6532 GB, free: 60.25 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/1.13, allocations: 4 kB / 0.6532 GB, free: 60.24 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01114/1.141, allocations: 8.646 MB / 0.6617 GB, free: 51.34 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00287/1.144, allocations: 0.9096 MB / 0.6625 GB, free: 50.41 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007161/1.145, allocations: 70.06 kB / 0.6626 GB, free: 50.34 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001952/1.147, allocations: 179.8 kB / 0.6628 GB, free: 50.17 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006201/1.147, allocations: 266 kB / 0.663 GB, free: 49.91 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001863/1.147, allocations: 99.97 kB / 0.6631 GB, free: 49.81 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003464/1.151, allocations: 2.713 MB / 0.6658 GB, free: 47.09 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.4e-07/1.151, allocations: 4 kB / 0.6658 GB, free: 47.09 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004043/1.155, allocations: 1.326 MB / 0.6671 GB, free: 45.76 MB / 478.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.0005625/1.155, allocations: 285.6 kB / 0.6674 GB, free: 45.48 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007246/1.163, allocations: 6.34 MB / 0.6735 GB, free: 38.93 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/1.163, allocations: 0 / 0.6735 GB, free: 38.93 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005297/1.168, allocations: 4.783 MB / 0.6782 GB, free: 33.93 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005185/1.173, allocations: 1.326 MB / 0.6795 GB, free: 32.6 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0173/1.191, allocations: 13.26 MB / 0.6925 GB, free: 19.3 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003374/1.194, allocations: 4.482 MB / 0.6968 GB, free: 14.77 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003152/1.197, allocations: 1.057 MB / 0.6979 GB, free: 13.71 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006909/1.198, allocations: 279.4 kB / 0.6981 GB, free: 13.44 MB / 478.1 MB Notification: Performance of SimCode: time 1.483e-06/1.198, allocations: 0 / 0.6981 GB, free: 13.44 MB / 478.1 MB Notification: Performance of Templates: time 0.3104/1.508, allocations: 72.44 MB / 0.7689 GB, free: 152.9 MB / 0.4982 GB 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)