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.002396/0.002396, allocations: 169.1 kB / 7.64 MB, free: 1.414 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.05143/0.05143, allocations: 8.715 MB / 16.79 MB, free: 3.375 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.445/1.445, allocations: 221.5 MB / 240.9 MB, free: 13.18 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.001132/0.001132, allocations: 93.61 kB / 293.8 MB, free: 7.207 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.58e-05/1.593e-05, allocations: 4 kB / 352.6 MB, free: 1.242 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1458/0.1459, allocations: 52.56 MB / 405.2 MB, free: 12.64 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4702/0.6161, allocations: 116.3 MB / 0.5093 GB, free: 3.645 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003492/0.6166, allocations: 71.97 kB / 0.5093 GB, free: 3.574 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6793/1.296, allocations: 156.1 MB / 0.6618 GB, free: 65.44 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.214e-06/1.296, allocations: 4 kB / 0.6618 GB, free: 65.44 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0004478/1.296, allocations: 91.31 kB / 0.6618 GB, free: 65.42 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.01388/1.31, allocations: 3.596 MB / 0.6654 GB, free: 63.09 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.381e-05/1.31, allocations: 14.3 kB / 0.6654 GB, free: 63.08 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006017/1.316, allocations: 0.8774 MB / 0.6662 GB, free: 62.66 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01107/1.327, allocations: 3.604 MB / 0.6698 GB, free: 60.29 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002843/1.328, allocations: 119.1 kB / 0.6699 GB, free: 60.29 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001638/1.329, allocations: 222 kB / 0.6701 GB, free: 60.28 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009552/1.339, allocations: 3.477 MB / 0.6735 GB, free: 58.52 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01217/1.351, allocations: 4.056 MB / 0.6774 GB, free: 56.15 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001875/1.351, allocations: 3.375 kB / 0.6774 GB, free: 56.15 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001123/1.353, allocations: 7.578 kB / 0.6774 GB, free: 56.15 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001686/1.353, allocations: 153.5 kB / 0.6776 GB, free: 56.13 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03373/1.387, allocations: 15.08 MB / 0.6923 GB, free: 43.27 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005571/1.392, allocations: 6.845 MB / 0.699 GB, free: 35.54 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00222/1.394, allocations: 1.412 MB / 0.7004 GB, free: 34.14 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007324/1.402, allocations: 3.942 MB / 0.7042 GB, free: 30.12 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.25e-05/1.402, allocations: 51.88 kB / 0.7043 GB, free: 30.07 MB / 442.7 MB Notification: Performance of pre-optimization done (n=135): time 2.856e-06/1.402, allocations: 0 / 0.7043 GB, free: 30.07 MB / 442.7 MB Notification: Performance of matching and sorting (n=157): time 0.01135/1.413, allocations: 5.358 MB / 0.7095 GB, free: 24.62 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.433e-05/1.413, allocations: 64.72 kB / 0.7096 GB, free: 24.54 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003348/1.417, allocations: 1.553 MB / 0.7111 GB, free: 22.95 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001346/1.417, allocations: 25.7 kB / 0.7111 GB, free: 22.92 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001077/1.418, allocations: 1.725 MB / 0.7128 GB, free: 21.17 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004225/1.418, allocations: 0.5197 MB / 0.7133 GB, free: 20.64 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001343/1.418, allocations: 0 / 0.7133 GB, free: 20.64 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001391/1.419, allocations: 386.3 kB / 0.7137 GB, free: 20.26 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000924/1.42, allocations: 0.7188 MB / 0.7144 GB, free: 19.54 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001134/1.421, allocations: 1.431 MB / 0.7158 GB, free: 17.77 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001642/1.422, allocations: 1.146 MB / 0.7169 GB, free: 16.62 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.025e-05/1.422, allocations: 8 kB / 0.7169 GB, free: 16.62 MB / 442.7 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.004421/1.427, allocations: 2.76 MB / 0.7196 GB, free: 13.82 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.875e-05/1.427, allocations: 16 kB / 0.7196 GB, free: 13.8 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.503e-05/1.427, allocations: 24 kB / 0.7196 GB, free: 13.78 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007504/1.428, allocations: 286.6 kB / 0.7199 GB, free: 13.49 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00161/1.429, allocations: 0.4914 MB / 0.7204 GB, free: 13 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00362/1.433, allocations: 4.282 MB / 0.7246 GB, free: 8.492 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001931/1.435, allocations: 51.78 kB / 0.7246 GB, free: 8.441 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000242/1.435, allocations: 104 kB / 0.7247 GB, free: 8.34 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.0003617/1.435, allocations: 172.4 kB / 0.7249 GB, free: 8.164 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006067/1.436, allocations: 217.4 kB / 0.7251 GB, free: 7.949 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004094/1.44, allocations: 2.301 MB / 0.7273 GB, free: 5.594 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.318e-05/1.44, allocations: 16 kB / 0.7273 GB, free: 5.578 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.426e-05/1.44, allocations: 4 kB / 0.7274 GB, free: 5.574 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.479e-05/1.44, allocations: 7.969 kB / 0.7274 GB, free: 5.566 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009217/1.449, allocations: 5.055 MB / 0.7323 GB, free: 440 kB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.253e-06/1.449, allocations: 0 / 0.7323 GB, free: 440 kB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001119/1.451, allocations: 271.7 kB / 0.7326 GB, free: 168 kB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008075/1.451, allocations: 310.4 kB / 0.7328 GB, free: 15.85 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001476/1.452, allocations: 19.98 kB / 0.7329 GB, free: 15.83 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006612/1.458, allocations: 6.103 MB / 0.7388 GB, free: 9.387 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.087e-06/1.458, allocations: 12.03 kB / 0.7388 GB, free: 9.375 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006307/1.465, allocations: 3.413 MB / 0.7422 GB, free: 5.824 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001443/1.466, allocations: 458.4 kB / 0.7426 GB, free: 5.355 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006914/1.467, allocations: 8 kB / 0.7426 GB, free: 5.348 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001455/1.468, allocations: 47.95 kB / 0.7427 GB, free: 5.301 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003237/1.469, allocations: 117.1 kB / 0.7428 GB, free: 5.184 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000123/1.469, allocations: 43.94 kB / 0.7428 GB, free: 5.141 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002626/1.471, allocations: 1.142 MB / 0.7439 GB, free: 3.977 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.4e-07/1.471, allocations: 0 / 0.7439 GB, free: 3.977 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003227/1.475, allocations: 0.59 MB / 0.7445 GB, free: 3.387 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.0006222/1.475, allocations: 343 kB / 0.7448 GB, free: 3.07 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00374/1.479, allocations: 2.194 MB / 0.747 GB, free: 0.8359 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/1.479, allocations: 3.938 kB / 0.747 GB, free: 0.832 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.2617/1.741, allocations: 1.273 MB / 0.7482 GB, free: 83.61 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003079/1.744, allocations: 400.4 kB / 0.7486 GB, free: 83.6 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01126/1.755, allocations: 5.072 MB / 0.7536 GB, free: 82.46 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002129/1.757, allocations: 2.586 MB / 0.7561 GB, free: 81.7 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002152/1.76, allocations: 494.1 kB / 0.7566 GB, free: 81.68 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004599/1.76, allocations: 141.4 kB / 0.7567 GB, free: 81.68 MB / 458.7 MB Notification: Performance of SimCode: time 1.543e-06/1.76, allocations: 3.125 kB / 0.7567 GB, free: 81.68 MB / 458.7 MB Notification: Performance of Templates: time 0.05183/1.812, allocations: 25.12 MB / 0.7812 GB, free: 80.64 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)