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.001225/0.001225, allocations: 106.4 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.351/1.351, allocations: 222.9 MB / 240.1 MB, free: 4.559 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.001615/0.001615, allocations: 188.5 kB / 290.4 MB, free: 2.277 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03373/0.03373, allocations: 8.798 MB / 349.3 MB, free: 4.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001595/0.001595, allocations: 75.88 kB / 464.6 MB, free: 13.06 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.1177, allocations: 51.56 MB / 0.5041 GB, free: 9.465 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization3): time 0.01777/0.1355, allocations: 15.82 MB / 0.5195 GB, free: 9.566 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01162/0.1472, allocations: 5.27 MB / 0.5247 GB, free: 4.281 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003779/0.151, allocations: 91.69 kB / 0.5248 GB, free: 4.191 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004757/0.1558, allocations: 1.215 MB / 0.526 GB, free: 2.969 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.006855/0.1628, allocations: 1.549 MB / 0.5275 GB, free: 1.41 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00382/0.1666, allocations: 0.9741 MB / 0.5284 GB, free: 448 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.2683/0.4349, allocations: 4.687 MB / 0.533 GB, free: 6.219 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005581/0.4405, allocations: 3.526 MB / 0.5364 GB, free: 5.609 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004194/0.4448, allocations: 2.117 MB / 0.5385 GB, free: 5.336 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005159/0.45, allocations: 2.436 MB / 0.5409 GB, free: 4.91 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00236/0.4523, allocations: 0.5706 MB / 0.5414 GB, free: 4.91 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003903/0.4563, allocations: 0.7821 MB / 0.5422 GB, free: 4.91 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002281/0.4586, allocations: 1.297 MB / 0.5435 GB, free: 4.762 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006075/0.4647, allocations: 2.438 MB / 0.5459 GB, free: 4.16 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01168/0.4764, allocations: 7.496 MB / 0.5532 GB, free: 3.059 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.093e-05/0.4764, allocations: 5.031 kB / 0.5532 GB, free: 3.055 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.028e-06/0.4765, allocations: 0 / 0.5532 GB, free: 3.055 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002827/0.4767, allocations: 3.375 kB / 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.01737/0.4941, allocations: 4.987 MB / 0.5581 GB, free: 15.93 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.715e-05/0.4942, allocations: 9.219 kB / 0.5581 GB, free: 15.93 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006071/0.5003, allocations: 0.9508 MB / 0.559 GB, free: 15.48 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008003/0.5083, allocations: 2.835 MB / 0.5618 GB, free: 13.57 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003337/0.5087, allocations: 275 kB / 0.562 GB, free: 13.45 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001769/0.5105, allocations: 368.1 kB / 0.5624 GB, free: 13.32 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01547/0.526, allocations: 4.77 MB / 0.567 GB, free: 10.52 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001799/0.5262, allocations: 12.34 kB / 0.567 GB, free: 10.52 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001292/0.5275, allocations: 149.7 kB / 0.5672 GB, free: 10.41 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001686/0.5277, allocations: 156.3 kB / 0.5673 GB, free: 10.39 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01126/0.5389, allocations: 4.048 MB / 0.5713 GB, free: 7.078 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03566/0.5747, allocations: 15.55 MB / 0.5865 GB, free: 7.336 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007183/0.5819, allocations: 6.924 MB / 0.5932 GB, free: 15.55 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002845/0.5848, allocations: 1.509 MB / 0.5947 GB, free: 14.04 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008028/0.5928, allocations: 4.148 MB / 0.5988 GB, free: 9.824 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.557e-05/0.5929, allocations: 59.05 kB / 0.5988 GB, free: 9.758 MB / 414.1 MB Notification: Performance of pre-optimization done (n=137): time 3.486e-06/0.5929, allocations: 0 / 0.5988 GB, free: 9.758 MB / 414.1 MB Notification: Performance of matching and sorting (n=159): time 0.01435/0.6073, allocations: 6.362 MB / 0.605 GB, free: 3.266 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.161e-05/0.6074, allocations: 68.66 kB / 0.6051 GB, free: 3.188 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005507/0.6129, allocations: 2.183 MB / 0.6072 GB, free: 0.9727 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004076/0.6134, allocations: 53.7 kB / 0.6073 GB, free: 0.9141 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001528/0.6149, allocations: 1.737 MB / 0.609 GB, free: 15.16 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007953/0.6157, allocations: 0.5476 MB / 0.6095 GB, free: 14.62 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009893/0.6167, allocations: 403.8 kB / 0.6099 GB, free: 14.22 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001088/0.6169, allocations: 305.1 kB / 0.6102 GB, free: 13.92 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001654/0.6185, allocations: 0.8242 MB / 0.611 GB, free: 13.09 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002233/0.6208, allocations: 1.592 MB / 0.6126 GB, free: 11.15 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003994/0.6248, allocations: 2.587 MB / 0.6151 GB, free: 8.328 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.264e-05/0.6248, allocations: 8 kB / 0.6151 GB, free: 8.32 MB / 430.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.006217/0.6311, allocations: 3.035 MB / 0.618 GB, free: 5.402 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.83e-05/0.6312, allocations: 16 kB / 0.6181 GB, free: 5.387 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.703e-05/0.6312, allocations: 27.94 kB / 0.6181 GB, free: 5.359 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009399/0.6322, allocations: 298.8 kB / 0.6184 GB, free: 5.066 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001954/0.6341, allocations: 0.4986 MB / 0.6189 GB, free: 4.602 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005487/0.6397, allocations: 4.873 MB / 0.6236 GB, free: 15.48 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002726/0.6424, allocations: 99.92 kB / 0.6237 GB, free: 15.38 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005026/0.6429, allocations: 99.98 kB / 0.6238 GB, free: 15.29 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.003369/0.6463, allocations: 1.137 MB / 0.6249 GB, free: 14.17 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009444/0.6473, allocations: 233.2 kB / 0.6251 GB, free: 13.94 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005278/0.6526, allocations: 2.406 MB / 0.6275 GB, free: 11.5 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.738e-05/0.6526, allocations: 15.98 kB / 0.6275 GB, free: 11.48 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.181e-05/0.6526, allocations: 8 kB / 0.6275 GB, free: 11.47 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.703e-05/0.6527, allocations: 3.984 kB / 0.6275 GB, free: 11.47 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01294/0.6656, allocations: 5.697 MB / 0.6331 GB, free: 5.699 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.197e-05/0.6657, allocations: 4 kB / 0.6331 GB, free: 5.695 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001314/0.667, allocations: 273 kB / 0.6333 GB, free: 5.441 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008805/0.6679, allocations: 318 kB / 0.6337 GB, free: 5.125 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001716/0.6681, allocations: 43.98 kB / 0.6337 GB, free: 5.082 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007446/0.6755, allocations: 7.002 MB / 0.6405 GB, free: 13.7 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/0.6756, allocations: 7.5 kB / 0.6405 GB, free: 13.69 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00668/0.6823, allocations: 3.493 MB / 0.6439 GB, free: 10.13 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001927/0.6843, allocations: 494.1 kB / 0.6444 GB, free: 9.625 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008646/0.6852, allocations: 36 kB / 0.6445 GB, free: 9.59 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001793/0.687, allocations: 63.95 kB / 0.6445 GB, free: 9.527 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003994/0.6874, allocations: 117.1 kB / 0.6446 GB, free: 9.414 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001276/0.6875, allocations: 48.23 kB / 0.6447 GB, free: 9.367 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003445/0.691, allocations: 1.472 MB / 0.6461 GB, free: 7.879 MB / 462.1 MB Notification: Performance of sort global known variables: time 5.21e-07/0.691, allocations: 0 / 0.6461 GB, free: 7.879 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003766/0.6948, allocations: 0.6523 MB / 0.6467 GB, free: 7.227 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.0004885/0.6953, allocations: 169.9 kB / 0.6469 GB, free: 7.07 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004533/0.6998, allocations: 2.468 MB / 0.6493 GB, free: 4.637 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.913e-06/0.6998, allocations: 0 / 0.6493 GB, free: 4.637 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002281/0.7021, allocations: 1.414 MB / 0.6507 GB, free: 3.184 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004015/0.7062, allocations: 0.5677 MB / 0.6513 GB, free: 2.617 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01506/0.7212, allocations: 6.409 MB / 0.6575 GB, free: 12.17 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003275/0.7246, allocations: 2.451 MB / 0.6599 GB, free: 9.695 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008924/0.7255, allocations: 179.4 kB / 0.6601 GB, free: 9.523 MB / 478.1 MB Notification: Performance of SimCode: time 9.42e-07/0.7255, allocations: 0 / 0.6601 GB, free: 9.523 MB / 478.1 MB Notification: Performance of Templates: time 0.3624/1.088, allocations: 100.1 MB / 0.7578 GB, free: 172.8 MB / 0.5294 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)