Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.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_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.0009649/0.0009649, allocations: 184 kB / 8.354 MB, free: 0.7305 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.524/1.524, allocations: 194.3 MB / 203.1 MB, free: 13.03 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.00168/0.00168, allocations: 116.7 kB / 248.1 MB, free: 36 kB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.638e-05/1.641e-05, allocations: 7.938 kB / 298.1 MB, free: 35.5 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08464/0.08467, allocations: 44.49 MB / 342.6 MB, free: 6.992 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3706/0.4553, allocations: 109.3 MB / 451.9 MB, free: 10.8 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002374/0.4556, allocations: 87.83 kB / 452 MB, free: 10.76 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1913/0.6469, allocations: 73.75 MB / 0.5134 GB, free: 7.488 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.283e-06/0.6469, allocations: 0 / 0.5134 GB, free: 7.488 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003571/0.6473, allocations: 91.81 kB / 0.5135 GB, free: 7.398 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 823 * Number of variables: 823 Notification: Performance of Generate backend data structure: time 0.009891/0.6572, allocations: 3.121 MB / 0.5166 GB, free: 4.207 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.927e-05/0.6573, allocations: 8.031 kB / 0.5166 GB, free: 4.199 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003749/0.661, allocations: 0.5852 MB / 0.5171 GB, free: 3.609 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009092/0.6701, allocations: 3.095 MB / 0.5202 GB, free: 468 kB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000198/0.6704, allocations: 104 kB / 0.5203 GB, free: 364 kB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001088/0.6715, allocations: 183.9 kB / 0.5204 GB, free: 180 kB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007478/0.6789, allocations: 2.855 MB / 0.5232 GB, free: 13.32 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009781/0.6888, allocations: 3.467 MB / 0.5266 GB, free: 9.711 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000132/0.6889, allocations: 7.906 kB / 0.5266 GB, free: 9.703 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006411/0.6896, allocations: 4 kB / 0.5266 GB, free: 9.699 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001722/0.6898, allocations: 150.2 kB / 0.5268 GB, free: 9.551 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2629/0.9527, allocations: 12.76 MB / 0.5392 GB, free: 76.67 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003208/0.9559, allocations: 3.884 MB / 0.543 GB, free: 73.92 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001419/0.9574, allocations: 0.9432 MB / 0.5439 GB, free: 73.91 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004667/0.9621, allocations: 2.594 MB / 0.5465 GB, free: 73.34 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.235e-05/0.9621, allocations: 47.42 kB / 0.5465 GB, free: 73.29 MB / 394.7 MB Notification: Performance of pre-optimization done (n=110): time 3.226e-06/0.9621, allocations: 0 / 0.5465 GB, free: 73.29 MB / 394.7 MB Notification: Performance of matching and sorting (n=146): time 0.01167/0.9738, allocations: 5.302 MB / 0.5517 GB, free: 72.51 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.96e-05/0.9739, allocations: 71.25 kB / 0.5518 GB, free: 72.45 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002254/0.9762, allocations: 1.359 MB / 0.5531 GB, free: 72.29 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 8.712e-05/0.9762, allocations: 26.64 kB / 0.5531 GB, free: 72.26 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008697/0.9771, allocations: 1.504 MB / 0.5546 GB, free: 71.72 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002995/0.9774, allocations: 494 kB / 0.5551 GB, free: 71.43 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.888e-05/0.9775, allocations: 0.8438 kB / 0.5551 GB, free: 71.43 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.698e-05/0.9776, allocations: 382.5 kB / 0.5554 GB, free: 71.12 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008636/0.9785, allocations: 0.7124 MB / 0.5561 GB, free: 71.12 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001146/0.9797, allocations: 1.289 MB / 0.5574 GB, free: 70.43 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00162/0.9813, allocations: 1.041 MB / 0.5584 GB, free: 70.42 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.568e-06/0.9813, allocations: 3.969 kB / 0.5584 GB, free: 70.42 MB / 394.7 MB Notification: Performance of matching and sorting (n=237) (initialization): time 0.003546/0.9849, allocations: 2.301 MB / 0.5607 GB, free: 70.24 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.727e-05/0.9849, allocations: 21.77 kB / 0.5607 GB, free: 70.24 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.089e-05/0.9849, allocations: 21.03 kB / 0.5607 GB, free: 70.24 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003226/0.9853, allocations: 122.4 kB / 0.5608 GB, free: 70.21 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001734/0.987, allocations: 492.2 kB / 0.5613 GB, free: 70.21 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007238/0.9877, allocations: 1.258 MB / 0.5625 GB, free: 69.02 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001611/0.9894, allocations: 79.84 kB / 0.5626 GB, free: 69.02 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001535/0.9895, allocations: 83.84 kB / 0.5627 GB, free: 69.02 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 85 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (234): * Single equations (assignments): 231 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002582/0.9898, allocations: 157.1 kB / 0.5628 GB, free: 68.9 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002861/0.9901, allocations: 184.3 kB / 0.563 GB, free: 68.8 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003056/0.9932, allocations: 1.907 MB / 0.5649 GB, free: 68.68 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.141e-05/0.9932, allocations: 15.03 kB / 0.5649 GB, free: 68.68 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.9932, allocations: 0 / 0.5649 GB, free: 68.68 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.328e-05/0.9932, allocations: 7.5 kB / 0.5649 GB, free: 68.68 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006849/1, allocations: 4.572 MB / 0.5693 GB, free: 68.24 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.931e-06/1, allocations: 0 / 0.5693 GB, free: 68.24 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001317/1.001, allocations: 326.4 kB / 0.5696 GB, free: 68.24 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002692/1.002, allocations: 89.88 kB / 0.5697 GB, free: 68.22 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.436e-05/1.002, allocations: 10.66 kB / 0.5697 GB, free: 68.22 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005772/1.002, allocations: 1.234 MB / 0.5709 GB, free: 67.03 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.012e-06/1.002, allocations: 11.2 kB / 0.571 GB, free: 67.03 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003872/1.006, allocations: 3.164 MB / 0.574 GB, free: 66.5 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001007/1.007, allocations: 451.3 kB / 0.5745 GB, free: 66.3 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002154/1.008, allocations: 0 / 0.5745 GB, free: 66.3 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009194/1.008, allocations: 65.11 kB / 0.5745 GB, free: 66.3 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001622/1.009, allocations: 95.64 kB / 0.5746 GB, free: 66.3 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.634e-05/1.009, allocations: 38.5 kB / 0.5747 GB, free: 66.3 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001429/1.01, allocations: 1.016 MB / 0.5757 GB, free: 66.19 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.41e-07/1.01, allocations: 0 / 0.5757 GB, free: 66.19 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001892/1.012, allocations: 0.4951 MB / 0.5761 GB, free: 66.18 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (143): * Single equations (assignments): 140 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000613/1.013, allocations: 440.4 kB / 0.5766 GB, free: 66.08 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002732/1.015, allocations: 2.074 MB / 0.5786 GB, free: 65.75 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/1.015, allocations: 3.469 kB / 0.5786 GB, free: 65.75 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001224/1.017, allocations: 1.136 MB / 0.5797 GB, free: 65.45 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001957/1.019, allocations: 383.8 kB / 0.5801 GB, free: 65.43 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007634/1.026, allocations: 4.35 MB / 0.5843 GB, free: 64.39 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001801/1.028, allocations: 2.315 MB / 0.5866 GB, free: 63.54 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001956/1.03, allocations: 0.5085 MB / 0.5871 GB, free: 63.49 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003899/1.03, allocations: 150 kB / 0.5872 GB, free: 63.47 MB / 394.7 MB Notification: Performance of SimCode: time 1.333e-06/1.03, allocations: 0 / 0.5872 GB, free: 63.47 MB / 394.7 MB Notification: Performance of Templates: time 0.03825/1.069, allocations: 21.69 MB / 0.6084 GB, free: 62.05 MB / 394.7 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe 2>&1)