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.001116/0.001116, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001152/0.001152, allocations: 195.8 kB / 16.53 MB, free: 6.664 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.418/1.418, allocations: 205.1 MB / 222.4 MB, free: 4.617 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.001245/0.001245, allocations: 55.92 kB / 278.7 MB, free: 12.35 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2159/0.2172, allocations: 46.64 MB / 325.3 MB, free: 1.844 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase): time 0.02515/0.2424, allocations: 23.7 MB / 349 MB, free: 12.13 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01576/0.2582, allocations: 6.5 MB / 355.5 MB, free: 5.613 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004551/0.2628, allocations: 139.4 kB / 355.7 MB, free: 5.477 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004794/0.2676, allocations: 1.591 MB / 357.2 MB, free: 3.875 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007796/0.2754, allocations: 2.193 MB / 359.4 MB, free: 1.668 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00429/0.2797, allocations: 1.431 MB / 360.9 MB, free: 240 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01168/0.2914, allocations: 9.819 MB / 370.7 MB, free: 6.375 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01185/0.3033, allocations: 7.98 MB / 378.7 MB, free: 14.29 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006935/0.3103, allocations: 4.627 MB / 383.3 MB, free: 9.645 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00818/0.3185, allocations: 5.247 MB / 388.5 MB, free: 4.379 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004109/0.3226, allocations: 1.305 MB / 389.8 MB, free: 3.074 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006265/0.3289, allocations: 1.515 MB / 391.4 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004675/0.3336, allocations: 2.953 MB / 394.3 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009931/0.3436, allocations: 5.411 MB / 399.7 MB, free: 9.164 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01957/0.3632, allocations: 16.88 MB / 416.6 MB, free: 8.234 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.3632, allocations: 0 / 416.6 MB, free: 8.234 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3632, allocations: 0 / 416.6 MB, free: 8.234 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0006007/0.3638, allocations: 0 / 416.6 MB, free: 8.234 MB / 350.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.03563/0.3995, allocations: 10.56 MB / 427.2 MB, free: 13.57 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.965e-05/0.3995, allocations: 15.89 kB / 427.2 MB, free: 13.55 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01225/0.4118, allocations: 2.039 MB / 429.2 MB, free: 11.5 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01326/0.4251, allocations: 5.519 MB / 434.7 MB, free: 5.91 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005992/0.4257, allocations: 0.5943 MB / 435.3 MB, free: 5.312 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002862/0.4286, allocations: 0.789 MB / 436.1 MB, free: 4.523 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02707/0.4557, allocations: 11.33 MB / 447.5 MB, free: 9.082 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003005/0.456, allocations: 7.906 kB / 447.5 MB, free: 9.074 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002023/0.458, allocations: 332 kB / 447.8 MB, free: 8.75 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003609/0.4584, allocations: 372.3 kB / 448.1 MB, free: 8.383 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3168/0.7752, allocations: 9.886 MB / 458 MB, free: 99.23 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05557/0.8309, allocations: 34.5 MB / 492.5 MB, free: 76 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01669/0.8476, allocations: 19.89 MB / 0.5004 GB, free: 55.1 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005819/0.8535, allocations: 3.72 MB / 0.504 GB, free: 51.39 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0175/0.871, allocations: 9.524 MB / 0.5133 GB, free: 41.84 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.692e-05/0.8711, allocations: 73.09 kB / 0.5134 GB, free: 41.75 MB / 382.1 MB Notification: Performance of pre-optimization done (n=321): time 4.799e-06/0.8711, allocations: 0 / 0.5134 GB, free: 41.75 MB / 382.1 MB Notification: Performance of matching and sorting (n=327): time 0.03075/0.9019, allocations: 15.19 MB / 0.5283 GB, free: 26.22 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.218e-05/0.902, allocations: 85.92 kB / 0.5283 GB, free: 26.12 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007405/0.9094, allocations: 4.41 MB / 0.5326 GB, free: 21.7 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005891/0.91, allocations: 85.7 kB / 0.5327 GB, free: 21.61 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001939/0.9119, allocations: 3.541 MB / 0.5362 GB, free: 18.04 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001069/0.913, allocations: 1.104 MB / 0.5373 GB, free: 16.95 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001562/0.9146, allocations: 0.6927 MB / 0.5379 GB, free: 16.25 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.217e-05/0.9147, allocations: 305.1 kB / 0.5382 GB, free: 15.95 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002726/0.9174, allocations: 1.846 MB / 0.54 GB, free: 14.1 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003063/0.9205, allocations: 2.926 MB / 0.5429 GB, free: 10.73 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006039/0.9265, allocations: 4.997 MB / 0.5478 GB, free: 5.25 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-05/0.9266, allocations: 16 kB / 0.5478 GB, free: 5.234 MB / 382.1 MB Notification: Performance of matching and sorting (n=502) (initialization): time 0.01021/0.9368, allocations: 6.115 MB / 0.5538 GB, free: 15.04 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.502e-05/0.9369, allocations: 20 kB / 0.5538 GB, free: 15.02 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.239e-05/0.937, allocations: 32 kB / 0.5538 GB, free: 14.98 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002255/0.9392, allocations: 0.8474 MB / 0.5546 GB, free: 14.11 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00359/0.9428, allocations: 0.8307 MB / 0.5554 GB, free: 13.28 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01609/0.9589, allocations: 16.28 MB / 0.5713 GB, free: 12.03 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003687/0.9627, allocations: 179.9 kB / 0.5715 GB, free: 11.86 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006742/0.9634, allocations: 164 kB / 0.5717 GB, free: 11.7 MB / 414.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.005466/0.9689, allocations: 2.595 MB / 0.5742 GB, free: 9.09 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001421/0.9703, allocations: 454.5 kB / 0.5746 GB, free: 8.641 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01214/0.9824, allocations: 5.7 MB / 0.5802 GB, free: 2.828 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.786e-05/0.9825, allocations: 32 kB / 0.5802 GB, free: 2.797 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.325e-05/0.9826, allocations: 20 kB / 0.5803 GB, free: 2.777 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.391e-05/0.9826, allocations: 15.94 kB / 0.5803 GB, free: 2.762 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02505/1.008, allocations: 12.7 MB / 0.5927 GB, free: 5.906 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.745e-05/1.008, allocations: 4.438 kB / 0.5927 GB, free: 5.902 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001812/1.01, allocations: 383.6 kB / 0.593 GB, free: 5.527 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003791/1.013, allocations: 1.467 MB / 0.5945 GB, free: 4.035 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003461/1.014, allocations: 99.89 kB / 0.5946 GB, free: 3.938 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2042/1.218, allocations: 26.46 MB / 0.6204 GB, free: 144.3 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.23e-06/1.218, allocations: 3.125 kB / 0.6204 GB, free: 144.3 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01298/1.231, allocations: 8.162 MB / 0.6284 GB, free: 142.2 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002398/1.233, allocations: 0.959 MB / 0.6293 GB, free: 141.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001222/1.235, allocations: 79.08 kB / 0.6294 GB, free: 141.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002468/1.237, allocations: 168.1 kB / 0.6295 GB, free: 141.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000789/1.238, allocations: 318.9 kB / 0.6299 GB, free: 141.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002069/1.238, allocations: 97.89 kB / 0.6299 GB, free: 141.6 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004525/1.243, allocations: 3.016 MB / 0.6329 GB, free: 140.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.01e-07/1.243, allocations: 1.25 kB / 0.6329 GB, free: 140.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005685/1.248, allocations: 1.441 MB / 0.6343 GB, free: 140.4 MB / 446.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.0006224/1.249, allocations: 223.2 kB / 0.6345 GB, free: 140.2 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01724/1.266, allocations: 8.034 MB / 0.6424 GB, free: 136.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-05/1.266, allocations: 8 kB / 0.6424 GB, free: 136.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006356/1.273, allocations: 4.11 MB / 0.6464 GB, free: 132.5 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007622/1.28, allocations: 1.251 MB / 0.6476 GB, free: 131.5 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02703/1.307, allocations: 14.63 MB / 0.6619 GB, free: 118.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006623/1.314, allocations: 5.098 MB / 0.6669 GB, free: 113.9 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004309/1.318, allocations: 1.015 MB / 0.6679 GB, free: 112.9 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001196/1.32, allocations: 283.9 kB / 0.6681 GB, free: 112.6 MB / 446.1 MB Notification: Performance of SimCode: time 1.042e-06/1.32, allocations: 0 / 0.6681 GB, free: 112.6 MB / 446.1 MB Notification: Performance of Templates: time 0.1145/1.434, allocations: 73.97 MB / 0.7404 GB, free: 38.57 MB / 446.1 MB 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)