Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.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_Synchronization1,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5998,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1") translateModel(HanserModelica.SynchronousMachines.SMEE_Synchronization1,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5998,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001178/0.001179, allocations: 174.5 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.0406/0.0406, 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.367/1.367, allocations: 221.4 MB / 246 MB, free: 3.547 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.00104/0.00104, allocations: 89.17 kB / 299.1 MB, free: 2.992 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.409e-05/3.412e-05, allocations: 4 kB / 359.5 MB, free: 6.52 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2932/0.2932, allocations: 52.55 MB / 412.1 MB, free: 22.55 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4414/0.7346, allocations: 116.9 MB / 0.5166 GB, free: 43.74 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002418/0.7349, allocations: 80.12 kB / 0.5167 GB, free: 43.74 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3417/1.077, allocations: 157.7 MB / 0.6706 GB, free: 1.984 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.784e-06/1.077, allocations: 0 / 0.6706 GB, free: 1.984 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002552/1.077, allocations: 87.94 kB / 0.6707 GB, free: 1.898 MB / 458.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.3014/1.378, allocations: 3.59 MB / 0.6742 GB, free: 75.08 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.126e-05/1.378, allocations: 12.17 kB / 0.6742 GB, free: 75.08 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006162/1.384, allocations: 0.8813 MB / 0.6751 GB, free: 74.87 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01025/1.395, allocations: 3.607 MB / 0.6786 GB, free: 74.51 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003553/1.395, allocations: 277.1 kB / 0.6789 GB, free: 74.5 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00159/1.397, allocations: 374.5 kB / 0.6792 GB, free: 74.5 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01118/1.408, allocations: 4.599 MB / 0.6837 GB, free: 74.07 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.438e-05/1.408, allocations: 3.938 kB / 0.6837 GB, free: 74.07 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003637/1.408, allocations: 162.2 kB / 0.6839 GB, free: 74.07 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001185/1.409, allocations: 155 kB / 0.684 GB, free: 74.06 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0063/1.415, allocations: 3.687 MB / 0.6876 GB, free: 74.03 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02412/1.439, allocations: 15.76 MB / 0.703 GB, free: 70.43 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00494/1.444, allocations: 6.935 MB / 0.7098 GB, free: 65.22 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002175/1.446, allocations: 1.477 MB / 0.7112 GB, free: 65.2 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006692/1.453, allocations: 4.046 MB / 0.7152 GB, free: 64.37 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.839e-05/1.453, allocations: 53.34 kB / 0.7152 GB, free: 64.32 MB / 458.7 MB Notification: Performance of pre-optimization done (n=135): time 2.966e-06/1.453, allocations: 0 / 0.7152 GB, free: 64.32 MB / 458.7 MB Notification: Performance of matching and sorting (n=157): time 0.008883/1.462, allocations: 5.081 MB / 0.7202 GB, free: 63.07 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.21e-05/1.462, allocations: 67.88 kB / 0.7203 GB, free: 63 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002516/1.464, allocations: 1.872 MB / 0.7221 GB, free: 62.76 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001083/1.465, allocations: 60.2 kB / 0.7222 GB, free: 62.73 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008529/1.465, allocations: 1.727 MB / 0.7238 GB, free: 61.9 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003128/1.466, allocations: 0.5399 MB / 0.7244 GB, free: 61.56 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.207e-05/1.466, allocations: 42.69 kB / 0.7244 GB, free: 61.56 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001089/1.466, allocations: 386.9 kB / 0.7248 GB, free: 61.25 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009956/1.467, allocations: 0.7634 MB / 0.7255 GB, free: 61.05 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00125/1.468, allocations: 1.484 MB / 0.727 GB, free: 59.81 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001278/1.47, allocations: 1.046 MB / 0.728 GB, free: 59.41 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.014e-05/1.47, allocations: 7.469 kB / 0.728 GB, free: 59.41 MB / 458.7 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.003953/1.474, allocations: 2.868 MB / 0.7308 GB, free: 58.31 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.848e-05/1.474, allocations: 11.81 kB / 0.7308 GB, free: 58.31 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.586e-05/1.474, allocations: 27.06 kB / 0.7308 GB, free: 58.31 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007154/1.474, allocations: 292.4 kB / 0.7311 GB, free: 58.21 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001577/1.476, allocations: 0.4995 MB / 0.7316 GB, free: 58.2 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003654/1.48, allocations: 4.442 MB / 0.7359 GB, free: 54.54 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001947/1.482, allocations: 111 kB / 0.736 GB, free: 54.49 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001649/1.482, allocations: 96.34 kB / 0.7361 GB, free: 54.48 MB / 458.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.0003511/1.482, allocations: 242.1 kB / 0.7364 GB, free: 54.29 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003009/1.482, allocations: 233.3 kB / 0.7366 GB, free: 54.18 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003517/1.486, allocations: 2.298 MB / 0.7388 GB, free: 53.09 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.068e-05/1.486, allocations: 14 kB / 0.7389 GB, free: 53.09 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.157e-06/1.486, allocations: 7.5 kB / 0.7389 GB, free: 53.09 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.362e-05/1.486, allocations: 7.172 kB / 0.7389 GB, free: 53.09 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008087/1.494, allocations: 5.52 MB / 0.7443 GB, free: 50.53 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.613e-06/1.494, allocations: 0 / 0.7443 GB, free: 50.53 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00111/1.495, allocations: 275.5 kB / 0.7445 GB, free: 50.52 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007551/1.496, allocations: 312 kB / 0.7448 GB, free: 50.41 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.923e-05/1.496, allocations: 35.5 kB / 0.7449 GB, free: 50.39 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004927/1.501, allocations: 6.365 MB / 0.7511 GB, free: 45.08 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/1.501, allocations: 3.438 kB / 0.7511 GB, free: 45.08 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004531/1.506, allocations: 3.42 MB / 0.7544 GB, free: 43.29 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001194/1.507, allocations: 492.3 kB / 0.7549 GB, free: 42.94 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002519/1.507, allocations: 31.16 kB / 0.7549 GB, free: 42.92 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009767/1.508, allocations: 71.22 kB / 0.755 GB, free: 42.9 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002513/1.508, allocations: 115.6 kB / 0.7551 GB, free: 42.89 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.458e-05/1.508, allocations: 47.19 kB / 0.7551 GB, free: 42.88 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001973/1.51, allocations: 1.41 MB / 0.7565 GB, free: 42.28 MB / 458.7 MB Notification: Performance of sort global known variables: time 3e-07/1.51, allocations: 0 / 0.7565 GB, free: 42.28 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002342/1.513, allocations: 0.7047 MB / 0.7572 GB, free: 42.2 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.0005876/1.513, allocations: 433.8 kB / 0.7576 GB, free: 42.05 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00315/1.517, allocations: 2.316 MB / 0.7599 GB, free: 41.01 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.522e-06/1.517, allocations: 3.438 kB / 0.7599 GB, free: 41.01 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002013/1.519, allocations: 1.341 MB / 0.7612 GB, free: 40.28 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003083/1.522, allocations: 0.5358 MB / 0.7617 GB, free: 40.13 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01027/1.532, allocations: 5.209 MB / 0.7668 GB, free: 38.06 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00202/1.534, allocations: 2.582 MB / 0.7693 GB, free: 36.96 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002028/1.536, allocations: 0.5091 MB / 0.7698 GB, free: 36.89 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004143/1.536, allocations: 149.5 kB / 0.77 GB, free: 36.88 MB / 458.7 MB Notification: Performance of SimCode: time 1.012e-06/1.537, allocations: 3.281 kB / 0.77 GB, free: 36.88 MB / 458.7 MB Notification: Performance of Templates: time 0.05995/1.596, allocations: 32.82 MB / 0.802 GB, free: 23.76 MB / 458.7 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe 2>&1)