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.00119/0.00119, allocations: 107.3 kB / 16.41 MB, free: 6.406 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.382/1.382, allocations: 222.9 MB / 240.1 MB, free: 4.332 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.00141/0.00141, allocations: 200.4 kB / 290.4 MB, free: 2.055 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03423/0.03423, allocations: 8.795 MB / 349.3 MB, free: 4.562 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001464/0.001465, allocations: 87.86 kB / 464.6 MB, free: 12.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09807/0.09955, allocations: 51.56 MB / 0.5041 GB, free: 9.387 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization2): time 0.01717/0.1168, allocations: 15.82 MB / 0.5195 GB, free: 9.492 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01001/0.1268, allocations: 5.278 MB / 0.5247 GB, free: 4.199 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00277/0.1296, allocations: 91.69 kB / 0.5248 GB, free: 4.109 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003877/0.1335, allocations: 1.215 MB / 0.526 GB, free: 2.887 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.005471/0.1391, allocations: 1.545 MB / 0.5275 GB, free: 1.332 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002807/0.1419, allocations: 0.9716 MB / 0.5284 GB, free: 372 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.2303/0.3722, allocations: 4.691 MB / 0.533 GB, free: 6.164 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004996/0.3773, allocations: 3.527 MB / 0.5364 GB, free: 5.555 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004023/0.3813, allocations: 2.118 MB / 0.5385 GB, free: 5.281 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004951/0.3863, allocations: 2.437 MB / 0.5409 GB, free: 4.852 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002105/0.3885, allocations: 0.5709 MB / 0.5415 GB, free: 4.852 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003567/0.392, allocations: 0.7825 MB / 0.5422 GB, free: 4.852 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002325/0.3944, allocations: 1.287 MB / 0.5435 GB, free: 4.703 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006465/0.4009, allocations: 2.442 MB / 0.5459 GB, free: 4.102 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01182/0.4127, allocations: 7.505 MB / 0.5532 GB, free: 3.07 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.516e-06/0.4128, allocations: 0 / 0.5532 GB, free: 3.07 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.4128, allocations: 5.438 kB / 0.5532 GB, free: 3.066 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002917/0.4131, allocations: 0 / 0.5532 GB, free: 3.066 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.01826/0.4314, allocations: 4.974 MB / 0.558 GB, free: 15.92 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.227e-05/0.4314, allocations: 9.219 kB / 0.5581 GB, free: 15.92 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006528/0.438, allocations: 0.9586 MB / 0.559 GB, free: 15.47 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007674/0.4457, allocations: 2.828 MB / 0.5618 GB, free: 13.56 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002459/0.446, allocations: 278.5 kB / 0.562 GB, free: 13.44 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001361/0.4474, allocations: 363.7 kB / 0.5624 GB, free: 13.32 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0135/0.4609, allocations: 4.775 MB / 0.567 GB, free: 10.52 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001186/0.461, allocations: 7.734 kB / 0.567 GB, free: 10.51 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007441/0.4618, allocations: 155 kB / 0.5672 GB, free: 10.39 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001417/0.4619, allocations: 152.2 kB / 0.5673 GB, free: 10.38 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009255/0.4712, allocations: 4.047 MB / 0.5713 GB, free: 7.012 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03269/0.5039, allocations: 15.55 MB / 0.5865 GB, free: 7.27 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007243/0.5112, allocations: 6.93 MB / 0.5932 GB, free: 15.47 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002953/0.5142, allocations: 1.506 MB / 0.5947 GB, free: 13.97 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01027/0.5245, allocations: 4.155 MB / 0.5988 GB, free: 9.75 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.959e-05/0.5247, allocations: 51.88 kB / 0.5988 GB, free: 9.688 MB / 414.1 MB Notification: Performance of pre-optimization done (n=137): time 5.179e-06/0.5247, allocations: 0 / 0.5988 GB, free: 9.688 MB / 414.1 MB Notification: Performance of matching and sorting (n=159): time 0.01465/0.5393, allocations: 6.367 MB / 0.605 GB, free: 3.191 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.593e-05/0.5394, allocations: 68.72 kB / 0.6051 GB, free: 3.113 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004709/0.5441, allocations: 2.175 MB / 0.6072 GB, free: 0.9062 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003536/0.5445, allocations: 53.7 kB / 0.6073 GB, free: 0.8477 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00162/0.5462, allocations: 1.738 MB / 0.609 GB, free: 15.1 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008324/0.547, allocations: 0.544 MB / 0.6095 GB, free: 14.56 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001057/0.5481, allocations: 403.8 kB / 0.6099 GB, free: 14.16 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001263/0.5482, allocations: 305.1 kB / 0.6102 GB, free: 13.86 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001662/0.5499, allocations: 0.8281 MB / 0.611 GB, free: 13.02 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002144/0.5521, allocations: 1.588 MB / 0.6125 GB, free: 11.09 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003741/0.5558, allocations: 2.586 MB / 0.6151 GB, free: 8.266 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.281e-05/0.5559, allocations: 8 kB / 0.6151 GB, free: 8.258 MB / 430.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.005619/0.5615, allocations: 3.036 MB / 0.618 GB, free: 5.34 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.12e-05/0.5616, allocations: 20.03 kB / 0.6181 GB, free: 5.32 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.556e-05/0.5616, allocations: 27.94 kB / 0.6181 GB, free: 5.293 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009027/0.5625, allocations: 289.7 kB / 0.6184 GB, free: 5.004 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001951/0.5645, allocations: 0.5036 MB / 0.6189 GB, free: 4.535 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00526/0.5698, allocations: 4.866 MB / 0.6236 GB, free: 15.42 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002631/0.5725, allocations: 108 kB / 0.6237 GB, free: 15.32 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004142/0.5729, allocations: 100 kB / 0.6238 GB, free: 15.22 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.002902/0.5758, allocations: 1.136 MB / 0.6249 GB, free: 14.11 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007809/0.5766, allocations: 233.2 kB / 0.6251 GB, free: 13.88 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004756/0.5814, allocations: 2.406 MB / 0.6275 GB, free: 11.43 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.651e-05/0.5814, allocations: 16 kB / 0.6275 GB, free: 11.41 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.651e-05/0.5814, allocations: 4 kB / 0.6275 GB, free: 11.41 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.04e-05/0.5815, allocations: 7.969 kB / 0.6275 GB, free: 11.4 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01194/0.5934, allocations: 5.698 MB / 0.6331 GB, free: 5.633 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.19e-05/0.5935, allocations: 7.984 kB / 0.6331 GB, free: 5.625 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00125/0.5947, allocations: 266.2 kB / 0.6333 GB, free: 5.375 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008781/0.5956, allocations: 321.8 kB / 0.6336 GB, free: 5.055 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000144/0.5958, allocations: 39.98 kB / 0.6337 GB, free: 5.016 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006974/0.6028, allocations: 7.011 MB / 0.6405 GB, free: 13.62 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.6028, allocations: 4.031 kB / 0.6405 GB, free: 13.62 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006061/0.6089, allocations: 3.486 MB / 0.6439 GB, free: 10.07 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001635/0.6106, allocations: 498.1 kB / 0.6444 GB, free: 9.559 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007944/0.6114, allocations: 36 kB / 0.6445 GB, free: 9.523 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001515/0.6129, allocations: 63.95 kB / 0.6445 GB, free: 9.461 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002898/0.6132, allocations: 120.8 kB / 0.6446 GB, free: 9.348 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.279e-05/0.6133, allocations: 44.23 kB / 0.6447 GB, free: 9.305 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002502/0.6158, allocations: 1.476 MB / 0.6461 GB, free: 7.812 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.6158, allocations: 0 / 0.6461 GB, free: 7.812 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002888/0.6187, allocations: 0.6523 MB / 0.6467 GB, free: 7.16 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.0003463/0.6191, allocations: 168.4 kB / 0.6469 GB, free: 7.004 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004059/0.6231, allocations: 2.46 MB / 0.6493 GB, free: 4.543 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.023e-06/0.6232, allocations: 0 / 0.6493 GB, free: 4.543 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002168/0.6253, allocations: 1.421 MB / 0.6507 GB, free: 3.082 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002997/0.6284, allocations: 0.5666 MB / 0.6513 GB, free: 2.52 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.014/0.6424, allocations: 6.404 MB / 0.6575 GB, free: 12.07 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003002/0.6454, allocations: 2.458 MB / 0.6599 GB, free: 9.586 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008761/0.6463, allocations: 171.4 kB / 0.6601 GB, free: 9.422 MB / 478.1 MB Notification: Performance of SimCode: time 1.423e-06/0.6464, allocations: 0 / 0.6601 GB, free: 9.422 MB / 478.1 MB Notification: Performance of Templates: time 0.3419/0.9882, 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)