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/ModelicaServices 4.0.0+maint.om/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/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) 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) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001187/0.001187, allocations: 108.1 kB / 16.41 MB, free: 6.512 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.4/1.4, allocations: 222.9 MB / 240.1 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001404/0.001404, allocations: 192.5 kB / 290.4 MB, free: 2.117 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03457/0.03457, allocations: 8.801 MB / 349.3 MB, free: 4.582 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001756/0.001756, allocations: 83.88 kB / 464.6 MB, free: 13.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1057, allocations: 51.57 MB / 0.5041 GB, free: 9.43 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization2): time 0.0174/0.1231, allocations: 15.82 MB / 0.5195 GB, free: 9.535 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01052/0.1337, allocations: 5.278 MB / 0.5247 GB, free: 4.242 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003022/0.1368, allocations: 91.69 kB / 0.5248 GB, free: 4.152 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00407/0.1408, allocations: 1.211 MB / 0.526 GB, free: 2.934 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/SynchronousMachines/SMEE_Synchronization1.mo:18:3-19:30:writable] Warning: Conditional component 'ir' is used in a non-connect context. Notification: Performance of NFTyping.typeBindings: time 0.005793/0.1467, allocations: 1.548 MB / 0.5275 GB, free: 1.379 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003424/0.1502, allocations: 0.9716 MB / 0.5284 GB, free: 420 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.2404/0.3905, allocations: 4.69 MB / 0.533 GB, free: 6.184 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005239/0.3958, allocations: 3.53 MB / 0.5364 GB, free: 5.574 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004169/0.4, allocations: 2.116 MB / 0.5385 GB, free: 5.301 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005222/0.4053, allocations: 2.442 MB / 0.5409 GB, free: 4.871 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002125/0.4074, allocations: 0.5715 MB / 0.5415 GB, free: 4.871 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003508/0.411, allocations: 0.7788 MB / 0.5422 GB, free: 4.871 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002734/0.4137, allocations: 1.289 MB / 0.5435 GB, free: 4.723 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006293/0.42, allocations: 2.443 MB / 0.5459 GB, free: 4.121 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01149/0.4316, allocations: 7.503 MB / 0.5532 GB, free: 3.059 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.073e-06/0.4316, allocations: 0 / 0.5532 GB, free: 3.059 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.326e-06/0.4316, allocations: 5.219 kB / 0.5532 GB, free: 3.055 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000248/0.4319, allocations: 0 / 0.5532 GB, free: 3.055 MB / 366.1 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.01729/0.4492, allocations: 4.984 MB / 0.5581 GB, free: 15.95 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.196e-05/0.4493, allocations: 11.16 kB / 0.5581 GB, free: 15.95 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006218/0.4555, allocations: 0.9531 MB / 0.559 GB, free: 15.5 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006956/0.4625, allocations: 2.832 MB / 0.5618 GB, free: 13.59 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002462/0.4628, allocations: 273.7 kB / 0.562 GB, free: 13.47 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001172/0.464, allocations: 365.7 kB / 0.5624 GB, free: 13.35 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01152/0.4755, allocations: 4.778 MB / 0.567 GB, free: 10.54 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.277e-05/0.4756, allocations: 5.5 kB / 0.5671 GB, free: 10.54 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004504/0.4761, allocations: 146.2 kB / 0.5672 GB, free: 10.43 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001625/0.4763, allocations: 155.5 kB / 0.5673 GB, free: 10.41 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008566/0.4848, allocations: 4.049 MB / 0.5713 GB, free: 7.078 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03183/0.5167, allocations: 15.56 MB / 0.5865 GB, free: 7.336 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007383/0.5241, allocations: 6.919 MB / 0.5932 GB, free: 15.54 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003058/0.5272, allocations: 1.506 MB / 0.5947 GB, free: 14.04 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009559/0.5368, allocations: 4.154 MB / 0.5988 GB, free: 9.82 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.126e-05/0.5369, allocations: 43.88 kB / 0.5988 GB, free: 9.766 MB / 414.1 MB Notification: Performance of pre-optimization done (n=137): time 6.883e-06/0.537, allocations: 0 / 0.5988 GB, free: 9.766 MB / 414.1 MB Notification: Performance of matching and sorting (n=159): time 0.01555/0.5525, allocations: 6.364 MB / 0.605 GB, free: 3.273 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.048e-05/0.5527, allocations: 68.72 kB / 0.6051 GB, free: 3.195 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005529/0.5582, allocations: 2.187 MB / 0.6072 GB, free: 0.9766 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003754/0.5586, allocations: 49.7 kB / 0.6073 GB, free: 0.9219 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00158/0.5602, allocations: 1.733 MB / 0.609 GB, free: 15.17 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007625/0.561, allocations: 0.5489 MB / 0.6095 GB, free: 14.63 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009973/0.562, allocations: 407.8 kB / 0.6099 GB, free: 14.22 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001163/0.5621, allocations: 305.1 kB / 0.6102 GB, free: 13.92 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001601/0.5637, allocations: 0.8312 MB / 0.611 GB, free: 13.09 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002149/0.5659, allocations: 1.592 MB / 0.6126 GB, free: 11.16 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003796/0.5697, allocations: 2.586 MB / 0.6151 GB, free: 8.328 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.256e-05/0.5697, allocations: 4 kB / 0.6151 GB, free: 8.324 MB / 430.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.00582/0.5756, allocations: 3.032 MB / 0.618 GB, free: 5.41 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.951e-05/0.5757, allocations: 20.03 kB / 0.6181 GB, free: 5.391 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.885e-05/0.5757, allocations: 27.94 kB / 0.6181 GB, free: 5.363 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009358/0.5767, allocations: 309.8 kB / 0.6184 GB, free: 5.059 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001943/0.5786, allocations: 0.4946 MB / 0.6189 GB, free: 4.598 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00539/0.584, allocations: 4.864 MB / 0.6236 GB, free: 15.48 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002729/0.5868, allocations: 107.9 kB / 0.6237 GB, free: 15.38 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005058/0.5873, allocations: 104 kB / 0.6238 GB, free: 15.28 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 111 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (264): * Single equations (assignments): 261 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,13,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003146/0.5905, allocations: 1.13 MB / 0.6249 GB, free: 14.17 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008835/0.5914, allocations: 233.2 kB / 0.6251 GB, free: 13.94 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005041/0.5964, allocations: 2.402 MB / 0.6275 GB, free: 11.5 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.186e-05/0.5965, allocations: 16 kB / 0.6275 GB, free: 11.48 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.893e-05/0.5965, allocations: 4.125 kB / 0.6275 GB, free: 11.48 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.089e-05/0.5965, allocations: 11.97 kB / 0.6275 GB, free: 11.47 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01274/0.6093, allocations: 5.7 MB / 0.6331 GB, free: 5.695 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.434e-05/0.6093, allocations: 0 / 0.6331 GB, free: 5.695 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001272/0.6106, allocations: 274.2 kB / 0.6333 GB, free: 5.438 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008948/0.6115, allocations: 322.4 kB / 0.6337 GB, free: 5.117 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001548/0.6117, allocations: 31.98 kB / 0.6337 GB, free: 5.086 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006916/0.6186, allocations: 7.028 MB / 0.6405 GB, free: 13.68 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.6187, allocations: 0 / 0.6405 GB, free: 13.68 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006072/0.6248, allocations: 3.486 MB / 0.644 GB, free: 10.12 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001555/0.6264, allocations: 494.1 kB / 0.6444 GB, free: 9.617 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009207/0.6273, allocations: 32 kB / 0.6445 GB, free: 9.586 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001812/0.6291, allocations: 63.95 kB / 0.6445 GB, free: 9.523 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003658/0.6295, allocations: 124.6 kB / 0.6446 GB, free: 9.406 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001278/0.6297, allocations: 43.98 kB / 0.6447 GB, free: 9.363 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003571/0.6332, allocations: 1.472 MB / 0.6461 GB, free: 7.875 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.6333, allocations: 0 / 0.6461 GB, free: 7.875 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003777/0.637, allocations: 0.6523 MB / 0.6468 GB, free: 7.223 MB / 462.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 130 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,12,100.0%), (1,5,100.0%), (1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005171/0.6376, allocations: 163.8 kB / 0.6469 GB, free: 7.074 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004776/0.6424, allocations: 2.471 MB / 0.6493 GB, free: 4.641 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.103e-06/0.6424, allocations: 0 / 0.6493 GB, free: 4.641 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002488/0.6449, allocations: 1.414 MB / 0.6507 GB, free: 3.188 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004452/0.6494, allocations: 0.5679 MB / 0.6513 GB, free: 2.625 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01526/0.6647, allocations: 6.407 MB / 0.6575 GB, free: 12.17 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003639/0.6684, allocations: 2.458 MB / 0.6599 GB, free: 9.688 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009588/0.6693, allocations: 167.4 kB / 0.6601 GB, free: 9.527 MB / 478.1 MB Notification: Performance of SimCode: time 8.72e-07/0.6694, allocations: 0 / 0.6601 GB, free: 9.527 MB / 478.1 MB Notification: Performance of Templates: time 0.382/1.051, allocations: 100.1 MB / 0.7578 GB, free: 172.6 MB / 0.5294 GB 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)