Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(HanserModelica.SynchronousMachines.SMEE_Synchronization2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5998,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2") translateModel(HanserModelica.SynchronousMachines.SMEE_Synchronization2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5998,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001222/0.001222, allocations: 174.9 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03992/0.03992, allocations: 8.7 MB / 21.96 MB, free: 3.367 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.441/1.441, allocations: 221.4 MB / 246 MB, free: 3.586 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008487/0.0008487, allocations: 103.8 kB / 299.1 MB, free: 2.969 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.107e-05/3.109e-05, allocations: 4 kB / 359.5 MB, free: 6.5 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2714/0.2715, allocations: 52.54 MB / 412.1 MB, free: 22.52 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4059/0.6774, allocations: 117 MB / 0.5166 GB, free: 90.85 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000257/0.6778, allocations: 76.53 kB / 0.5167 GB, free: 90.81 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6736/1.351, allocations: 158 MB / 0.671 GB, free: 37.25 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.873e-06/1.351, allocations: 0 / 0.671 GB, free: 37.25 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003208/1.352, allocations: 94.11 kB / 0.6711 GB, free: 37.24 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: 965 * Number of variables: 965 Notification: Performance of Generate backend data structure: time 0.01195/1.364, allocations: 3.588 MB / 0.6746 GB, free: 36.2 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.726e-05/1.364, allocations: 19.61 kB / 0.6746 GB, free: 36.2 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005263/1.369, allocations: 0.8734 MB / 0.6754 GB, free: 35.99 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00982/1.379, allocations: 3.606 MB / 0.679 GB, free: 35.57 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003393/1.379, allocations: 280.2 kB / 0.6792 GB, free: 35.56 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001255/1.381, allocations: 367.2 kB / 0.6796 GB, free: 35.55 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01153/1.392, allocations: 4.603 MB / 0.6841 GB, free: 35.12 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-05/1.392, allocations: 5.062 kB / 0.6841 GB, free: 35.12 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003959/1.393, allocations: 152.7 kB / 0.6842 GB, free: 35.12 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001328/1.393, allocations: 162.1 kB / 0.6844 GB, free: 35.12 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007483/1.4, allocations: 3.687 MB / 0.688 GB, free: 35.09 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0263/1.427, allocations: 15.76 MB / 0.7034 GB, free: 31.34 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005211/1.432, allocations: 6.924 MB / 0.7101 GB, free: 26.13 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002154/1.434, allocations: 1.479 MB / 0.7116 GB, free: 26.11 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006704/1.441, allocations: 4.054 MB / 0.7155 GB, free: 25.28 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.551e-05/1.441, allocations: 57.31 kB / 0.7156 GB, free: 25.23 MB / 442.7 MB Notification: Performance of pre-optimization done (n=135): time 2.926e-06/1.441, allocations: 2.094 kB / 0.7156 GB, free: 25.23 MB / 442.7 MB Notification: Performance of matching and sorting (n=157): time 0.008841/1.45, allocations: 5.081 MB / 0.7206 GB, free: 23.97 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.716e-05/1.45, allocations: 67.41 kB / 0.7206 GB, free: 23.91 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002798/1.453, allocations: 1.875 MB / 0.7225 GB, free: 23.66 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001091/1.453, allocations: 48.8 kB / 0.7225 GB, free: 23.63 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008837/1.454, allocations: 1.728 MB / 0.7242 GB, free: 22.8 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003379/1.454, allocations: 0.543 MB / 0.7247 GB, free: 22.46 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.901e-05/1.454, allocations: 46.06 kB / 0.7248 GB, free: 22.46 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001192/1.454, allocations: 397.2 kB / 0.7251 GB, free: 22.15 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009842/1.455, allocations: 0.7529 MB / 0.7259 GB, free: 22.14 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001297/1.456, allocations: 1.491 MB / 0.7273 GB, free: 21.27 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001255/1.458, allocations: 1.039 MB / 0.7283 GB, free: 21.24 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.046e-05/1.458, allocations: 7.688 kB / 0.7284 GB, free: 21.24 MB / 442.7 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.004136/1.462, allocations: 2.864 MB / 0.7311 GB, free: 20.92 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.626e-05/1.462, allocations: 18.25 kB / 0.7312 GB, free: 20.92 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.892e-05/1.462, allocations: 21.38 kB / 0.7312 GB, free: 20.92 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007319/1.463, allocations: 298.2 kB / 0.7315 GB, free: 20.89 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001646/1.464, allocations: 0.4899 MB / 0.7319 GB, free: 20.89 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003744/1.468, allocations: 4.444 MB / 0.7363 GB, free: 18.21 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002305/1.47, allocations: 106.4 kB / 0.7364 GB, free: 18.2 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002088/1.471, allocations: 99.12 kB / 0.7365 GB, free: 18.2 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 107 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (257): * Single equations (assignments): 254 * 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 {(2,100.0%) 13,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003817/1.471, allocations: 244.8 kB / 0.7367 GB, free: 18.08 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003741/1.471, allocations: 229.8 kB / 0.7369 GB, free: 17.96 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003693/1.475, allocations: 2.294 MB / 0.7392 GB, free: 17.63 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.308e-05/1.475, allocations: 18.28 kB / 0.7392 GB, free: 17.63 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.636e-06/1.475, allocations: 3.344 kB / 0.7392 GB, free: 17.63 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.578e-05/1.475, allocations: 11.23 kB / 0.7392 GB, free: 17.63 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008704/1.484, allocations: 5.506 MB / 0.7446 GB, free: 15.66 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.027e-06/1.484, allocations: 4.438 kB / 0.7446 GB, free: 15.66 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001149/1.485, allocations: 274.6 kB / 0.7449 GB, free: 15.65 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007815/1.486, allocations: 317 kB / 0.7452 GB, free: 15.54 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.983e-05/1.486, allocations: 38.91 kB / 0.7452 GB, free: 15.52 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005217/1.491, allocations: 6.368 MB / 0.7514 GB, free: 10.18 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/1.491, allocations: 3.844 kB / 0.7514 GB, free: 10.18 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004875/1.496, allocations: 3.43 MB / 0.7548 GB, free: 8.359 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001347/1.498, allocations: 488.3 kB / 0.7552 GB, free: 8.016 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002959/1.498, allocations: 31.28 kB / 0.7553 GB, free: 7.992 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001018/1.499, allocations: 71.3 kB / 0.7553 GB, free: 7.973 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003055/1.499, allocations: 118.1 kB / 0.7554 GB, free: 7.953 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.865e-05/1.499, allocations: 44.25 kB / 0.7555 GB, free: 7.941 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002201/1.502, allocations: 1.406 MB / 0.7569 GB, free: 7.348 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.6e-07/1.502, allocations: 0 / 0.7569 GB, free: 7.348 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002789/1.504, allocations: 0.692 MB / 0.7575 GB, free: 7.273 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (smee.inertiaRotor.w,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.stator.stray.Phi.re,smee.stator.stray.Phi.im,constantTorque.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (131): * Single equations (assignments): 128 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 12,(1,100.0%) 5,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006381/1.505, allocations: 443.5 kB / 0.758 GB, free: 7.094 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003665/1.509, allocations: 2.322 MB / 0.7602 GB, free: 22.05 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.821e-06/1.509, allocations: 3.406 kB / 0.7602 GB, free: 22.05 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001779/1.51, allocations: 1.33 MB / 0.7615 GB, free: 21.32 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002935/1.513, allocations: 0.534 MB / 0.762 GB, free: 21.16 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01154/1.525, allocations: 5.204 MB / 0.7671 GB, free: 18.92 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00242/1.527, allocations: 2.585 MB / 0.7697 GB, free: 17.82 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002188/1.53, allocations: 0.5036 MB / 0.7701 GB, free: 17.75 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004095/1.53, allocations: 158 kB / 0.7703 GB, free: 17.74 MB / 458.7 MB Notification: Performance of SimCode: time 1.312e-06/1.53, allocations: 1.781 kB / 0.7703 GB, free: 17.74 MB / 458.7 MB Notification: Performance of Templates: time 0.05749/1.588, allocations: 32.82 MB / 0.8023 GB, free: 9.414 MB / 458.7 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe 2>&1)