Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.000913/0.0009132, allocations: 93.42 kB / 16.3 MB, free: 6.133 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.0009329/0.000933, allocations: 178.9 kB / 17.19 MB, free: 6.016 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.415/1.415, allocations: 205.4 MB / 223.3 MB, free: 13.17 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.0005319/0.0005321, allocations: 16 kB / 280.1 MB, free: 3.738 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1028, allocations: 47.58 MB / 327.7 MB, free: 4.09 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD): time 0.01232/0.1151, allocations: 11 MB / 338.7 MB, free: 9.047 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008729/0.1239, allocations: 4.315 MB / 343 MB, free: 4.723 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00223/0.1262, allocations: 67.69 kB / 343.1 MB, free: 4.656 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00242/0.1286, allocations: 0.8046 MB / 343.9 MB, free: 3.848 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003648/0.1323, allocations: 1.184 MB / 345.1 MB, free: 2.66 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001779/0.1341, allocations: 0.6314 MB / 345.7 MB, free: 2.027 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00487/0.139, allocations: 3.166 MB / 348.9 MB, free: 14.85 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003189/0.1422, allocations: 2.549 MB / 351.4 MB, free: 12.26 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002322/0.1445, allocations: 1.436 MB / 352.9 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003021/0.1475, allocations: 1.723 MB / 354.6 MB, free: 9.086 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000742/0.1483, allocations: 236 kB / 354.8 MB, free: 8.855 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001495/0.1498, allocations: 399.8 kB / 355.2 MB, free: 8.465 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009152/0.1507, allocations: 0.8683 MB / 356.1 MB, free: 7.594 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001207/0.152, allocations: 0.8512 MB / 356.9 MB, free: 6.734 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007078/0.159, allocations: 6.288 MB / 363.2 MB, free: 440 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.1591, allocations: 0 / 363.2 MB, free: 440 kB / 302.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.1591, allocations: 4 kB / 363.2 MB, free: 436 kB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002491/0.1594, allocations: 4 kB / 363.2 MB, free: 432 kB / 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.01264/0.172, allocations: 4.284 MB / 367.5 MB, free: 12.07 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.537e-05/0.1721, allocations: 8.031 kB / 367.5 MB, free: 12.06 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004978/0.1771, allocations: 0.881 MB / 368.4 MB, free: 11.17 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005821/0.1829, allocations: 2.53 MB / 370.9 MB, free: 8.59 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002586/0.1832, allocations: 267.2 kB / 371.2 MB, free: 8.328 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007761/0.184, allocations: 359.9 kB / 371.5 MB, free: 7.977 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00968/0.1937, allocations: 4.99 MB / 376.5 MB, free: 2.934 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.999e-05/0.1938, allocations: 7.891 kB / 376.5 MB, free: 2.926 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003575/0.1942, allocations: 148 kB / 376.7 MB, free: 2.781 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001941/0.1944, allocations: 175.1 kB / 376.8 MB, free: 2.609 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2168/0.4111, allocations: 4.361 MB / 381.2 MB, free: 30.65 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0283/0.4395, allocations: 15.95 MB / 397.2 MB, free: 27.45 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006388/0.4459, allocations: 7.772 MB / 404.9 MB, free: 20.8 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006603/0.4526, allocations: 4.034 MB / 409 MB, free: 17.92 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.42e-05/0.4526, allocations: 58.55 kB / 409 MB, free: 17.86 MB / 318.1 MB Notification: Performance of pre-optimization done (n=167): time 3.517e-06/0.4527, allocations: 0 / 409 MB, free: 17.86 MB / 318.1 MB Notification: Performance of matching and sorting (n=170): time 0.01537/0.468, allocations: 8.325 MB / 417.3 MB, free: 12.75 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.356e-05/0.4681, allocations: 69.19 kB / 417.4 MB, free: 12.69 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002645/0.4708, allocations: 2.104 MB / 419.5 MB, free: 10.88 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001202/0.4709, allocations: 53.7 kB / 419.6 MB, free: 10.82 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008126/0.4717, allocations: 1.604 MB / 421.2 MB, free: 9.199 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003475/0.4721, allocations: 0.575 MB / 421.7 MB, free: 8.629 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.362e-05/0.4722, allocations: 40 kB / 421.8 MB, free: 8.59 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001108/0.4723, allocations: 381.9 kB / 422.2 MB, free: 8.211 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001309/0.4736, allocations: 0.9643 MB / 423.1 MB, free: 7.246 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001449/0.4751, allocations: 1.465 MB / 424.6 MB, free: 5.582 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001469/0.4766, allocations: 1.199 MB / 425.8 MB, free: 4.406 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.395e-06/0.4766, allocations: 4 kB / 425.8 MB, free: 4.402 MB / 318.1 MB Notification: Performance of matching and sorting (n=249) (initialization): time 0.00468/0.4813, allocations: 3.392 MB / 429.2 MB, free: 1.078 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.819e-05/0.4813, allocations: 12 kB / 429.2 MB, free: 1.066 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.204e-05/0.4813, allocations: 16 kB / 429.2 MB, free: 1.051 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00158/0.4829, allocations: 0.7405 MB / 429.9 MB, free: 308 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001383/0.4843, allocations: 389.8 kB / 430.3 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01191/0.4962, allocations: 10.61 MB / 440.9 MB, free: 4.855 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001723/0.498, allocations: 96.05 kB / 441 MB, free: 4.762 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001548/0.4982, allocations: 79.75 kB / 441.1 MB, free: 4.688 MB / 334.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.002384/0.5006, allocations: 1.215 MB / 442.3 MB, free: 3.484 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004071/0.501, allocations: 233.2 kB / 442.6 MB, free: 3.254 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005646/0.5066, allocations: 3.244 MB / 445.8 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.454e-05/0.5067, allocations: 16.38 kB / 445.8 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.814e-05/0.5067, allocations: 12 kB / 445.8 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.641e-05/0.5067, allocations: 7.969 kB / 445.8 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01106/0.5178, allocations: 6.662 MB / 452.5 MB, free: 9.219 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.624e-06/0.5178, allocations: 3.938 kB / 452.5 MB, free: 9.215 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008979/0.5187, allocations: 188.4 kB / 452.7 MB, free: 9.039 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002336/0.5211, allocations: 0.903 MB / 453.6 MB, free: 8.129 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001164/0.5212, allocations: 39.98 kB / 453.6 MB, free: 8.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01669/0.5379, allocations: 15.07 MB / 468.7 MB, free: 8.324 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.474e-06/0.5379, allocations: 0 / 468.7 MB, free: 8.324 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007577/0.5455, allocations: 4.748 MB / 473.4 MB, free: 3.484 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001477/0.547, allocations: 0.5216 MB / 474 MB, free: 2.941 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003028/0.5474, allocations: 39.98 kB / 474 MB, free: 2.902 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009777/0.5483, allocations: 87.94 kB / 474.1 MB, free: 2.816 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004532/0.5488, allocations: 160.8 kB / 474.2 MB, free: 2.664 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001193/0.5489, allocations: 47.98 kB / 474.3 MB, free: 2.617 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002277/0.5512, allocations: 1.444 MB / 475.7 MB, free: 1.156 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.5512, allocations: 0 / 475.7 MB, free: 1.156 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002685/0.5539, allocations: 0.7031 MB / 476.4 MB, free: 464 kB / 366.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.0003692/0.5543, allocations: 171.4 kB / 476.6 MB, free: 296 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005155/0.5595, allocations: 3.187 MB / 479.8 MB, free: 13.08 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.41e-06/0.5595, allocations: 4.188 kB / 479.8 MB, free: 13.08 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003602/0.5631, allocations: 2.297 MB / 482.1 MB, free: 10.73 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002772/0.5659, allocations: 0.5814 MB / 482.7 MB, free: 10.14 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01295/0.5789, allocations: 8.209 MB / 490.9 MB, free: 1.914 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002563/0.5815, allocations: 2.74 MB / 493.6 MB, free: 15.15 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001848/0.5833, allocations: 479.4 kB / 494.1 MB, free: 14.68 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003513/0.5837, allocations: 135.4 kB / 494.2 MB, free: 14.54 MB / 398.1 MB Notification: Performance of SimCode: time 9.21e-07/0.5837, allocations: 8 kB / 494.2 MB, free: 14.54 MB / 398.1 MB Notification: Performance of Templates: time 0.06337/0.6471, allocations: 35.12 MB / 0.5169 GB, free: 11.43 MB / 430.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe 2>&1) Environment - environmentSimulation: