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.009636/0.009636, allocations: 102.7 kB / 15.73 MB, free: 5.957 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.495/1.495, allocations: 222.9 MB / 239.4 MB, free: 4.52 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.001838/0.001838, allocations: 184.5 kB / 289.7 MB, free: 2.242 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03361/0.03361, allocations: 8.796 MB / 348.6 MB, free: 4.621 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001565/0.001565, allocations: 75.88 kB / 463.9 MB, free: 13.06 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1186/0.1202, allocations: 51.57 MB / 0.5034 GB, free: 9.461 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization2): time 0.01825/0.1384, allocations: 15.82 MB / 0.5189 GB, free: 9.566 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01156/0.1501, allocations: 5.278 MB / 0.524 GB, free: 4.273 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003676/0.1538, allocations: 91.69 kB / 0.5241 GB, free: 4.184 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003947/0.1578, allocations: 1.211 MB / 0.5253 GB, free: 2.965 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.006036/0.1638, allocations: 1.549 MB / 0.5268 GB, free: 1.406 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002945/0.1668, allocations: 0.9676 MB / 0.5278 GB, free: 452 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.3089/0.4758, allocations: 4.689 MB / 0.5323 GB, free: 6.164 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005708/0.4815, allocations: 3.527 MB / 0.5358 GB, free: 5.551 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005228/0.4868, allocations: 2.115 MB / 0.5378 GB, free: 5.281 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00719/0.494, allocations: 2.44 MB / 0.5402 GB, free: 4.852 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003323/0.4974, allocations: 0.5717 MB / 0.5408 GB, free: 4.852 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004338/0.5017, allocations: 0.7802 MB / 0.5415 GB, free: 4.852 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002998/0.5048, allocations: 1.286 MB / 0.5428 GB, free: 4.703 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008016/0.5128, allocations: 2.445 MB / 0.5452 GB, free: 4.102 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01424/0.5271, allocations: 7.499 MB / 0.5525 GB, free: 3.035 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.972e-06/0.5271, allocations: 0 / 0.5525 GB, free: 3.035 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.146e-06/0.5271, allocations: 0 / 0.5525 GB, free: 3.035 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003442/0.5275, allocations: 0 / 0.5525 GB, free: 3.035 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.02031/0.5478, allocations: 5.004 MB / 0.5574 GB, free: 15.96 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.152e-05/0.5479, allocations: 8.969 kB / 0.5574 GB, free: 15.96 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007233/0.5551, allocations: 0.9483 MB / 0.5583 GB, free: 15.52 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008075/0.5632, allocations: 2.839 MB / 0.5611 GB, free: 13.61 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003126/0.5636, allocations: 276.2 kB / 0.5614 GB, free: 13.48 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00189/0.5655, allocations: 365.1 kB / 0.5617 GB, free: 13.36 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01207/0.5775, allocations: 4.777 MB / 0.5664 GB, free: 10.55 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.812e-05/0.5777, allocations: 6.266 kB / 0.5664 GB, free: 10.55 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004245/0.5781, allocations: 146.1 kB / 0.5665 GB, free: 10.44 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001801/0.5783, allocations: 152 kB / 0.5667 GB, free: 10.42 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008519/0.5868, allocations: 4.05 MB / 0.5706 GB, free: 7.125 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03075/0.6176, allocations: 15.56 MB / 0.5858 GB, free: 7.383 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006883/0.6245, allocations: 6.93 MB / 0.5926 GB, free: 15.58 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002736/0.6273, allocations: 1.503 MB / 0.5941 GB, free: 14.08 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008193/0.6355, allocations: 4.152 MB / 0.5981 GB, free: 9.863 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.673e-05/0.6356, allocations: 47.88 kB / 0.5982 GB, free: 9.805 MB / 414.1 MB Notification: Performance of pre-optimization done (n=137): time 3.847e-06/0.6356, allocations: 4 kB / 0.5982 GB, free: 9.801 MB / 414.1 MB Notification: Performance of matching and sorting (n=159): time 0.0139/0.6495, allocations: 6.374 MB / 0.6044 GB, free: 3.301 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.771e-05/0.6496, allocations: 64.72 kB / 0.6044 GB, free: 3.227 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003715/0.6533, allocations: 2.179 MB / 0.6066 GB, free: 1.016 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002513/0.6536, allocations: 53.7 kB / 0.6066 GB, free: 0.957 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001272/0.6549, allocations: 1.733 MB / 0.6083 GB, free: 15.21 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005309/0.6554, allocations: 0.5445 MB / 0.6088 GB, free: 14.67 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006375/0.6561, allocations: 411.8 kB / 0.6092 GB, free: 14.26 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001044/0.6562, allocations: 305.1 kB / 0.6095 GB, free: 13.96 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001344/0.6575, allocations: 0.8242 MB / 0.6103 GB, free: 13.13 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001798/0.6593, allocations: 1.588 MB / 0.6119 GB, free: 11.2 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003211/0.6626, allocations: 2.592 MB / 0.6144 GB, free: 8.371 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.161e-05/0.6626, allocations: 8 kB / 0.6144 GB, free: 8.363 MB / 430.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.00518/0.6678, allocations: 3.029 MB / 0.6174 GB, free: 5.449 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.737e-05/0.6678, allocations: 12.75 kB / 0.6174 GB, free: 5.438 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.109e-05/0.6679, allocations: 31.94 kB / 0.6174 GB, free: 5.406 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008831/0.6688, allocations: 306.6 kB / 0.6177 GB, free: 5.102 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001864/0.6706, allocations: 0.4992 MB / 0.6182 GB, free: 4.637 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005045/0.6757, allocations: 4.858 MB / 0.623 GB, free: 15.53 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002521/0.6783, allocations: 112.2 kB / 0.6231 GB, free: 15.42 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003335/0.6786, allocations: 96 kB / 0.6231 GB, free: 15.33 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.003233/0.6818, allocations: 1.129 MB / 0.6243 GB, free: 14.22 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007666/0.6826, allocations: 241.2 kB / 0.6245 GB, free: 13.98 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004268/0.6869, allocations: 2.399 MB / 0.6268 GB, free: 11.54 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.391e-05/0.6869, allocations: 16 kB / 0.6268 GB, free: 11.53 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.096e-05/0.6869, allocations: 8 kB / 0.6268 GB, free: 11.52 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.57e-05/0.687, allocations: 11.97 kB / 0.6269 GB, free: 11.51 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01145/0.6984, allocations: 5.696 MB / 0.6324 GB, free: 5.738 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.117e-06/0.6985, allocations: 8.031 kB / 0.6324 GB, free: 5.734 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001172/0.6996, allocations: 273.3 kB / 0.6327 GB, free: 5.48 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008235/0.7005, allocations: 317.9 kB / 0.633 GB, free: 5.164 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001028/0.7006, allocations: 39.98 kB / 0.633 GB, free: 5.125 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007106/0.7077, allocations: 7.008 MB / 0.6399 GB, free: 13.74 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.021e-06/0.7077, allocations: 4.031 kB / 0.6399 GB, free: 13.73 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00636/0.7141, allocations: 3.485 MB / 0.6433 GB, free: 10.18 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001917/0.7161, allocations: 0.4903 MB / 0.6438 GB, free: 9.668 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003547/0.7164, allocations: 36 kB / 0.6438 GB, free: 9.633 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001108/0.7175, allocations: 59.95 kB / 0.6439 GB, free: 9.574 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003407/0.7179, allocations: 124.5 kB / 0.644 GB, free: 9.457 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.43e-05/0.718, allocations: 39.98 kB / 0.644 GB, free: 9.418 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00251/0.7205, allocations: 1.479 MB / 0.6455 GB, free: 7.922 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.7205, allocations: 0 / 0.6455 GB, free: 7.922 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002787/0.7233, allocations: 0.6484 MB / 0.6461 GB, free: 7.273 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.0003391/0.7237, allocations: 169 kB / 0.6462 GB, free: 7.117 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003921/0.7276, allocations: 2.456 MB / 0.6486 GB, free: 4.695 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/0.7276, allocations: 4.312 kB / 0.6487 GB, free: 4.691 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002044/0.7297, allocations: 1.416 MB / 0.65 GB, free: 3.242 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003103/0.7328, allocations: 0.5713 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.01197/0.7448, allocations: 6.436 MB / 0.6569 GB, free: 12.2 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002274/0.7471, allocations: 2.511 MB / 0.6593 GB, free: 9.66 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001955/0.749, allocations: 0.5157 MB / 0.6598 GB, free: 9.141 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004373/0.7495, allocations: 163.4 kB / 0.66 GB, free: 8.984 MB / 478.1 MB Notification: Performance of SimCode: time 1.473e-06/0.7495, allocations: 0 / 0.66 GB, free: 8.984 MB / 478.1 MB Notification: Performance of Templates: time 0.05983/0.8093, allocations: 30.61 MB / 0.6899 GB, free: 10.73 MB / 0.4981 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)