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.004951/0.004951, allocations: 103.5 kB / 15.74 MB, free: 6.492 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.001477/0.001477, allocations: 198.5 kB / 16.68 MB, free: 6.375 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.33/1.33, allocations: 205.1 MB / 222.5 MB, free: 4.516 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.001204/0.001204, allocations: 51.89 kB / 326.6 MB, free: 14.41 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07603/0.07725, allocations: 46.64 MB / 373.2 MB, free: 1.281 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase): time 0.02539/0.1027, allocations: 23.69 MB / 396.9 MB, free: 9.48 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01849/0.1212, allocations: 6.492 MB / 403.4 MB, free: 2.969 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005495/0.1268, allocations: 139.4 kB / 403.5 MB, free: 2.832 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005193/0.132, allocations: 1.65 MB / 405.2 MB, free: 1.172 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007361/0.1394, allocations: 2.291 MB / 407.5 MB, free: 14.87 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004042/0.1435, allocations: 1.427 MB / 408.9 MB, free: 13.44 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01236/0.1558, allocations: 9.873 MB / 418.8 MB, free: 3.523 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01097/0.1668, allocations: 7.984 MB / 426.7 MB, free: 11.43 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008889/0.1758, allocations: 4.67 MB / 431.4 MB, free: 6.75 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01001/0.1858, allocations: 5.266 MB / 436.7 MB, free: 1.465 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004115/0.19, allocations: 1.305 MB / 438 MB, free: 164 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004959/0.195, allocations: 1.5 MB / 439.5 MB, free: 14.66 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004696/0.1997, allocations: 2.949 MB / 442.4 MB, free: 11.7 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01037/0.2101, allocations: 5.415 MB / 447.9 MB, free: 6.266 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2323/0.4424, allocations: 17 MB / 464.9 MB, free: 32.04 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.344e-06/0.4425, allocations: 0 / 464.9 MB, free: 32.04 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.654e-06/0.4425, allocations: 1.219 kB / 464.9 MB, free: 32.04 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005401/0.443, allocations: 0 / 464.9 MB, free: 32.04 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.04264/0.4857, allocations: 10.56 MB / 475.4 MB, free: 27.46 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.988e-05/0.4858, allocations: 13.48 kB / 475.4 MB, free: 27.46 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01433/0.5001, allocations: 2.039 MB / 477.5 MB, free: 26.64 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01253/0.5127, allocations: 5.577 MB / 483 MB, free: 24.44 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004554/0.5132, allocations: 0.595 MB / 483.6 MB, free: 24.16 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002963/0.5161, allocations: 0.7883 MB / 484.4 MB, free: 23.89 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0328/0.5489, allocations: 11.32 MB / 495.7 MB, free: 17.23 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002676/0.5492, allocations: 10.97 kB / 495.8 MB, free: 17.22 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003386/0.5526, allocations: 327.3 kB / 496.1 MB, free: 16.97 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003213/0.553, allocations: 384.7 kB / 496.5 MB, free: 16.91 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02169/0.5747, allocations: 9.876 MB / 0.4945 GB, free: 8.457 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07241/0.6471, allocations: 34.04 MB / 0.5277 GB, free: 6.461 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02204/0.6692, allocations: 19.88 MB / 0.5471 GB, free: 0.5625 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008262/0.6775, allocations: 3.687 MB / 0.5507 GB, free: 12.88 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02574/0.7033, allocations: 9.48 MB / 0.56 GB, free: 3.402 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.27e-05/0.7034, allocations: 76.5 kB / 0.5601 GB, free: 3.32 MB / 446.1 MB Notification: Performance of pre-optimization done (n=321): time 4.629e-06/0.7034, allocations: 5.406 kB / 0.5601 GB, free: 3.316 MB / 446.1 MB Notification: Performance of matching and sorting (n=327): time 0.03737/0.7408, allocations: 15.19 MB / 0.5749 GB, free: 3.863 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.35e-05/0.7409, allocations: 88.39 kB / 0.575 GB, free: 3.766 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01182/0.7528, allocations: 4.412 MB / 0.5793 GB, free: 15.34 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001204/0.754, allocations: 77.7 kB / 0.5794 GB, free: 15.25 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003386/0.7574, allocations: 3.546 MB / 0.5828 GB, free: 11.69 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001551/0.759, allocations: 1.103 MB / 0.5839 GB, free: 10.59 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002256/0.7613, allocations: 0.7005 MB / 0.5846 GB, free: 9.887 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001051/0.7614, allocations: 305.1 kB / 0.5849 GB, free: 9.586 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003551/0.7649, allocations: 1.838 MB / 0.5867 GB, free: 7.75 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004276/0.7692, allocations: 2.928 MB / 0.5895 GB, free: 4.383 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007856/0.7771, allocations: 4.993 MB / 0.5944 GB, free: 15.05 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.731e-05/0.7772, allocations: 12 kB / 0.5944 GB, free: 15.04 MB / 494.1 MB Notification: Performance of matching and sorting (n=502) (initialization): time 0.01247/0.7897, allocations: 6.114 MB / 0.6004 GB, free: 9.062 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.129e-05/0.7897, allocations: 20 kB / 0.6004 GB, free: 9.043 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.664e-05/0.7898, allocations: 36.56 kB / 0.6004 GB, free: 9.012 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0023/0.7921, allocations: 0.854 MB / 0.6013 GB, free: 8.133 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00376/0.7959, allocations: 0.8286 MB / 0.6021 GB, free: 7.355 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01686/0.8128, allocations: 16.28 MB / 0.618 GB, free: 6.191 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005343/0.8182, allocations: 179.9 kB / 0.6181 GB, free: 6.016 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001735/0.8199, allocations: 168 kB / 0.6183 GB, free: 5.852 MB / 0.4981 GB 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.007335/0.8273, allocations: 2.592 MB / 0.6208 GB, free: 3.301 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001707/0.829, allocations: 460.9 kB / 0.6213 GB, free: 2.848 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01204/0.8411, allocations: 5.685 MB / 0.6268 GB, free: 13.11 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.284e-05/0.8411, allocations: 28 kB / 0.6269 GB, free: 13.08 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.084e-05/0.8412, allocations: 23.98 kB / 0.6269 GB, free: 13.06 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.784e-05/0.8412, allocations: 19.88 kB / 0.6269 GB, free: 13.04 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02642/0.8677, allocations: 12.69 MB / 0.6393 GB, free: 284 kB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.531e-05/0.8677, allocations: 7.938 kB / 0.6393 GB, free: 276 kB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.2321/1.1, allocations: 380.4 kB / 0.6397 GB, free: 189.5 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004615/1.105, allocations: 1.438 MB / 0.6411 GB, free: 189.4 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006316/1.105, allocations: 96.94 kB / 0.6411 GB, free: 189.4 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02431/1.13, allocations: 26.44 MB / 0.667 GB, free: 171.7 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/1.13, allocations: 3.906 kB / 0.667 GB, free: 171.7 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01239/1.142, allocations: 8.16 MB / 0.6749 GB, free: 168.2 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002654/1.145, allocations: 0.9559 MB / 0.6759 GB, free: 167.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008289/1.145, allocations: 77.58 kB / 0.676 GB, free: 167.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002063/1.148, allocations: 170 kB / 0.6761 GB, free: 167.7 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009209/1.148, allocations: 321.8 kB / 0.6764 GB, free: 167.7 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002265/1.149, allocations: 89.98 kB / 0.6765 GB, free: 167.7 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.004708/1.153, allocations: 3.029 MB / 0.6795 GB, free: 166.5 MB / 0.5137 GB Notification: Performance of sort global known variables: time 3.1e-07/1.153, allocations: 0 / 0.6795 GB, free: 166.5 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.005185/1.159, allocations: 1.442 MB / 0.6809 GB, free: 166.4 MB / 0.5137 GB 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.0005156/1.159, allocations: 217.2 kB / 0.6811 GB, free: 166.2 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007542/1.167, allocations: 5.715 MB / 0.6867 GB, free: 161.3 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 7.925e-06/1.167, allocations: 4 kB / 0.6867 GB, free: 161.3 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.005313/1.172, allocations: 4.104 MB / 0.6907 GB, free: 157.6 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006233/1.178, allocations: 1.253 MB / 0.6919 GB, free: 156.6 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02286/1.201, allocations: 14.45 MB / 0.706 GB, free: 142.5 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004529/1.206, allocations: 5.108 MB / 0.711 GB, free: 137.4 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.003245/1.209, allocations: 1.015 MB / 0.712 GB, free: 136.4 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007763/1.21, allocations: 283.4 kB / 0.7123 GB, free: 136.1 MB / 0.5137 GB Notification: Performance of SimCode: time 8.91e-07/1.21, allocations: 0 / 0.7123 GB, free: 136.1 MB / 0.5137 GB Notification: Performance of Templates: time 0.1067/1.317, allocations: 71.11 MB / 0.7817 GB, free: 64.95 MB / 0.5137 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)