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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.0009288/0.0009289, allocations: 180.9 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.12/1.12, allocations: 194.5 MB / 211.6 MB, free: 3.051 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001594/0.001594, allocations: 116.2 kB / 256.9 MB, free: 4.363 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002859/0.0002859, allocations: 8 kB / 310.6 MB, free: 14.94 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07191/0.07221, allocations: 44.5 MB / 355.1 MB, free: 2.34 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2373/0.3095, allocations: 105.5 MB / 460.5 MB, free: 0.5742 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002326/0.3098, allocations: 93.7 kB / 460.6 MB, free: 0.5234 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3474/0.6572, allocations: 88.2 MB / 0.536 GB, free: 81.87 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.263e-06/0.6572, allocations: 0 / 0.536 GB, free: 81.87 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002576/0.6575, allocations: 91.77 kB / 0.536 GB, free: 81.86 MB / 394.7 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.01059/0.6681, allocations: 4.066 MB / 0.54 GB, free: 80.25 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.869e-05/0.6681, allocations: 10.12 kB / 0.54 GB, free: 80.25 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004171/0.6723, allocations: 0.7991 MB / 0.5408 GB, free: 80.03 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007794/0.6801, allocations: 3.687 MB / 0.5444 GB, free: 79.45 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001705/0.6803, allocations: 271.7 kB / 0.5447 GB, free: 79.44 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006742/0.681, allocations: 364.5 kB / 0.545 GB, free: 79.44 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006957/0.688, allocations: 4.947 MB / 0.5498 GB, free: 78.98 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.981e-05/0.6881, allocations: 7.812 kB / 0.5499 GB, free: 78.98 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003257/0.6884, allocations: 151.1 kB / 0.55 GB, free: 78.98 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001068/0.6885, allocations: 160.7 kB / 0.5502 GB, free: 78.97 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005834/0.6944, allocations: 4.166 MB / 0.5542 GB, free: 78.93 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01915/0.7135, allocations: 15.98 MB / 0.5698 GB, free: 70.71 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005224/0.7188, allocations: 7.792 MB / 0.5774 GB, free: 63.95 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005272/0.7241, allocations: 4.066 MB / 0.5814 GB, free: 61.77 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.418e-05/0.7241, allocations: 55.09 kB / 0.5815 GB, free: 61.71 MB / 394.7 MB Notification: Performance of pre-optimization done (n=167): time 2.665e-06/0.7241, allocations: 3.938 kB / 0.5815 GB, free: 61.71 MB / 394.7 MB Notification: Performance of matching and sorting (n=170): time 0.01291/0.7371, allocations: 8.242 MB / 0.5895 GB, free: 57.69 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.699e-05/0.7371, allocations: 75.31 kB / 0.5896 GB, free: 57.62 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00207/0.7392, allocations: 1.889 MB / 0.5914 GB, free: 56.88 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 9.774e-05/0.7393, allocations: 49.67 kB / 0.5915 GB, free: 56.82 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006365/0.7399, allocations: 1.605 MB / 0.593 GB, free: 55.61 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002636/0.7402, allocations: 0.5674 MB / 0.5936 GB, free: 55.16 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.786e-05/0.7403, allocations: 39.47 kB / 0.5936 GB, free: 55.13 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.446e-05/0.7404, allocations: 389.3 kB / 0.594 GB, free: 54.79 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001158/0.7416, allocations: 0.9483 MB / 0.5949 GB, free: 54.43 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001308/0.7429, allocations: 1.419 MB / 0.5963 GB, free: 53.51 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001361/0.7442, allocations: 1.168 MB / 0.5975 GB, free: 52.98 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.781e-06/0.7443, allocations: 3.938 kB / 0.5975 GB, free: 52.98 MB / 394.7 MB Notification: Performance of matching and sorting (n=243) (initialization): time 0.004173/0.7484, allocations: 3.337 MB / 0.6007 GB, free: 51.53 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.265e-05/0.7485, allocations: 10.78 kB / 0.6007 GB, free: 51.53 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.728e-05/0.7485, allocations: 14.66 kB / 0.6007 GB, free: 51.53 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001452/0.75, allocations: 0.7349 MB / 0.6015 GB, free: 51.3 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00125/0.7512, allocations: 372.5 kB / 0.6018 GB, free: 51.27 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008036/0.7593, allocations: 10.65 MB / 0.6122 GB, free: 42.14 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001586/0.7609, allocations: 91.52 kB / 0.6123 GB, free: 42.06 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001176/0.761, allocations: 82.09 kB / 0.6124 GB, free: 41.99 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,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 (193): * Single equations (assignments): 188 * 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.001915/0.7629, allocations: 1.215 MB / 0.6136 GB, free: 40.91 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002911/0.7632, allocations: 229.2 kB / 0.6138 GB, free: 40.69 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004306/0.7675, allocations: 3.235 MB / 0.6169 GB, free: 37.9 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.002e-05/0.7676, allocations: 16 kB / 0.617 GB, free: 37.88 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.132e-05/0.7676, allocations: 12 kB / 0.617 GB, free: 37.87 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.415e-05/0.7676, allocations: 13.98 kB / 0.617 GB, free: 37.87 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008834/0.7764, allocations: 6.685 MB / 0.6235 GB, free: 32.3 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/0.7765, allocations: 0 / 0.6235 GB, free: 32.3 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008587/0.7773, allocations: 188.6 kB / 0.6237 GB, free: 32.15 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00189/0.7792, allocations: 0.9135 MB / 0.6246 GB, free: 31.42 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001078/0.7794, allocations: 42.95 kB / 0.6246 GB, free: 31.38 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01149/0.7909, allocations: 15.11 MB / 0.6394 GB, free: 16.38 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.766e-06/0.7909, allocations: 4 kB / 0.6394 GB, free: 16.38 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005883/0.7968, allocations: 4.734 MB / 0.644 GB, free: 11.51 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001219/0.798, allocations: 0.5295 MB / 0.6445 GB, free: 10.96 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002643/0.7983, allocations: 36 kB / 0.6446 GB, free: 10.92 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009753/0.7993, allocations: 91.92 kB / 0.6446 GB, free: 10.83 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003376/0.7996, allocations: 169 kB / 0.6448 GB, free: 10.67 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.1e-05/0.7997, allocations: 47.94 kB / 0.6449 GB, free: 10.62 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001784/0.8015, allocations: 1.457 MB / 0.6463 GB, free: 9.145 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.8015, allocations: 0 / 0.6463 GB, free: 9.145 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002225/0.8038, allocations: 0.7382 MB / 0.647 GB, free: 8.406 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.zeroInductor.i0,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 6 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,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%) 13,(1,100.0%) 1,(1,100.0%) 8,(9,33.3%) 19,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004809/0.8042, allocations: 378.3 kB / 0.6474 GB, free: 8.074 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003739/0.808, allocations: 3.148 MB / 0.6504 GB, free: 4.855 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.808, allocations: 0 / 0.6504 GB, free: 4.855 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002581/0.8106, allocations: 2.307 MB / 0.6527 GB, free: 2.469 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002419/0.813, allocations: 0.6065 MB / 0.6533 GB, free: 1.914 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01186/0.8249, allocations: 8.233 MB / 0.6613 GB, free: 9.727 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002414/0.8274, allocations: 2.752 MB / 0.664 GB, free: 6.949 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001757/0.8291, allocations: 470.2 kB / 0.6645 GB, free: 6.504 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003532/0.8295, allocations: 135.4 kB / 0.6646 GB, free: 6.371 MB / 410.7 MB Notification: Performance of SimCode: time 7.92e-07/0.8295, allocations: 0 / 0.6646 GB, free: 6.371 MB / 410.7 MB Notification: Performance of Templates: time 0.2183/1.048, allocations: 38.35 MB / 0.702 GB, free: 83.47 MB / 410.7 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.makefile (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)