Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.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.SMPM_VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001575/0.001575, allocations: 182.7 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.464/1.464, allocations: 194.3 MB / 208.4 MB, free: 6.719 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.001653/0.001653, allocations: 128.6 kB / 253.5 MB, free: 9.582 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.163e-05/3.164e-05, allocations: 7.984 kB / 304.9 MB, free: 29.77 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07739/0.07744, allocations: 44.5 MB / 349.4 MB, free: 1.25 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3497/0.4272, allocations: 113.1 MB / 462.5 MB, free: 14.98 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003273/0.4276, allocations: 94.06 kB / 462.6 MB, free: 14.93 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.199/0.6266, allocations: 80.19 MB / 0.5301 GB, free: 4.742 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.545e-06/0.6267, allocations: 0 / 0.5301 GB, free: 4.742 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003141/0.627, allocations: 95.88 kB / 0.5302 GB, free: 4.648 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: 908 * Number of variables: 908 Notification: Performance of Generate backend data structure: time 0.009953/0.637, allocations: 3.42 MB / 0.5335 GB, free: 1.164 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.023e-05/0.637, allocations: 8.031 kB / 0.5335 GB, free: 1.156 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003285/0.6403, allocations: 0.6435 MB / 0.5341 GB, free: 0.5078 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2697/0.9101, allocations: 3.344 MB / 0.5374 GB, free: 72.05 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003435/0.9104, allocations: 258.5 kB / 0.5376 GB, free: 72.04 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001208/0.9117, allocations: 346.9 kB / 0.538 GB, free: 72.04 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0104/0.9221, allocations: 4.317 MB / 0.5422 GB, free: 71.58 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.467e-05/0.9222, allocations: 4.406 kB / 0.5422 GB, free: 71.58 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00039/0.9226, allocations: 147.8 kB / 0.5423 GB, free: 71.58 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002684/0.9229, allocations: 160.7 kB / 0.5425 GB, free: 71.57 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007941/0.9308, allocations: 3.428 MB / 0.5458 GB, free: 71.54 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02861/0.9595, allocations: 14.54 MB / 0.56 GB, free: 68.24 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005079/0.9646, allocations: 5.328 MB / 0.5652 GB, free: 64.35 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00203/0.9667, allocations: 1.258 MB / 0.5665 GB, free: 64.33 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007021/0.9737, allocations: 3.838 MB / 0.5702 GB, free: 63.66 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.501e-05/0.9738, allocations: 51.92 kB / 0.5703 GB, free: 63.62 MB / 394.7 MB Notification: Performance of pre-optimization done (n=125): time 4.518e-06/0.9738, allocations: 0 / 0.5703 GB, free: 63.62 MB / 394.7 MB Notification: Performance of matching and sorting (n=129): time 0.007153/0.981, allocations: 4.225 MB / 0.5744 GB, free: 61.85 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.613e-05/0.981, allocations: 64.88 kB / 0.5745 GB, free: 61.79 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003055/0.9841, allocations: 1.818 MB / 0.5762 GB, free: 61.05 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001596/0.9843, allocations: 52.61 kB / 0.5763 GB, free: 61 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008503/0.9852, allocations: 1.654 MB / 0.5779 GB, free: 59.74 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003481/0.9855, allocations: 453 kB / 0.5783 GB, free: 59.4 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.828e-05/0.9856, allocations: 35.53 kB / 0.5784 GB, free: 59.37 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.762e-05/0.9857, allocations: 374.6 kB / 0.5787 GB, free: 59.04 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009455/0.9866, allocations: 0.6893 MB / 0.5794 GB, free: 58.77 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001254/0.9879, allocations: 1.3 MB / 0.5807 GB, free: 57.73 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0012/0.9891, allocations: 0.9303 MB / 0.5816 GB, free: 57.39 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.043e-05/0.9891, allocations: 7.5 kB / 0.5816 GB, free: 57.39 MB / 394.7 MB Notification: Performance of matching and sorting (n=229) (initialization): time 0.003296/0.9924, allocations: 2.449 MB / 0.584 GB, free: 56.46 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.8e-05/0.9925, allocations: 14.84 kB / 0.584 GB, free: 56.46 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.781e-05/0.9925, allocations: 22.25 kB / 0.584 GB, free: 56.46 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003106/0.9928, allocations: 140.4 kB / 0.5841 GB, free: 56.41 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001422/0.9943, allocations: 462.8 kB / 0.5846 GB, free: 56.39 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001827/0.9961, allocations: 3.063 MB / 0.5876 GB, free: 53.53 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001646/0.9978, allocations: 116.2 kB / 0.5877 GB, free: 53.5 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001473/0.9979, allocations: 80.31 kB / 0.5878 GB, free: 53.48 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 90 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (222): * Single equations (assignments): 219 * 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: 2 * 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: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000284/0.9982, allocations: 227.9 kB / 0.588 GB, free: 53.31 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000514/0.9987, allocations: 216.5 kB / 0.5882 GB, free: 53.2 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003466/1.002, allocations: 2.137 MB / 0.5903 GB, free: 52.19 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.408e-06/1.002, allocations: 15.38 kB / 0.5903 GB, free: 52.19 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.34e-05/1.002, allocations: 7.562 kB / 0.5903 GB, free: 52.19 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.233e-05/1.002, allocations: 7.312 kB / 0.5903 GB, free: 52.19 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009109/1.011, allocations: 5.123 MB / 0.5953 GB, free: 49.89 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.662e-06/1.011, allocations: 3.875 kB / 0.5953 GB, free: 49.89 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008863/1.012, allocations: 227.2 kB / 0.5955 GB, free: 49.88 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006203/1.013, allocations: 270.5 kB / 0.5958 GB, free: 49.78 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.536e-05/1.013, allocations: 30.31 kB / 0.5958 GB, free: 49.76 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004832/1.018, allocations: 7.094 MB / 0.6027 GB, free: 43.47 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.558e-06/1.018, allocations: 6.594 kB / 0.6027 GB, free: 43.47 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004404/1.022, allocations: 3.28 MB / 0.6059 GB, free: 41.7 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001223/1.024, allocations: 469 kB / 0.6064 GB, free: 41.39 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005746/1.024, allocations: 25.38 kB / 0.6064 GB, free: 41.38 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001245/1.025, allocations: 83.17 kB / 0.6065 GB, free: 41.36 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000193/1.026, allocations: 96.59 kB / 0.6066 GB, free: 41.34 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.752e-05/1.026, allocations: 43 kB / 0.6066 GB, free: 41.33 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.00259/1.028, allocations: 1.379 MB / 0.608 GB, free: 40.76 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.51e-07/1.028, allocations: 2.344 kB / 0.608 GB, free: 40.76 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002519/1.031, allocations: 0.6077 MB / 0.6086 GB, free: 40.7 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (110): * Single equations (assignments): 106 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007338/1.032, allocations: 494.9 kB / 0.609 GB, free: 40.53 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002909/1.035, allocations: 2.026 MB / 0.611 GB, free: 39.63 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.991e-06/1.035, allocations: 7.672 kB / 0.611 GB, free: 39.63 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001679/1.036, allocations: 1.342 MB / 0.6123 GB, free: 38.82 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002609/1.039, allocations: 0.5084 MB / 0.6128 GB, free: 38.67 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01009/1.049, allocations: 4.83 MB / 0.6175 GB, free: 36.6 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003019/1.052, allocations: 2.483 MB / 0.62 GB, free: 35.52 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002107/1.054, allocations: 0.4893 MB / 0.6204 GB, free: 35.47 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006258/1.055, allocations: 154.2 kB / 0.6206 GB, free: 35.45 MB / 394.7 MB Notification: Performance of SimCode: time 1.483e-06/1.055, allocations: 0 / 0.6206 GB, free: 35.45 MB / 394.7 MB Notification: Performance of Templates: time 0.05036/1.105, allocations: 30.57 MB / 0.6504 GB, free: 20.24 MB / 394.7 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe 2>&1)