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/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01133/0.01133, allocations: 103.4 kB / 15.74 MB, free: 6.484 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.453/1.453, allocations: 222.9 MB / 239.4 MB, free: 4.551 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.001442/0.001442, allocations: 188.5 kB / 289.7 MB, free: 2.266 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03393/0.03393, allocations: 8.795 MB / 348.6 MB, free: 4.629 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001448/0.001448, allocations: 83.88 kB / 463.9 MB, free: 13.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1187/0.1201, allocations: 51.56 MB / 0.5034 GB, free: 9.504 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization1): time 0.01736/0.1375, allocations: 15.8 MB / 0.5188 GB, free: 9.629 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01081/0.1484, allocations: 5.278 MB / 0.524 GB, free: 4.336 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003332/0.1518, allocations: 91.69 kB / 0.5241 GB, free: 4.246 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004194/0.156, allocations: 1.215 MB / 0.5253 GB, free: 3.023 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.006213/0.1623, allocations: 1.549 MB / 0.5268 GB, free: 1.465 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003498/0.1658, allocations: 0.9677 MB / 0.5277 GB, free: 0.5 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.277/0.4428, allocations: 4.692 MB / 0.5323 GB, free: 6.16 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005343/0.4482, allocations: 3.529 MB / 0.5357 GB, free: 5.547 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004492/0.4527, allocations: 2.117 MB / 0.5378 GB, free: 5.273 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006833/0.4596, allocations: 2.438 MB / 0.5402 GB, free: 4.848 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002525/0.4622, allocations: 0.5707 MB / 0.5408 GB, free: 4.848 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004534/0.4667, allocations: 0.7831 MB / 0.5415 GB, free: 4.848 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002671/0.4694, allocations: 1.284 MB / 0.5428 GB, free: 4.699 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007679/0.4771, allocations: 2.441 MB / 0.5452 GB, free: 4.098 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01392/0.4911, allocations: 7.503 MB / 0.5525 GB, free: 3.027 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.294e-06/0.4911, allocations: 0 / 0.5525 GB, free: 3.027 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.4911, allocations: 7.031 kB / 0.5525 GB, free: 3.023 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003094/0.4915, allocations: 0 / 0.5525 GB, free: 3.023 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.01824/0.5097, allocations: 4.986 MB / 0.5574 GB, free: 15.93 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.28e-05/0.5098, allocations: 8.625 kB / 0.5574 GB, free: 15.93 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006471/0.5162, allocations: 0.9541 MB / 0.5583 GB, free: 15.48 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007373/0.5237, allocations: 2.83 MB / 0.5611 GB, free: 13.58 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003492/0.5241, allocations: 276 kB / 0.5613 GB, free: 13.45 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001768/0.5258, allocations: 370.2 kB / 0.5617 GB, free: 13.33 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01379/0.5396, allocations: 4.773 MB / 0.5663 GB, free: 10.53 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.91e-05/0.5398, allocations: 3.375 kB / 0.5663 GB, free: 10.53 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004369/0.5402, allocations: 152.6 kB / 0.5665 GB, free: 10.41 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001422/0.5404, allocations: 156.8 kB / 0.5666 GB, free: 10.39 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008108/0.5485, allocations: 4.045 MB / 0.5706 GB, free: 7.121 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02675/0.5753, allocations: 15.55 MB / 0.5858 GB, free: 7.387 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006194/0.5815, allocations: 6.936 MB / 0.5925 GB, free: 15.59 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002456/0.584, allocations: 1.51 MB / 0.594 GB, free: 14.08 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007359/0.5914, allocations: 4.145 MB / 0.5981 GB, free: 9.863 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.331e-05/0.5914, allocations: 47.88 kB / 0.5981 GB, free: 9.805 MB / 414.1 MB Notification: Performance of pre-optimization done (n=137): time 3.246e-06/0.5914, allocations: 0 / 0.5981 GB, free: 9.805 MB / 414.1 MB Notification: Performance of matching and sorting (n=159): time 0.01274/0.6042, allocations: 6.368 MB / 0.6043 GB, free: 3.312 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.864e-05/0.6043, allocations: 72.66 kB / 0.6044 GB, free: 3.23 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003269/0.6075, allocations: 2.183 MB / 0.6065 GB, free: 1.016 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001042/0.6077, allocations: 53.7 kB / 0.6066 GB, free: 0.957 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001175/0.6088, allocations: 1.729 MB / 0.6083 GB, free: 15.21 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004343/0.6093, allocations: 0.5483 MB / 0.6088 GB, free: 14.67 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006115/0.6099, allocations: 403.8 kB / 0.6092 GB, free: 14.27 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.129e-05/0.61, allocations: 309 kB / 0.6095 GB, free: 13.96 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001259/0.6113, allocations: 0.8281 MB / 0.6103 GB, free: 13.13 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001725/0.613, allocations: 1.589 MB / 0.6118 GB, free: 11.2 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003128/0.6161, allocations: 2.588 MB / 0.6144 GB, free: 8.371 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.1e-05/0.6162, allocations: 8 kB / 0.6144 GB, free: 8.363 MB / 430.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.004754/0.6209, allocations: 3.036 MB / 0.6173 GB, free: 5.445 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.041e-05/0.621, allocations: 17.03 kB / 0.6174 GB, free: 5.43 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.773e-05/0.621, allocations: 31.92 kB / 0.6174 GB, free: 5.398 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008418/0.6219, allocations: 291.2 kB / 0.6177 GB, free: 5.105 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00181/0.6237, allocations: 0.4987 MB / 0.6182 GB, free: 4.641 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004577/0.6283, allocations: 4.863 MB / 0.6229 GB, free: 15.53 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001907/0.6302, allocations: 107.9 kB / 0.623 GB, free: 15.42 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001799/0.6304, allocations: 104 kB / 0.6231 GB, free: 15.32 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.002019/0.6325, allocations: 1.129 MB / 0.6242 GB, free: 14.21 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003946/0.6329, allocations: 237.2 kB / 0.6244 GB, free: 13.98 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003778/0.6366, allocations: 2.402 MB / 0.6268 GB, free: 11.54 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.179e-05/0.6367, allocations: 15.84 kB / 0.6268 GB, free: 11.53 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.999e-06/0.6367, allocations: 8 kB / 0.6268 GB, free: 11.52 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.318e-05/0.6367, allocations: 7.969 kB / 0.6268 GB, free: 11.51 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00874/0.6454, allocations: 5.696 MB / 0.6324 GB, free: 5.742 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.418e-06/0.6455, allocations: 4 kB / 0.6324 GB, free: 5.738 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00117/0.6467, allocations: 273.9 kB / 0.6326 GB, free: 5.484 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008067/0.6475, allocations: 321.7 kB / 0.6329 GB, free: 5.164 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001078/0.6476, allocations: 39.98 kB / 0.633 GB, free: 5.125 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006336/0.6539, allocations: 7.01 MB / 0.6398 GB, free: 13.73 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.654, allocations: 4.031 kB / 0.6398 GB, free: 13.73 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005177/0.6591, allocations: 3.483 MB / 0.6432 GB, free: 10.18 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001171/0.6603, allocations: 498.1 kB / 0.6437 GB, free: 9.668 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002697/0.6606, allocations: 36.25 kB / 0.6437 GB, free: 9.633 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009982/0.6616, allocations: 67.95 kB / 0.6438 GB, free: 9.566 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002696/0.6619, allocations: 124.6 kB / 0.6439 GB, free: 9.449 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.47e-05/0.662, allocations: 43.98 kB / 0.644 GB, free: 9.406 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002145/0.6642, allocations: 1.472 MB / 0.6454 GB, free: 7.918 MB / 462.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.6642, allocations: 192 / 0.6454 GB, free: 7.918 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002433/0.6666, allocations: 0.6523 MB / 0.646 GB, free: 7.266 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.0003228/0.667, allocations: 172.1 kB / 0.6462 GB, free: 7.109 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003907/0.6709, allocations: 2.468 MB / 0.6486 GB, free: 4.676 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.6709, allocations: 0 / 0.6486 GB, free: 4.676 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002023/0.6729, allocations: 1.416 MB / 0.65 GB, free: 3.234 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002596/0.6756, allocations: 0.5681 MB / 0.6506 GB, free: 2.672 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01143/0.687, allocations: 6.435 MB / 0.6568 GB, free: 12.2 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00234/0.6894, allocations: 2.511 MB / 0.6593 GB, free: 9.66 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001983/0.6914, allocations: 0.5235 MB / 0.6598 GB, free: 9.133 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004432/0.6918, allocations: 155.4 kB / 0.66 GB, free: 8.984 MB / 478.1 MB Notification: Performance of SimCode: time 9.32e-07/0.6918, allocations: 0 / 0.66 GB, free: 8.984 MB / 478.1 MB Notification: Performance of Templates: time 0.05821/0.7501, allocations: 30.6 MB / 0.6898 GB, free: 10.75 MB / 0.4981 GB 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)