Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 1.1.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package HanserModelica with version 1.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 1.1.1-master/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(HanserModelica.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource") translateModel(HanserModelica.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001235/0.001235, allocations: 175.2 kB / 16.12 MB, free: 5.695 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 1.1.1-master/package.mo): time 0.03957/0.03957, allocations: 8.769 MB / 25.64 MB, free: 3.754 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.514/1.514, allocations: 205.4 MB / 233.9 MB, free: 12.47 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007934/0.0007932, allocations: 102 kB / 284.4 MB, free: 14.32 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004621/0.0004622, allocations: 16 kB / 344.8 MB, free: 1.859 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2529/0.2534, allocations: 49.7 MB / 394.5 MB, free: 36.77 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3717/0.6251, allocations: 135.3 MB / 0.5174 GB, free: 98.82 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002211/0.6254, allocations: 78.66 kB / 0.5175 GB, free: 98.78 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.054/1.679, allocations: 330.9 MB / 0.8406 GB, free: 35.52 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.415e-06/1.679, allocations: 0 / 0.8406 GB, free: 35.52 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0005116/1.68, allocations: 221.6 kB / 0.8408 GB, free: 35.5 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2785 * Number of variables: 2785 Notification: Performance of Generate backend data structure: time 0.02979/1.71, allocations: 9.086 MB / 0.8497 GB, free: 32.53 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.308e-05/1.71, allocations: 10.62 kB / 0.8497 GB, free: 32.53 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03159/1.741, allocations: 5.888 MB / 0.8555 GB, free: 31.98 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0154/1.757, allocations: 6.898 MB / 0.8622 GB, free: 30.98 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000882/1.758, allocations: 0.7269 MB / 0.8629 GB, free: 30.96 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003802/1.762, allocations: 0.9276 MB / 0.8638 GB, free: 30.95 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03989/1.801, allocations: 17.1 MB / 0.8805 GB, free: 29.82 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005494/1.802, allocations: 22 kB / 0.8805 GB, free: 29.8 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003835/1.806, allocations: 410.9 kB / 0.8809 GB, free: 29.8 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00092/1.807, allocations: 0.713 MB / 0.8816 GB, free: 29.78 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03006/1.837, allocations: 15.9 MB / 0.8972 GB, free: 29.68 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08731/1.924, allocations: 53.11 MB / 0.949 GB, free: 4.797 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03957/1.964, allocations: 42.08 MB / 0.9901 GB, free: 12.27 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01209/1.976, allocations: 7.011 MB / 0.997 GB, free: 6.055 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2732/2.249, allocations: 21.67 MB / 1.018 GB, free: 79.73 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.945e-05/2.249, allocations: 90.73 kB / 1.018 GB, free: 79.68 MB / 490.7 MB Notification: Performance of pre-optimization done (n=679): time 8.747e-06/2.249, allocations: 0 / 1.018 GB, free: 79.68 MB / 490.7 MB Notification: Performance of matching and sorting (n=687): time 0.08197/2.331, allocations: 37.73 MB / 1.055 GB, free: 77.18 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.278e-05/2.331, allocations: 110 kB / 1.055 GB, free: 77.11 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00404/2.336, allocations: 2.935 MB / 1.058 GB, free: 76.85 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00133/2.337, allocations: 116 kB / 1.058 GB, free: 76.82 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001685/2.339, allocations: 3.682 MB / 1.062 GB, free: 75.11 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002534/2.341, allocations: 2.27 MB / 1.064 GB, free: 73.64 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005138/2.342, allocations: 128.7 kB / 1.064 GB, free: 73.64 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0004472/2.342, allocations: 0.6039 MB / 1.065 GB, free: 73.33 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00663/2.349, allocations: 4.5 MB / 1.069 GB, free: 73.31 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007584/2.356, allocations: 6.32 MB / 1.075 GB, free: 71.17 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01399/2.37, allocations: 11.51 MB / 1.086 GB, free: 64.68 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.517e-05/2.37, allocations: 19.59 kB / 1.086 GB, free: 64.68 MB / 490.7 MB Notification: Performance of matching and sorting (n=941) (initialization): time 0.02136/2.392, allocations: 13.66 MB / 1.1 GB, free: 59.11 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.91e-05/2.392, allocations: 33.62 kB / 1.1 GB, free: 59.11 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001069/2.392, allocations: 52.19 kB / 1.1 GB, free: 59.11 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006721/2.399, allocations: 4.017 MB / 1.104 GB, free: 57.86 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005137/2.404, allocations: 1.225 MB / 1.105 GB, free: 57.82 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01122/2.415, allocations: 10.96 MB / 1.116 GB, free: 51.15 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004663/2.42, allocations: 347 kB / 1.116 GB, free: 51.04 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001323/2.421, allocations: 323 kB / 1.116 GB, free: 50.97 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 240 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (646): * Single equations (assignments): 593 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of prepare postOptimizeDAE: time 0.006713/2.428, allocations: 3.604 MB / 1.12 GB, free: 49.28 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001389/2.429, allocations: 462.9 kB / 1.12 GB, free: 49.04 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01851/2.448, allocations: 12.84 MB / 1.133 GB, free: 38.78 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001625/2.448, allocations: 180 kB / 1.133 GB, free: 38.62 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.375e-05/2.448, allocations: 2.906 kB / 1.133 GB, free: 38.62 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.342e-05/2.448, allocations: 27.8 kB / 1.133 GB, free: 38.62 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0444/2.493, allocations: 24.67 MB / 1.157 GB, free: 17.96 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.299e-05/2.493, allocations: 0 / 1.157 GB, free: 17.96 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003585/2.496, allocations: 0.7954 MB / 1.158 GB, free: 17.35 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006426/2.503, allocations: 3.931 MB / 1.162 GB, free: 14.1 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001005/2.504, allocations: 153.2 kB / 1.162 GB, free: 13.97 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009914/2.514, allocations: 10.82 MB / 1.172 GB, free: 3.949 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.448e-06/2.514, allocations: 7.75 kB / 1.172 GB, free: 3.945 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3035/2.817, allocations: 20.38 MB / 1.192 GB, free: 92.12 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003929/2.821, allocations: 1.476 MB / 1.194 GB, free: 92.02 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001477/2.823, allocations: 103 kB / 1.194 GB, free: 92.02 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003294/2.826, allocations: 266.5 kB / 1.194 GB, free: 92.02 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001476/2.828, allocations: 0.5004 MB / 1.195 GB, free: 92.02 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006239/2.828, allocations: 188.8 kB / 1.195 GB, free: 92.02 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003315/2.832, allocations: 1.959 MB / 1.197 GB, free: 91.87 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.81e-07/2.832, allocations: 2.719 kB / 1.197 GB, free: 91.87 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.008647/2.84, allocations: 1.73 MB / 1.198 GB, free: 91.87 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (inertiaLoad.w,quadraticTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (426): * Single equations (assignments): 373 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.001926/2.842, allocations: 0.5386 MB / 1.199 GB, free: 91.78 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02029/2.862, allocations: 11.18 MB / 1.21 GB, free: 91.4 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.474e-06/2.863, allocations: 1.594 kB / 1.21 GB, free: 91.4 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01049/2.873, allocations: 5.764 MB / 1.216 GB, free: 91.13 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008618/2.882, allocations: 0.9361 MB / 1.216 GB, free: 91.12 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04291/2.925, allocations: 23.81 MB / 1.24 GB, free: 83.05 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007372/2.932, allocations: 6.373 MB / 1.246 GB, free: 82.07 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.005618/2.938, allocations: 1.552 MB / 1.247 GB, free: 81.91 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001289/2.939, allocations: 332.3 kB / 1.248 GB, free: 81.9 MB / 0.4948 GB Notification: Performance of SimCode: time 9.52e-07/2.939, allocations: 0 / 1.248 GB, free: 81.9 MB / 0.4948 GB Notification: Performance of Templates: time 0.204/3.143, allocations: 112 MB / 1.357 GB, free: 18.92 MB / 0.4948 GB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1)