Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.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_Initialize,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.0009322/0.0009323, allocations: 188.6 kB / 8.353 MB, free: 0.707 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.196/1.196, allocations: 194.3 MB / 203.1 MB, free: 9.254 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001804/0.001804, allocations: 114.2 kB / 248.1 MB, free: 6.359 MB / 203.1 MB Notification: Performance of FrontEnd - loaded program: time 1.331e-05/1.332e-05, allocations: 4 kB / 298.1 MB, free: 8.23 MB / 251.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08508/0.08511, allocations: 44.5 MB / 342.6 MB, free: 11.63 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2735/0.3586, allocations: 103 MB / 445.6 MB, free: 9.254 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002122/0.3589, allocations: 90.75 kB / 445.6 MB, free: 9.207 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.1866/0.5455, allocations: 79.21 MB / 0.5126 GB, free: 0.6055 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.5456, allocations: 4 kB / 0.5126 GB, free: 0.6016 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0003941/0.546, allocations: 83.86 kB / 0.5126 GB, free: 0.5195 MB / 395.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 819 * Number of variables: 819 Notification: Performance of Generate backend data structure: time 0.1932/0.7392, allocations: 3.197 MB / 0.5158 GB, free: 67.02 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.709e-05/0.7393, allocations: 7.906 kB / 0.5158 GB, free: 67.02 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004655/0.7439, allocations: 0.7236 MB / 0.5165 GB, free: 66.83 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009559/0.7535, allocations: 3.345 MB / 0.5197 GB, free: 66.48 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000184/0.7538, allocations: 101.8 kB / 0.5198 GB, free: 66.48 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001135/0.7549, allocations: 190.6 kB / 0.52 GB, free: 66.48 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005917/0.7608, allocations: 3.154 MB / 0.5231 GB, free: 66.46 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00602/0.7669, allocations: 3.651 MB / 0.5267 GB, free: 66.1 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.083e-05/0.767, allocations: 7.219 kB / 0.5267 GB, free: 66.1 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002747/0.7673, allocations: 3.172 kB / 0.5267 GB, free: 66.1 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000155/0.7675, allocations: 141.7 kB / 0.5268 GB, free: 66.09 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01895/0.7864, allocations: 12.94 MB / 0.5395 GB, free: 63.6 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005352/0.7918, allocations: 6.737 MB / 0.546 GB, free: 58.41 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002234/0.7941, allocations: 1.305 MB / 0.5473 GB, free: 58.39 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006414/0.8005, allocations: 3.522 MB / 0.5507 GB, free: 57.72 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.419e-05/0.8007, allocations: 46.8 kB / 0.5508 GB, free: 57.68 MB / 395.1 MB Notification: Performance of pre-optimization done (n=122): time 5.19e-06/0.8007, allocations: 0 / 0.5508 GB, free: 57.68 MB / 395.1 MB Notification: Performance of matching and sorting (n=142): time 0.01212/0.8128, allocations: 5.199 MB / 0.5559 GB, free: 56.5 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.722e-05/0.8129, allocations: 70.98 kB / 0.5559 GB, free: 56.44 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002984/0.8159, allocations: 1.335 MB / 0.5572 GB, free: 56.28 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002083/0.8161, allocations: 27.89 kB / 0.5573 GB, free: 56.25 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001179/0.8173, allocations: 1.434 MB / 0.5587 GB, free: 55.18 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005135/0.8178, allocations: 475.1 kB / 0.5591 GB, free: 54.81 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001453/0.818, allocations: 0 / 0.5591 GB, free: 54.81 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001333/0.8181, allocations: 372.6 kB / 0.5595 GB, free: 54.48 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001162/0.8193, allocations: 0.685 MB / 0.5601 GB, free: 54.18 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001264/0.8206, allocations: 1.12 MB / 0.5612 GB, free: 53.34 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001862/0.8224, allocations: 1.02 MB / 0.5622 GB, free: 52.95 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.74e-05/0.8225, allocations: 4.125 kB / 0.5622 GB, free: 52.95 MB / 395.1 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.004897/0.8274, allocations: 2.499 MB / 0.5647 GB, free: 52.04 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.372e-05/0.8274, allocations: 10.59 kB / 0.5647 GB, free: 52.04 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.189e-05/0.8275, allocations: 17.03 kB / 0.5647 GB, free: 52.04 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001411/0.8289, allocations: 491.5 kB / 0.5652 GB, free: 51.89 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001546/0.8304, allocations: 391.4 kB / 0.5655 GB, free: 51.88 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006438/0.8369, allocations: 6.14 MB / 0.5715 GB, free: 47.55 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001681/0.8386, allocations: 47.83 kB / 0.5716 GB, free: 47.55 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002789/0.8389, allocations: 73.67 kB / 0.5717 GB, free: 47.54 MB / 395.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (178): * Single equations (assignments): 176 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(7,67.3%) 31} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004119/0.8393, allocations: 147.4 kB / 0.5718 GB, free: 47.42 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004417/0.8398, allocations: 176.7 kB / 0.572 GB, free: 47.33 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004137/0.8439, allocations: 2.397 MB / 0.5743 GB, free: 46.24 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.959e-06/0.844, allocations: 11.34 kB / 0.5743 GB, free: 46.24 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.479e-05/0.844, allocations: 11.22 kB / 0.5743 GB, free: 46.24 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.34e-05/0.844, allocations: 9.859 kB / 0.5743 GB, free: 46.24 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008798/0.8528, allocations: 4.962 MB / 0.5792 GB, free: 43.93 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.577e-05/0.8529, allocations: 6.906 kB / 0.5792 GB, free: 43.93 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009792/0.8539, allocations: 215.6 kB / 0.5794 GB, free: 43.92 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001213/0.8551, allocations: 493.2 kB / 0.5799 GB, free: 43.75 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001285/0.8552, allocations: 15.19 kB / 0.5799 GB, free: 43.74 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008127/0.8634, allocations: 10.03 MB / 0.5897 GB, free: 35.46 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.665e-06/0.8634, allocations: 3.656 kB / 0.5897 GB, free: 35.46 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005656/0.8691, allocations: 3.511 MB / 0.5931 GB, free: 33.64 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00127/0.8704, allocations: 426.7 kB / 0.5935 GB, free: 33.34 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005934/0.871, allocations: 7.562 kB / 0.5935 GB, free: 33.34 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001256/0.8723, allocations: 56.52 kB / 0.5936 GB, free: 33.34 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003001/0.8726, allocations: 112.5 kB / 0.5937 GB, free: 33.32 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001109/0.8727, allocations: 37.98 kB / 0.5937 GB, free: 33.31 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.002005/0.8748, allocations: 1.013 MB / 0.5947 GB, free: 32.87 MB / 395.1 MB Notification: Performance of sort global known variables: time 5.71e-07/0.8748, allocations: 4 kB / 0.5947 GB, free: 32.87 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.002721/0.8775, allocations: 0.5438 MB / 0.5952 GB, free: 32.85 MB / 395.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.inertiaRotor.phi,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.strayReluctance.Phi.re,aimc.stator.strayReluctance.Phi.im,aimc.stator.zeroInductor.i0,loadInertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (100): * Single equations (assignments): 95 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 12,(1,100.0%) 8,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005084/0.878, allocations: 314.6 kB / 0.5955 GB, free: 32.73 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.003496/0.8815, allocations: 2.166 MB / 0.5977 GB, free: 31.77 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.8815, allocations: 2.562 kB / 0.5977 GB, free: 31.77 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001969/0.8835, allocations: 1.593 MB / 0.5992 GB, free: 30.79 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002326/0.8859, allocations: 354.3 kB / 0.5996 GB, free: 30.69 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01056/0.8964, allocations: 4.703 MB / 0.6041 GB, free: 28.63 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002839/0.8993, allocations: 2.423 MB / 0.6065 GB, free: 27.54 MB / 395.1 MB Notification: Performance of simCode: alias equations: time 0.001825/0.9012, allocations: 390.7 kB / 0.6069 GB, free: 27.49 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005018/0.9017, allocations: 116.8 kB / 0.607 GB, free: 27.48 MB / 395.1 MB Notification: Performance of SimCode: time 1.733e-06/0.9017, allocations: 0 / 0.607 GB, free: 27.48 MB / 395.1 MB Notification: Performance of Templates: time 0.04433/0.9461, allocations: 24.44 MB / 0.6309 GB, free: 22.75 MB / 395.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe 2>&1)