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.01037/0.01037, allocations: 98.36 kB / 15.73 MB, free: 5.551 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.001703/0.001703, allocations: 196.2 kB / 16.68 MB, free: 5.48 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.35/1.35, allocations: 205.1 MB / 222.6 MB, free: 4.473 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.001176/0.001176, allocations: 53.91 kB / 326.6 MB, free: 14.31 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09054/0.09173, allocations: 46.63 MB / 373.2 MB, free: 1.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase): time 0.02705/0.1188, allocations: 23.7 MB / 396.9 MB, free: 9.461 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01364/0.1325, allocations: 6.488 MB / 403.4 MB, free: 2.953 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004509/0.1371, allocations: 135.4 kB / 403.5 MB, free: 2.82 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005221/0.1424, allocations: 1.603 MB / 405.1 MB, free: 1.207 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008159/0.1506, allocations: 2.205 MB / 407.3 MB, free: 14.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004583/0.1552, allocations: 1.423 MB / 408.8 MB, free: 13.56 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01348/0.1687, allocations: 9.869 MB / 418.6 MB, free: 3.652 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01196/0.1807, allocations: 7.988 MB / 426.6 MB, free: 11.56 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006703/0.1874, allocations: 4.635 MB / 431.2 MB, free: 6.91 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008034/0.1955, allocations: 5.266 MB / 436.5 MB, free: 1.625 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003298/0.1988, allocations: 1.305 MB / 437.8 MB, free: 328 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004942/0.2038, allocations: 1.5 MB / 439.3 MB, free: 14.82 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00382/0.2076, allocations: 2.941 MB / 442.3 MB, free: 11.87 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01066/0.2183, allocations: 5.423 MB / 447.7 MB, free: 6.426 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2193/0.4376, allocations: 17.04 MB / 464.7 MB, free: 31.95 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.297e-05/0.4377, allocations: 3.75 kB / 464.7 MB, free: 31.95 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.456e-06/0.4377, allocations: 1.125 kB / 464.7 MB, free: 31.95 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0007191/0.4384, allocations: 1.219 kB / 464.7 MB, free: 31.95 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.04504/0.4835, allocations: 10.79 MB / 475.5 MB, free: 27.22 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.906e-05/0.4835, allocations: 13.48 kB / 475.5 MB, free: 27.22 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0139/0.4975, allocations: 2.081 MB / 477.6 MB, free: 26.35 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01516/0.5127, allocations: 5.609 MB / 483.2 MB, free: 24.06 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007602/0.5135, allocations: 0.5939 MB / 483.8 MB, free: 23.79 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004744/0.5182, allocations: 0.7887 MB / 484.6 MB, free: 23.52 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03117/0.5494, allocations: 11.33 MB / 495.9 MB, free: 16.85 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002264/0.5497, allocations: 11.31 kB / 495.9 MB, free: 16.84 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002698/0.5524, allocations: 333.9 kB / 496.3 MB, free: 16.59 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003069/0.5527, allocations: 374 kB / 496.6 MB, free: 16.54 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02095/0.5737, allocations: 9.884 MB / 0.4946 GB, free: 8.023 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07362/0.6473, allocations: 34.14 MB / 0.528 GB, free: 5.945 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0226/0.67, allocations: 19.89 MB / 0.5474 GB, free: 44 kB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006914/0.6769, allocations: 3.677 MB / 0.551 GB, free: 12.36 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01863/0.6956, allocations: 9.493 MB / 0.5603 GB, free: 2.883 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.493e-05/0.6957, allocations: 76.5 kB / 0.5603 GB, free: 2.801 MB / 446.1 MB Notification: Performance of pre-optimization done (n=321): time 5.731e-06/0.6957, allocations: 0 / 0.5603 GB, free: 2.801 MB / 446.1 MB Notification: Performance of matching and sorting (n=327): time 0.03899/0.7347, allocations: 15.31 MB / 0.5753 GB, free: 3.242 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.723e-05/0.7348, allocations: 85.98 kB / 0.5754 GB, free: 3.145 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009581/0.7444, allocations: 4.413 MB / 0.5797 GB, free: 14.71 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000766/0.7452, allocations: 81.7 kB / 0.5798 GB, free: 14.63 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002818/0.7481, allocations: 3.642 MB / 0.5833 GB, free: 10.98 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001457/0.7495, allocations: 1.16 MB / 0.5844 GB, free: 9.832 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001212/0.7508, allocations: 0.7006 MB / 0.5851 GB, free: 9.129 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001083/0.7509, allocations: 301.1 kB / 0.5854 GB, free: 8.832 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003282/0.7542, allocations: 1.846 MB / 0.5872 GB, free: 6.988 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003922/0.7581, allocations: 2.923 MB / 0.5901 GB, free: 3.629 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007496/0.7656, allocations: 5.008 MB / 0.595 GB, free: 14.28 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-05/0.7657, allocations: 12 kB / 0.595 GB, free: 14.27 MB / 494.1 MB Notification: Performance of matching and sorting (n=502) (initialization): time 0.01095/0.7766, allocations: 6.136 MB / 0.601 GB, free: 8.277 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.233e-05/0.7767, allocations: 20 kB / 0.601 GB, free: 8.258 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.503e-05/0.7767, allocations: 32 kB / 0.601 GB, free: 8.227 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00225/0.779, allocations: 0.8385 MB / 0.6018 GB, free: 7.363 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003158/0.7822, allocations: 0.8279 MB / 0.6026 GB, free: 6.586 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01686/0.799, allocations: 16.29 MB / 0.6186 GB, free: 5.402 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004163/0.8032, allocations: 180 kB / 0.6187 GB, free: 5.227 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005615/0.8038, allocations: 164 kB / 0.6189 GB, free: 5.066 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.005364/0.8092, allocations: 2.588 MB / 0.6214 GB, free: 2.52 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001118/0.8103, allocations: 484.9 kB / 0.6219 GB, free: 2.043 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0103/0.8206, allocations: 5.684 MB / 0.6274 GB, free: 12.3 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.692e-05/0.8207, allocations: 36 kB / 0.6275 GB, free: 12.27 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.391e-05/0.8207, allocations: 20 kB / 0.6275 GB, free: 12.25 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.032e-05/0.8208, allocations: 19.88 kB / 0.6275 GB, free: 12.23 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2417/1.062, allocations: 12.69 MB / 0.6399 GB, free: 187.1 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.932e-05/1.062, allocations: 4.797 kB / 0.6399 GB, free: 187.1 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002082/1.065, allocations: 380.4 kB / 0.6403 GB, free: 187.1 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004064/1.069, allocations: 1.447 MB / 0.6417 GB, free: 187 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005302/1.069, allocations: 93.56 kB / 0.6418 GB, free: 187 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02377/1.093, allocations: 26.47 MB / 0.6676 GB, free: 169.3 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/1.093, allocations: 6.219 kB / 0.6676 GB, free: 169.3 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01205/1.105, allocations: 8.183 MB / 0.6756 GB, free: 165.8 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002506/1.108, allocations: 0.9819 MB / 0.6766 GB, free: 165.4 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009893/1.109, allocations: 81.89 kB / 0.6766 GB, free: 165.4 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002333/1.111, allocations: 162.2 kB / 0.6768 GB, free: 165.3 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007587/1.112, allocations: 330.2 kB / 0.6771 GB, free: 165.3 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000213/1.112, allocations: 88.8 kB / 0.6772 GB, free: 165.2 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.004377/1.116, allocations: 3.024 MB / 0.6801 GB, free: 164.1 MB / 0.5137 GB Notification: Performance of sort global known variables: time 3.41e-07/1.116, allocations: 0 / 0.6801 GB, free: 164.1 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.005519/1.122, allocations: 1.44 MB / 0.6815 GB, free: 164 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.0005773/1.123, allocations: 217.4 kB / 0.6818 GB, free: 163.8 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007815/1.13, allocations: 5.728 MB / 0.6873 GB, free: 159.9 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 8.657e-06/1.13, allocations: 4 kB / 0.6874 GB, free: 159.9 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.005519/1.136, allocations: 4.116 MB / 0.6914 GB, free: 156.2 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006863/1.143, allocations: 1.25 MB / 0.6926 GB, free: 155.2 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02921/1.172, allocations: 14.69 MB / 0.7069 GB, free: 140.9 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005799/1.178, allocations: 5.104 MB / 0.7119 GB, free: 135.8 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.003838/1.182, allocations: 1.011 MB / 0.7129 GB, free: 134.7 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008819/1.183, allocations: 283.4 kB / 0.7132 GB, free: 134.5 MB / 0.5137 GB Notification: Performance of SimCode: time 1.432e-06/1.183, allocations: 0 / 0.7132 GB, free: 134.5 MB / 0.5137 GB Notification: Performance of Templates: time 0.09879/1.281, allocations: 71.11 MB / 0.7826 GB, free: 63.32 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)