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/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00705/0.007051, allocations: 101.1 kB / 15.73 MB, free: 6.039 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.394/1.394, allocations: 222.9 MB / 239.4 MB, free: 4.543 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.00154/0.00154, allocations: 192.5 kB / 289.7 MB, free: 2.262 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03459/0.03459, allocations: 8.784 MB / 348.6 MB, free: 4.629 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001492/0.001492, allocations: 79.88 kB / 463.9 MB, free: 13.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1267/0.1282, allocations: 51.56 MB / 0.5034 GB, free: 9.469 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization3): time 0.02855/0.1568, allocations: 15.82 MB / 0.5189 GB, free: 9.574 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009687/0.1666, allocations: 5.27 MB / 0.524 GB, free: 4.289 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002768/0.1694, allocations: 91.69 kB / 0.5241 GB, free: 4.199 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003795/0.1732, allocations: 1.215 MB / 0.5253 GB, free: 2.977 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.007035/0.1803, allocations: 1.553 MB / 0.5268 GB, free: 1.414 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003446/0.1838, allocations: 0.9623 MB / 0.5277 GB, free: 464 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.2291/0.4129, allocations: 4.693 MB / 0.5323 GB, free: 6.18 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004959/0.4179, allocations: 3.526 MB / 0.5358 GB, free: 5.574 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004355/0.4222, allocations: 2.118 MB / 0.5378 GB, free: 5.301 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005292/0.4276, allocations: 2.438 MB / 0.5402 GB, free: 4.875 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001878/0.4295, allocations: 0.57 MB / 0.5408 GB, free: 4.875 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002868/0.4324, allocations: 0.7813 MB / 0.5415 GB, free: 4.875 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001614/0.434, allocations: 1.29 MB / 0.5428 GB, free: 4.727 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005355/0.4394, allocations: 2.444 MB / 0.5452 GB, free: 4.121 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01139/0.4508, allocations: 7.502 MB / 0.5525 GB, free: 3.035 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.135e-06/0.4508, allocations: 1.062 kB / 0.5525 GB, free: 3.035 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.856e-06/0.4509, allocations: 0 / 0.5525 GB, free: 3.035 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002338/0.4511, 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.01454/0.4656, allocations: 4.994 MB / 0.5574 GB, free: 15.97 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/0.4657, allocations: 9.75 kB / 0.5574 GB, free: 15.97 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005184/0.4709, allocations: 0.9562 MB / 0.5583 GB, free: 15.52 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006056/0.477, allocations: 2.83 MB / 0.5611 GB, free: 13.61 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001855/0.4772, allocations: 275.6 kB / 0.5614 GB, free: 13.49 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000722/0.4779, allocations: 366.5 kB / 0.5617 GB, free: 13.37 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008582/0.4865, allocations: 4.772 MB / 0.5664 GB, free: 10.56 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.703e-05/0.4866, allocations: 12.14 kB / 0.5664 GB, free: 10.56 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003657/0.487, allocations: 153 kB / 0.5665 GB, free: 10.44 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001336/0.4871, allocations: 155.9 kB / 0.5667 GB, free: 10.42 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00696/0.4941, allocations: 4.041 MB / 0.5706 GB, free: 7.105 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02744/0.5216, allocations: 15.56 MB / 0.5858 GB, free: 7.359 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00689/0.5285, allocations: 6.934 MB / 0.5926 GB, free: 15.56 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0025/0.531, allocations: 1.503 MB / 0.5941 GB, free: 14.06 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007692/0.5387, allocations: 4.159 MB / 0.5981 GB, free: 9.84 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.181e-05/0.5388, allocations: 47.88 kB / 0.5982 GB, free: 9.781 MB / 414.1 MB Notification: Performance of pre-optimization done (n=137): time 3.096e-06/0.5388, allocations: 4 kB / 0.5982 GB, free: 9.777 MB / 414.1 MB Notification: Performance of matching and sorting (n=159): time 0.01343/0.5523, allocations: 6.363 MB / 0.6044 GB, free: 3.285 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.849e-05/0.5524, allocations: 68.72 kB / 0.6044 GB, free: 3.207 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005099/0.5575, allocations: 2.187 MB / 0.6066 GB, free: 0.9883 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002072/0.5577, allocations: 53.7 kB / 0.6066 GB, free: 0.9297 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001667/0.5594, allocations: 1.732 MB / 0.6083 GB, free: 15.18 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006084/0.56, allocations: 0.5448 MB / 0.6089 GB, free: 14.64 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007345/0.5608, allocations: 403.8 kB / 0.6092 GB, free: 14.24 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001003/0.5609, allocations: 309.1 kB / 0.6095 GB, free: 13.93 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00142/0.5623, allocations: 0.8242 MB / 0.6103 GB, free: 13.11 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001963/0.5643, allocations: 1.588 MB / 0.6119 GB, free: 11.17 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003441/0.5678, allocations: 2.587 MB / 0.6144 GB, free: 8.348 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.139e-05/0.5678, allocations: 8 kB / 0.6144 GB, free: 8.34 MB / 430.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.005349/0.5731, allocations: 3.041 MB / 0.6174 GB, free: 5.418 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.477e-05/0.5732, allocations: 16 kB / 0.6174 GB, free: 5.402 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.286e-05/0.5732, allocations: 27.94 kB / 0.6174 GB, free: 5.375 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008361/0.5741, allocations: 299.5 kB / 0.6177 GB, free: 5.074 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001704/0.5758, allocations: 0.4992 MB / 0.6182 GB, free: 4.609 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004953/0.5808, allocations: 4.866 MB / 0.623 GB, free: 15.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002132/0.5829, allocations: 99.86 kB / 0.6231 GB, free: 15.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002324/0.5832, allocations: 104 kB / 0.6232 GB, free: 15.3 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.002226/0.5854, allocations: 1.134 MB / 0.6243 GB, free: 14.19 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005598/0.586, allocations: 229.2 kB / 0.6245 GB, free: 13.96 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004243/0.5902, allocations: 2.407 MB / 0.6268 GB, free: 11.52 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.416e-05/0.5903, allocations: 16 kB / 0.6268 GB, free: 11.5 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.352e-05/0.5903, allocations: 4 kB / 0.6269 GB, free: 11.5 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.423e-05/0.5903, allocations: 7.969 kB / 0.6269 GB, free: 11.49 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0102/0.6005, allocations: 5.704 MB / 0.6324 GB, free: 5.711 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.573e-06/0.6005, allocations: 0 / 0.6324 GB, free: 5.711 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001123/0.6017, allocations: 266.5 kB / 0.6327 GB, free: 5.461 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000791/0.6025, allocations: 329.3 kB / 0.633 GB, free: 5.137 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001009/0.6026, allocations: 35.98 kB / 0.633 GB, free: 5.102 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006303/0.6089, allocations: 7.012 MB / 0.6399 GB, free: 13.71 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.6089, allocations: 0 / 0.6399 GB, free: 13.71 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005208/0.6141, allocations: 3.486 MB / 0.6433 GB, free: 10.15 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001212/0.6153, allocations: 498.1 kB / 0.6438 GB, free: 9.645 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006049/0.616, allocations: 36 kB / 0.6438 GB, free: 9.609 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001188/0.6172, allocations: 67.95 kB / 0.6439 GB, free: 9.543 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002551/0.6174, allocations: 116.8 kB / 0.644 GB, free: 9.434 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.6e-05/0.6175, allocations: 43.98 kB / 0.644 GB, free: 9.391 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002248/0.6198, allocations: 1.476 MB / 0.6455 GB, free: 7.898 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.6198, allocations: 0 / 0.6455 GB, free: 7.898 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002999/0.6228, allocations: 0.6484 MB / 0.6461 GB, free: 7.25 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.0003304/0.6231, allocations: 168 kB / 0.6462 GB, free: 7.098 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003835/0.627, allocations: 2.463 MB / 0.6487 GB, free: 4.668 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.627, allocations: 1.875 kB / 0.6487 GB, free: 4.668 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001975/0.629, allocations: 1.417 MB / 0.65 GB, free: 3.238 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002524/0.6315, allocations: 0.5823 MB / 0.6506 GB, free: 2.66 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01049/0.642, allocations: 6.427 MB / 0.6569 GB, free: 12.2 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002165/0.6442, allocations: 2.519 MB / 0.6593 GB, free: 9.648 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001703/0.6459, allocations: 0.5157 MB / 0.6598 GB, free: 9.129 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004278/0.6464, allocations: 155.4 kB / 0.66 GB, free: 8.98 MB / 478.1 MB Notification: Performance of SimCode: time 7.21e-07/0.6464, allocations: 0 / 0.66 GB, free: 8.98 MB / 478.1 MB Notification: Performance of Templates: time 0.05574/0.7021, allocations: 30.61 MB / 0.6899 GB, free: 10.73 MB / 0.4981 GB 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)