Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.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_YD,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00101/0.00101, allocations: 100.5 kB / 15.05 MB, free: 1.105 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.001023/0.001023, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.595/1.595, allocations: 205.4 MB / 222.1 MB, free: 5.867 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.0005372/0.0005373, allocations: 12 kB / 278.9 MB, free: 13.04 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2944/0.2949, allocations: 47.58 MB / 326.5 MB, free: 1.387 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD): time 0.01291/0.3079, allocations: 11 MB / 337.5 MB, free: 8.516 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.009291/0.3172, allocations: 4.304 MB / 341.8 MB, free: 4.203 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002135/0.3194, allocations: 67.69 kB / 341.8 MB, free: 4.137 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002017/0.3214, allocations: 0.8045 MB / 342.6 MB, free: 3.328 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002865/0.3243, allocations: 1.207 MB / 343.8 MB, free: 2.117 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00148/0.3258, allocations: 0.6158 MB / 344.5 MB, free: 1.5 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.004567/0.3304, allocations: 3.162 MB / 347.6 MB, free: 14.33 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0029/0.3333, allocations: 2.541 MB / 350.2 MB, free: 11.74 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002167/0.3355, allocations: 1.448 MB / 351.6 MB, free: 10.29 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001903/0.3374, allocations: 1.712 MB / 353.3 MB, free: 8.57 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003391/0.3377, allocations: 236 kB / 353.5 MB, free: 8.34 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001008/0.3387, allocations: 407.7 kB / 353.9 MB, free: 7.941 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007295/0.3395, allocations: 0.8683 MB / 354.8 MB, free: 7.07 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007699/0.3403, allocations: 0.8512 MB / 355.7 MB, free: 6.211 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005136/0.3454, allocations: 6.284 MB / 361.9 MB, free: 15.91 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.855e-06/0.3454, allocations: 3.938 kB / 362 MB, free: 15.9 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.3454, allocations: 0 / 362 MB, free: 15.9 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.00014/0.3456, allocations: 0 / 362 MB, free: 15.9 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 945 * Number of variables: 945 Notification: Performance of Generate backend data structure: time 0.01006/0.3556, allocations: 4.284 MB / 366.2 MB, free: 11.55 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.156e-05/0.3557, allocations: 16.03 kB / 366.3 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004326/0.36, allocations: 0.881 MB / 367.1 MB, free: 10.65 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004791/0.3648, allocations: 2.522 MB / 369.7 MB, free: 8.074 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002368/0.3651, allocations: 275.2 kB / 369.9 MB, free: 7.805 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005415/0.3656, allocations: 359.9 kB / 370.3 MB, free: 7.453 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008599/0.3743, allocations: 4.986 MB / 375.3 MB, free: 2.414 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.152e-05/0.3743, allocations: 19.88 kB / 375.3 MB, free: 2.395 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003389/0.3747, allocations: 144 kB / 375.4 MB, free: 2.254 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000161/0.3749, allocations: 163.2 kB / 375.6 MB, free: 2.094 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00801/0.3829, allocations: 4.377 MB / 380 MB, free: 13.71 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02536/0.4083, allocations: 15.94 MB / 395.9 MB, free: 13.39 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007524/0.4158, allocations: 7.776 MB / 403.7 MB, free: 4.719 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007325/0.4232, allocations: 4.039 MB / 407.7 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.79e-05/0.4233, allocations: 56.55 kB / 407.8 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of pre-optimization done (n=167): time 3.537e-06/0.4233, allocations: 4 kB / 407.8 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of matching and sorting (n=170): time 0.01831/0.4416, allocations: 8.328 MB / 416.1 MB, free: 7.984 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.292e-05/0.4417, allocations: 69.41 kB / 416.2 MB, free: 7.906 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004136/0.4459, allocations: 2.096 MB / 418.3 MB, free: 5.773 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001451/0.446, allocations: 57.7 kB / 418.3 MB, free: 5.711 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001226/0.4473, allocations: 1.604 MB / 419.9 MB, free: 4.09 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005098/0.4478, allocations: 0.5699 MB / 420.5 MB, free: 3.512 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001215/0.4479, allocations: 40 kB / 420.5 MB, free: 3.473 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001809/0.4481, allocations: 385.9 kB / 420.9 MB, free: 3.09 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001612/0.4497, allocations: 0.9642 MB / 421.9 MB, free: 2.125 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001977/0.4517, allocations: 1.463 MB / 423.3 MB, free: 464 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002006/0.4538, allocations: 1.201 MB / 424.5 MB, free: 15.25 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.921e-05/0.4538, allocations: 4 kB / 424.5 MB, free: 15.25 MB / 366.1 MB Notification: Performance of matching and sorting (n=249) (initialization): time 0.006039/0.4599, allocations: 3.395 MB / 427.9 MB, free: 11.81 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.654e-05/0.4599, allocations: 16 kB / 428 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.946e-05/0.46, allocations: 12 kB / 428 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001912/0.4619, allocations: 0.7275 MB / 428.7 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001507/0.4634, allocations: 391.4 kB / 429.1 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01257/0.476, allocations: 10.62 MB / 439.7 MB, free: 15.51 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001883/0.4779, allocations: 92.05 kB / 439.8 MB, free: 15.42 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003058/0.4782, allocations: 83.98 kB / 439.9 MB, free: 15.34 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * Number of states: 0 () * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (199): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 8,(9,33.3%) 19,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002747/0.481, allocations: 1.219 MB / 441.1 MB, free: 14.11 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006273/0.4816, allocations: 225.2 kB / 441.3 MB, free: 13.88 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006279/0.4879, allocations: 3.246 MB / 444.5 MB, free: 10.57 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.112e-05/0.488, allocations: 16.38 kB / 444.6 MB, free: 10.55 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.869e-05/0.488, allocations: 8 kB / 444.6 MB, free: 10.54 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.69e-05/0.488, allocations: 11.97 kB / 444.6 MB, free: 10.53 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01268/0.5007, allocations: 6.666 MB / 451.3 MB, free: 3.719 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.123e-05/0.5008, allocations: 7.922 kB / 451.3 MB, free: 3.711 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009138/0.5017, allocations: 191.7 kB / 451.4 MB, free: 3.523 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002259/0.504, allocations: 0.8911 MB / 452.3 MB, free: 2.613 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001273/0.5041, allocations: 43.98 kB / 452.4 MB, free: 2.57 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2321/0.7362, allocations: 15.05 MB / 467.4 MB, free: 100.2 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.498e-06/0.7363, allocations: 5.656 kB / 467.4 MB, free: 100.2 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007259/0.7436, allocations: 4.739 MB / 472.2 MB, free: 98.08 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001293/0.7449, allocations: 0.5263 MB / 472.7 MB, free: 97.84 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002846/0.7452, allocations: 39.81 kB / 472.7 MB, free: 97.81 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009871/0.7462, allocations: 88.2 kB / 472.8 MB, free: 97.79 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005391/0.7467, allocations: 160.1 kB / 473 MB, free: 97.77 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.985e-05/0.7468, allocations: 45.38 kB / 473 MB, free: 97.76 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002113/0.749, allocations: 1.436 MB / 474.5 MB, free: 97.18 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.749, allocations: 0 / 474.5 MB, free: 97.18 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002474/0.7515, allocations: 0.6993 MB / 475.2 MB, free: 97.12 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (100): * Single equations (assignments): 94 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 8,(9,33.3%) 19,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000374/0.7518, allocations: 182.7 kB / 475.3 MB, free: 96.99 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004435/0.7563, allocations: 3.181 MB / 478.5 MB, free: 95.45 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.908e-06/0.7563, allocations: 0 / 478.5 MB, free: 95.45 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003083/0.7594, allocations: 2.31 MB / 480.8 MB, free: 93.46 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002509/0.7619, allocations: 0.5848 MB / 481.4 MB, free: 92.91 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01071/0.7726, allocations: 8.204 MB / 489.6 MB, free: 84.71 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001975/0.7746, allocations: 2.74 MB / 492.4 MB, free: 81.94 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001656/0.7763, allocations: 487.4 kB / 492.8 MB, free: 81.46 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003098/0.7766, allocations: 139.4 kB / 493 MB, free: 81.32 MB / 382.1 MB Notification: Performance of SimCode: time 1.152e-06/0.7766, allocations: 0 / 493 MB, free: 81.32 MB / 382.1 MB Notification: Performance of Templates: time 0.05283/0.8295, allocations: 35.11 MB / 0.5157 GB, free: 46.17 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe 2>&1) Environment - environmentSimulation: