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.00155/0.00155, allocations: 182 kB / 13.64 MB, free: 1.676 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.275/1.275, allocations: 194.3 MB / 208.4 MB, free: 6.715 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.00154/0.00154, allocations: 116.7 kB / 253.5 MB, free: 9.586 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.715e-05/3.734e-05, allocations: 4 kB / 305 MB, free: 29.76 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09333/0.09339, allocations: 44.49 MB / 349.4 MB, free: 1.246 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.294/0.3875, allocations: 105.4 MB / 454.8 MB, free: 6.426 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003066/0.3879, allocations: 83.33 kB / 454.9 MB, free: 6.383 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2044/0.5923, allocations: 88.25 MB / 0.5304 GB, free: 4.188 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.5924, allocations: 4 kB / 0.5304 GB, free: 4.184 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000273/0.5926, allocations: 95.88 kB / 0.5305 GB, free: 4.09 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.01006/0.6027, allocations: 3.686 MB / 0.5341 GB, free: 348 kB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.711e-05/0.6028, allocations: 8.031 kB / 0.5341 GB, free: 340 kB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.211/0.8138, allocations: 0.7863 MB / 0.5349 GB, free: 69.81 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009494/0.8233, allocations: 3.666 MB / 0.5385 GB, free: 69.46 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002512/0.8236, allocations: 271.7 kB / 0.5387 GB, free: 69.45 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008333/0.8245, allocations: 361.9 kB / 0.5391 GB, free: 69.45 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008437/0.8329, allocations: 4.844 MB / 0.5438 GB, free: 69.01 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.291e-05/0.833, allocations: 7.531 kB / 0.5438 GB, free: 69 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003514/0.8334, allocations: 152.2 kB / 0.544 GB, free: 69 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001558/0.8335, allocations: 160.8 kB / 0.5441 GB, free: 69 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007291/0.8408, allocations: 4.011 MB / 0.548 GB, free: 68.96 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02235/0.8632, allocations: 15.97 MB / 0.5636 GB, free: 65.93 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00563/0.8689, allocations: 7.678 MB / 0.5711 GB, free: 60.44 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002022/0.8709, allocations: 1.668 MB / 0.5728 GB, free: 60.42 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006788/0.8777, allocations: 4.626 MB / 0.5773 GB, free: 58.35 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.604e-05/0.8778, allocations: 50.22 kB / 0.5773 GB, free: 58.3 MB / 394.7 MB Notification: Performance of pre-optimization done (n=159): time 3.536e-06/0.8778, allocations: 3.516 kB / 0.5773 GB, free: 58.3 MB / 394.7 MB Notification: Performance of matching and sorting (n=162): time 0.007623/0.8854, allocations: 5.476 MB / 0.5827 GB, free: 55.6 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.393e-05/0.8855, allocations: 77.34 kB / 0.5828 GB, free: 55.54 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002443/0.8879, allocations: 1.873 MB / 0.5846 GB, free: 54.77 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001448/0.8881, allocations: 52.95 kB / 0.5846 GB, free: 54.72 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008207/0.8889, allocations: 1.625 MB / 0.5862 GB, free: 53.49 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003098/0.8892, allocations: 0.5439 MB / 0.5868 GB, free: 53.07 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.104e-05/0.8893, allocations: 35.56 kB / 0.5868 GB, free: 53.04 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.945e-05/0.8894, allocations: 378.5 kB / 0.5872 GB, free: 52.71 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001106/0.8906, allocations: 0.8688 MB / 0.588 GB, free: 52.36 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001257/0.8918, allocations: 1.341 MB / 0.5893 GB, free: 51.46 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001333/0.8932, allocations: 1.098 MB / 0.5904 GB, free: 51.03 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.105e-06/0.8932, allocations: 3.938 kB / 0.5904 GB, free: 51.03 MB / 394.7 MB Notification: Performance of matching and sorting (n=237) (initialization): time 0.004278/0.8975, allocations: 3.175 MB / 0.5935 GB, free: 49.78 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.54e-05/0.8975, allocations: 13.47 kB / 0.5935 GB, free: 49.78 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.874e-05/0.8975, allocations: 14.56 kB / 0.5935 GB, free: 49.78 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001531/0.8991, allocations: 0.7236 MB / 0.5942 GB, free: 49.56 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001321/0.9004, allocations: 364.8 kB / 0.5946 GB, free: 49.55 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008886/0.9093, allocations: 10.38 MB / 0.6047 GB, free: 41.93 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001898/0.9112, allocations: 98.03 kB / 0.6048 GB, free: 41.89 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000136/0.9114, allocations: 74.34 kB / 0.6049 GB, free: 41.88 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (187): * Single equations (assignments): 182 * 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%) 1,(1,100.0%) 8,(9,33.3%) 19,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003456/0.9117, allocations: 212.9 kB / 0.6051 GB, free: 41.71 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002711/0.912, allocations: 224.7 kB / 0.6053 GB, free: 41.6 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004558/0.9166, allocations: 3.04 MB / 0.6083 GB, free: 40.26 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.038e-05/0.9166, allocations: 19 kB / 0.6083 GB, free: 40.26 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.022e-05/0.9166, allocations: 9.875 kB / 0.6083 GB, free: 40.26 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.383e-05/0.9166, allocations: 13.09 kB / 0.6083 GB, free: 40.26 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008721/0.9254, allocations: 6.403 MB / 0.6145 GB, free: 37.43 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.328e-06/0.9254, allocations: 3.75 kB / 0.6145 GB, free: 37.43 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007435/0.9262, allocations: 174.8 kB / 0.6147 GB, free: 37.42 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001924/0.9281, allocations: 0.9115 MB / 0.6156 GB, free: 37.14 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001063/0.9282, allocations: 38.23 kB / 0.6156 GB, free: 37.12 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01217/0.9404, allocations: 14.74 MB / 0.63 GB, free: 25.92 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/0.9404, allocations: 7 kB / 0.63 GB, free: 25.92 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00577/0.9462, allocations: 4.428 MB / 0.6344 GB, free: 23.78 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001185/0.9474, allocations: 0.5173 MB / 0.6349 GB, free: 23.43 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002867/0.9477, allocations: 35.47 kB / 0.6349 GB, free: 23.41 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001065/0.9488, allocations: 96.58 kB / 0.635 GB, free: 23.39 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003734/0.9492, allocations: 155.8 kB / 0.6351 GB, free: 23.36 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001028/0.9493, allocations: 42.89 kB / 0.6352 GB, free: 23.35 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001914/0.9512, allocations: 1.442 MB / 0.6366 GB, free: 22.49 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.9512, allocations: 6.297 kB / 0.6366 GB, free: 22.49 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002258/0.9535, allocations: 0.7281 MB / 0.6373 GB, free: 21.76 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (92): * Single equations (assignments): 86 * 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%) 1,(1,100.0%) 8,(9,33.3%) 19,(1,100.0%) 13,(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.0005114/0.954, allocations: 410.8 kB / 0.6377 GB, free: 21.44 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003562/0.9576, allocations: 2.951 MB / 0.6406 GB, free: 18.68 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.9576, allocations: 2.25 kB / 0.6406 GB, free: 18.68 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002574/0.9602, allocations: 2.198 MB / 0.6427 GB, free: 16.61 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002406/0.9626, allocations: 0.5972 MB / 0.6433 GB, free: 16.14 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009553/0.9722, allocations: 5.55 MB / 0.6487 GB, free: 11.2 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002074/0.9743, allocations: 2.747 MB / 0.6514 GB, free: 9.066 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001611/0.9759, allocations: 464.9 kB / 0.6519 GB, free: 8.746 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003514/0.9762, allocations: 135 kB / 0.652 GB, free: 8.621 MB / 394.7 MB Notification: Performance of SimCode: time 7.01e-07/0.9762, allocations: 0 / 0.652 GB, free: 8.621 MB / 394.7 MB Notification: Performance of Templates: time 0.2622/1.238, allocations: 38.8 MB / 0.6899 GB, free: 74.98 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)