Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.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_DOL_MultiPhase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007589/0.007589, allocations: 105.5 kB / 15.74 MB, free: 5.594 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.001776/0.001776, allocations: 193.8 kB / 16.67 MB, free: 5.531 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.387/1.387, allocations: 205.1 MB / 222.5 MB, free: 12.23 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.001184/0.001184, allocations: 52.36 kB / 326.6 MB, free: 3.273 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08127/0.08247, allocations: 46.63 MB / 373.2 MB, free: 4.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase): time 0.1922/0.2747, allocations: 23.71 MB / 396.9 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0201/0.2949, allocations: 6.491 MB / 403.4 MB, free: 9.523 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00844/0.3033, allocations: 136.5 kB / 403.5 MB, free: 9.488 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007362/0.3108, allocations: 1.594 MB / 405.1 MB, free: 8.617 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01374/0.3246, allocations: 2.206 MB / 407.3 MB, free: 7.145 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006136/0.3307, allocations: 1.426 MB / 408.8 MB, free: 6.223 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01451/0.3453, allocations: 9.861 MB / 418.6 MB, free: 232 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01192/0.3572, allocations: 7.994 MB / 426.6 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008944/0.3662, allocations: 4.662 MB / 431.3 MB, free: 5.375 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009016/0.3752, allocations: 5.27 MB / 436.5 MB, free: 88 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003346/0.3786, allocations: 1.301 MB / 437.8 MB, free: 14.78 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005261/0.3839, allocations: 1.504 MB / 439.3 MB, free: 13.28 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00443/0.3883, allocations: 2.945 MB / 442.3 MB, free: 10.33 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009187/0.3975, allocations: 5.411 MB / 447.7 MB, free: 4.895 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02139/0.4189, allocations: 17.01 MB / 464.7 MB, free: 3.836 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.824e-06/0.419, allocations: 4 kB / 464.7 MB, free: 3.832 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.419, allocations: 3.938 kB / 464.7 MB, free: 3.828 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0007659/0.4198, allocations: 0 / 464.7 MB, free: 3.828 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: 2135 * Number of variables: 2135 Notification: Performance of Generate backend data structure: time 0.03404/0.4538, allocations: 10.56 MB / 475.3 MB, free: 9.16 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.674e-05/0.4539, allocations: 11.89 kB / 475.3 MB, free: 9.148 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0111/0.465, allocations: 2.028 MB / 477.3 MB, free: 7.109 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01319/0.4782, allocations: 5.577 MB / 482.9 MB, free: 1.461 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006235/0.4789, allocations: 0.5943 MB / 483.5 MB, free: 0.8633 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003188/0.4821, allocations: 0.7892 MB / 484.3 MB, free: 76 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02807/0.5102, allocations: 11.33 MB / 495.6 MB, free: 4.633 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001893/0.5104, allocations: 8 kB / 495.6 MB, free: 4.625 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001104/0.5115, allocations: 324 kB / 495.9 MB, free: 4.309 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003362/0.5119, allocations: 388.2 kB / 496.3 MB, free: 3.926 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01958/0.5315, allocations: 9.871 MB / 0.4943 GB, free: 10.04 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06444/0.5959, allocations: 34.05 MB / 0.5276 GB, free: 7.254 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02116/0.6171, allocations: 19.89 MB / 0.547 GB, free: 1.324 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.3859/1.003, allocations: 3.664 MB / 0.5506 GB, free: 142.1 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0213/1.024, allocations: 9.482 MB / 0.5598 GB, free: 138.3 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.767e-05/1.025, allocations: 71.84 kB / 0.5599 GB, free: 138.2 MB / 478.1 MB Notification: Performance of pre-optimization done (n=321): time 5.671e-06/1.025, allocations: 0 / 0.5599 GB, free: 138.2 MB / 478.1 MB Notification: Performance of matching and sorting (n=327): time 0.03329/1.058, allocations: 15.2 MB / 0.5747 GB, free: 131.7 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.487e-05/1.058, allocations: 84.27 kB / 0.5748 GB, free: 131.6 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007012/1.065, allocations: 4.404 MB / 0.5791 GB, free: 130 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006294/1.066, allocations: 82.58 kB / 0.5792 GB, free: 129.9 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002062/1.068, allocations: 3.547 MB / 0.5827 GB, free: 127.2 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009124/1.069, allocations: 1.102 MB / 0.5837 GB, free: 126.4 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001029/1.07, allocations: 0.697 MB / 0.5844 GB, free: 126 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 3.97e-05/1.07, allocations: 307.2 kB / 0.5847 GB, free: 125.7 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002464/1.072, allocations: 1.836 MB / 0.5865 GB, free: 125 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002949/1.075, allocations: 2.931 MB / 0.5894 GB, free: 123 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005442/1.081, allocations: 5.001 MB / 0.5943 GB, free: 119.9 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.594e-05/1.081, allocations: 7.438 kB / 0.5943 GB, free: 119.9 MB / 478.1 MB Notification: Performance of matching and sorting (n=502) (initialization): time 0.009772/1.09, allocations: 6.114 MB / 0.6002 GB, free: 114.5 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.028e-05/1.09, allocations: 23.28 kB / 0.6003 GB, free: 114.4 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.783e-05/1.091, allocations: 32 kB / 0.6003 GB, free: 114.4 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001983/1.092, allocations: 0.8547 MB / 0.6011 GB, free: 113.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003029/1.096, allocations: 0.8229 MB / 0.6019 GB, free: 112.7 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0121/1.108, allocations: 16.28 MB / 0.6178 GB, free: 95.47 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00431/1.112, allocations: 179.5 kB / 0.618 GB, free: 95.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000677/1.113, allocations: 164 kB / 0.6182 GB, free: 95.14 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 148 * Number of states: 0 () * Number of discrete variables: 8 (idealCloser3.control[3],idealCloser3.control[2],idealCloser3.control[1],idealCloserM.control[5],idealCloserM.control[4],idealCloserM.control[3],idealCloserM.control[2],idealCloserM.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (439): * Single equations (assignments): 430 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(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): 7 systems {(1,5,100.0%), (1,1,100.0%), (3,23,100.0%), (1,1,100.0%), (1,2,100.0%), (1,2,100.0%), (4,22,56.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004787/1.118, allocations: 2.597 MB / 0.6207 GB, free: 92.54 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001384/1.119, allocations: 454.6 kB / 0.6211 GB, free: 92.09 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008458/1.127, allocations: 5.699 MB / 0.6267 GB, free: 86.27 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.855e-05/1.127, allocations: 31.94 kB / 0.6267 GB, free: 86.24 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.076e-05/1.127, allocations: 20 kB / 0.6267 GB, free: 86.22 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.548e-05/1.127, allocations: 15.94 kB / 0.6268 GB, free: 86.21 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02081/1.148, allocations: 12.7 MB / 0.6392 GB, free: 73.35 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.259e-05/1.148, allocations: 4 kB / 0.6392 GB, free: 73.35 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001564/1.15, allocations: 377.8 kB / 0.6395 GB, free: 72.98 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003375/1.153, allocations: 1.438 MB / 0.6409 GB, free: 71.51 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002174/1.154, allocations: 95.95 kB / 0.641 GB, free: 71.42 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02107/1.175, allocations: 26.45 MB / 0.6668 GB, free: 43.79 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/1.175, allocations: 12.09 kB / 0.6669 GB, free: 43.77 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01135/1.186, allocations: 8.156 MB / 0.6748 GB, free: 35.43 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002829/1.189, allocations: 0.9562 MB / 0.6758 GB, free: 34.45 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007256/1.19, allocations: 79.98 kB / 0.6758 GB, free: 34.37 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001967/1.192, allocations: 167.9 kB / 0.676 GB, free: 34.2 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007206/1.192, allocations: 321.9 kB / 0.6763 GB, free: 33.89 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001757/1.193, allocations: 87.98 kB / 0.6764 GB, free: 33.8 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003715/1.196, allocations: 3.025 MB / 0.6793 GB, free: 30.77 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.9e-07/1.196, allocations: 0 / 0.6793 GB, free: 30.77 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004787/1.201, allocations: 1.444 MB / 0.6807 GB, free: 29.33 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 12 (aimcM.inertiaRotor.w,aimcM.stator.core.Phi.re,aimcM.stator.core.Phi.im,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[5].Phi.re,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[5].Phi.im,quadraticLoadTorqueM.phi,aimc3.inertiaRotor.w,aimc3.stator.core.Phi.re,aimc3.stator.core.Phi.im,aimc3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque3.phi) * Number of discrete variables: 8 (idealCloserM.control[1],idealCloserM.control[2],idealCloserM.control[3],idealCloserM.control[4],idealCloserM.control[5],idealCloser3.control[1],idealCloser3.control[2],idealCloser3.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (197): * Single equations (assignments): 188 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 9 systems {(1,1,100.0%), (1,13,100.0%), (1,5,100.0%), (1,8,100.0%), (2,12,100.0%), (1,1,100.0%), (3,23,100.0%), (6,46,72.2%), (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.0005469/1.202, allocations: 221.2 kB / 0.681 GB, free: 29.11 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007226/1.209, allocations: 5.714 MB / 0.6865 GB, free: 23.25 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.731e-06/1.209, allocations: 0 / 0.6865 GB, free: 23.25 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005261/1.214, allocations: 4.11 MB / 0.6905 GB, free: 19.03 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005864/1.22, allocations: 1.241 MB / 0.6918 GB, free: 17.78 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02679/1.247, allocations: 14.46 MB / 0.7059 GB, free: 3.266 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007216/1.254, allocations: 5.1 MB / 0.7109 GB, free: 14.14 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004189/1.258, allocations: 1.015 MB / 0.7119 GB, free: 13.12 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001296/1.26, allocations: 283.4 kB / 0.7121 GB, free: 12.84 MB / 494.1 MB Notification: Performance of SimCode: time 1.463e-06/1.26, allocations: 0 / 0.7121 GB, free: 12.84 MB / 494.1 MB Notification: Performance of Templates: time 0.3822/1.642, allocations: 72.09 MB / 0.7825 GB, free: 140.6 MB / 0.4982 GB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.pipe 2>&1)