Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.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_Synchronization3,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5998,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3") translateModel(HanserModelica.SynchronousMachines.SMEE_Synchronization3,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5998,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001186/0.001186, allocations: 175.2 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.03974/0.03974, allocations: 8.704 MB / 21.96 MB, free: 3.734 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.307/1.307, allocations: 221.4 MB / 246 MB, free: 3.621 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.000888/0.0008879, allocations: 94.02 kB / 299.1 MB, free: 3.012 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.602e-05/3.604e-05, allocations: 4 kB / 359.5 MB, free: 6.539 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.274/0.274, allocations: 52.53 MB / 412 MB, free: 22.56 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4075/0.6816, allocations: 117 MB / 0.5166 GB, free: 90.92 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001956/0.6819, allocations: 79.89 kB / 0.5167 GB, free: 90.88 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6768/1.359, allocations: 158.2 MB / 0.6712 GB, free: 37 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.243e-06/1.359, allocations: 3.75 kB / 0.6712 GB, free: 37 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002374/1.359, allocations: 93.5 kB / 0.6713 GB, free: 37 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.009286/1.368, allocations: 3.59 MB / 0.6748 GB, free: 35.96 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.504e-05/1.368, allocations: 7.469 kB / 0.6748 GB, free: 35.96 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004981/1.373, allocations: 0.8842 MB / 0.6756 GB, free: 35.74 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01028/1.384, allocations: 3.6 MB / 0.6791 GB, free: 35.33 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002587/1.384, allocations: 273.8 kB / 0.6794 GB, free: 35.32 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007117/1.385, allocations: 374.9 kB / 0.6798 GB, free: 35.32 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008122/1.393, allocations: 4.599 MB / 0.6843 GB, free: 34.89 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.626e-05/1.393, allocations: 4.812 kB / 0.6843 GB, free: 34.89 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003915/1.393, allocations: 154.3 kB / 0.6844 GB, free: 34.89 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003524/1.394, allocations: 153.9 kB / 0.6846 GB, free: 34.88 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006305/1.4, allocations: 3.694 MB / 0.6882 GB, free: 34.85 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02256/1.422, allocations: 15.75 MB / 0.7036 GB, free: 31.11 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005074/1.428, allocations: 6.936 MB / 0.7103 GB, free: 25.89 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002249/1.43, allocations: 1.476 MB / 0.7118 GB, free: 25.87 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008063/1.438, allocations: 4.053 MB / 0.7157 GB, free: 25.04 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.026e-05/1.438, allocations: 54.25 kB / 0.7158 GB, free: 24.99 MB / 442.7 MB Notification: Performance of pre-optimization done (n=135): time 4.829e-06/1.438, allocations: 0.6562 kB / 0.7158 GB, free: 24.99 MB / 442.7 MB Notification: Performance of matching and sorting (n=157): time 0.009488/1.448, allocations: 5.082 MB / 0.7207 GB, free: 23.73 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.971e-05/1.448, allocations: 72.72 kB / 0.7208 GB, free: 23.67 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002793/1.451, allocations: 1.872 MB / 0.7226 GB, free: 23.42 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 8.994e-05/1.451, allocations: 48.95 kB / 0.7227 GB, free: 23.39 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000901/1.452, allocations: 1.729 MB / 0.7244 GB, free: 22.56 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003615/1.452, allocations: 0.5389 MB / 0.7249 GB, free: 22.22 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.534e-05/1.452, allocations: 52.56 kB / 0.7249 GB, free: 22.22 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001315/1.452, allocations: 389.7 kB / 0.7253 GB, free: 21.91 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001084/1.453, allocations: 0.7569 MB / 0.7261 GB, free: 21.91 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00141/1.455, allocations: 1.485 MB / 0.7275 GB, free: 21.03 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001337/1.456, allocations: 1.045 MB / 0.7285 GB, free: 21 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.06e-05/1.456, allocations: 7.219 kB / 0.7285 GB, free: 21 MB / 442.7 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.004174/1.46, allocations: 2.87 MB / 0.7313 GB, free: 20.68 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.288e-05/1.46, allocations: 12.88 kB / 0.7314 GB, free: 20.68 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.56e-05/1.46, allocations: 25.81 kB / 0.7314 GB, free: 20.68 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007587/1.461, allocations: 294.2 kB / 0.7317 GB, free: 20.66 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001593/1.463, allocations: 0.4959 MB / 0.7321 GB, free: 20.65 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003826/1.466, allocations: 4.445 MB / 0.7365 GB, free: 17.97 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001951/1.468, allocations: 101.4 kB / 0.7366 GB, free: 17.96 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001351/1.469, allocations: 97.25 kB / 0.7367 GB, free: 17.96 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.0003395/1.469, allocations: 253.7 kB / 0.7369 GB, free: 17.84 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003035/1.469, allocations: 232 kB / 0.7371 GB, free: 17.72 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003525/1.473, allocations: 2.288 MB / 0.7394 GB, free: 17.39 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-05/1.473, allocations: 14.72 kB / 0.7394 GB, free: 17.39 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.865e-06/1.473, allocations: 7.594 kB / 0.7394 GB, free: 17.39 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.355e-05/1.473, allocations: 11.28 kB / 0.7394 GB, free: 17.39 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007667/1.481, allocations: 5.512 MB / 0.7448 GB, free: 15.46 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.364e-06/1.481, allocations: 3.938 kB / 0.7448 GB, free: 15.46 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001087/1.482, allocations: 275.7 kB / 0.745 GB, free: 15.45 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006979/1.482, allocations: 309.8 kB / 0.7453 GB, free: 15.34 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.648e-05/1.482, allocations: 38.73 kB / 0.7454 GB, free: 15.31 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004764/1.487, allocations: 6.372 MB / 0.7516 GB, free: 9.973 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.049e-06/1.487, allocations: 3.969 kB / 0.7516 GB, free: 9.973 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004836/1.492, allocations: 3.417 MB / 0.7549 GB, free: 24.16 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001287/1.493, allocations: 487.3 kB / 0.7554 GB, free: 23.82 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002402/1.494, allocations: 30.95 kB / 0.7554 GB, free: 23.8 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009803/1.495, allocations: 71.09 kB / 0.7555 GB, free: 23.77 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000271/1.495, allocations: 115.4 kB / 0.7556 GB, free: 23.75 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.444e-05/1.495, allocations: 47.45 kB / 0.7557 GB, free: 23.74 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002201/1.497, allocations: 1.407 MB / 0.757 GB, free: 23.15 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.5e-07/1.497, allocations: 4 kB / 0.757 GB, free: 23.14 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002475/1.5, allocations: 0.6921 MB / 0.7577 GB, free: 23.07 MB / 458.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.00062/1.5, allocations: 442.6 kB / 0.7581 GB, free: 22.89 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003385/1.504, allocations: 2.32 MB / 0.7604 GB, free: 21.85 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/1.504, allocations: 0 / 0.7604 GB, free: 21.85 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001754/1.505, allocations: 1.337 MB / 0.7617 GB, free: 21.11 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002411/1.508, allocations: 0.5333 MB / 0.7622 GB, free: 20.95 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009173/1.517, allocations: 5.208 MB / 0.7673 GB, free: 18.72 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0021/1.519, allocations: 2.581 MB / 0.7698 GB, free: 17.62 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002033/1.521, allocations: 0.5131 MB / 0.7703 GB, free: 17.55 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003904/1.522, allocations: 153.3 kB / 0.7705 GB, free: 17.54 MB / 458.7 MB Notification: Performance of SimCode: time 1.183e-06/1.522, allocations: 0 / 0.7705 GB, free: 17.54 MB / 458.7 MB Notification: Performance of Templates: time 0.05652/1.578, allocations: 32.82 MB / 0.8025 GB, free: 9.355 MB / 458.7 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe 2>&1)