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.001173/0.001173, allocations: 110.7 kB / 16.41 MB, free: 6.496 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.363/1.363, allocations: 222.9 MB / 240.1 MB, free: 4.379 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.001405/0.001405, allocations: 196.5 kB / 290.4 MB, free: 2.102 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03525/0.03525, allocations: 8.803 MB / 349.3 MB, free: 4.57 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001704/0.001704, allocations: 87.86 kB / 464.6 MB, free: 13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1188/0.1206, allocations: 51.56 MB / 0.5041 GB, free: 9.402 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization3): time 0.01929/0.1399, allocations: 15.82 MB / 0.5195 GB, free: 9.508 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01201/0.152, allocations: 5.274 MB / 0.5247 GB, free: 4.219 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003464/0.1555, allocations: 91.69 kB / 0.5248 GB, free: 4.129 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004452/0.1599, allocations: 1.215 MB / 0.526 GB, free: 2.906 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.005963/0.166, allocations: 1.545 MB / 0.5275 GB, free: 1.352 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003669/0.1697, allocations: 0.9754 MB / 0.5284 GB, free: 388 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.2453/0.415, allocations: 4.687 MB / 0.533 GB, free: 6.18 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004358/0.4194, allocations: 3.53 MB / 0.5364 GB, free: 5.559 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003328/0.4228, allocations: 2.118 MB / 0.5385 GB, free: 5.285 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005739/0.4285, allocations: 2.436 MB / 0.5409 GB, free: 4.855 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001457/0.43, allocations: 0.5704 MB / 0.5414 GB, free: 4.855 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002758/0.4328, allocations: 0.7845 MB / 0.5422 GB, free: 4.855 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001501/0.4343, allocations: 1.288 MB / 0.5435 GB, free: 4.707 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005063/0.4394, allocations: 2.442 MB / 0.5459 GB, free: 4.105 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01025/0.4496, allocations: 7.502 MB / 0.5532 GB, free: 3.02 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.894e-06/0.4497, allocations: 1.031 kB / 0.5532 GB, free: 3.02 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.4497, allocations: 0 / 0.5532 GB, free: 3.02 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000254/0.4499, allocations: 4 kB / 0.5532 GB, free: 3.016 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.01748/0.4674, allocations: 5.002 MB / 0.5581 GB, free: 15.97 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.524e-05/0.4675, allocations: 9.062 kB / 0.5581 GB, free: 15.97 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005854/0.4734, allocations: 0.9596 MB / 0.559 GB, free: 15.52 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007016/0.4804, allocations: 2.829 MB / 0.5618 GB, free: 13.61 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002459/0.4807, allocations: 273.3 kB / 0.562 GB, free: 13.49 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001184/0.4819, allocations: 373.1 kB / 0.5624 GB, free: 13.37 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009205/0.4911, allocations: 4.772 MB / 0.5671 GB, free: 10.57 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.821e-05/0.4912, allocations: 7.453 kB / 0.5671 GB, free: 10.56 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003808/0.4916, allocations: 150.7 kB / 0.5672 GB, free: 10.45 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001343/0.4917, allocations: 151.6 kB / 0.5674 GB, free: 10.43 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006975/0.4987, allocations: 4.048 MB / 0.5713 GB, free: 7.086 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02656/0.5253, allocations: 15.55 MB / 0.5865 GB, free: 7.348 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00667/0.532, allocations: 6.923 MB / 0.5933 GB, free: 15.55 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002728/0.5348, allocations: 1.51 MB / 0.5947 GB, free: 14.05 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008469/0.5433, allocations: 4.155 MB / 0.5988 GB, free: 9.824 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.851e-05/0.5434, allocations: 47.88 kB / 0.5988 GB, free: 9.766 MB / 414.1 MB Notification: Performance of pre-optimization done (n=137): time 4.919e-06/0.5434, allocations: 3.984 kB / 0.5988 GB, free: 9.762 MB / 414.1 MB Notification: Performance of matching and sorting (n=159): time 0.01384/0.5572, allocations: 6.365 MB / 0.6051 GB, free: 3.27 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.371e-05/0.5573, allocations: 68.72 kB / 0.6051 GB, free: 3.191 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004593/0.5619, allocations: 2.183 MB / 0.6073 GB, free: 0.9766 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001989/0.5622, allocations: 49.7 kB / 0.6073 GB, free: 0.9219 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001405/0.5636, allocations: 1.741 MB / 0.609 GB, free: 15.17 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005725/0.5642, allocations: 0.5442 MB / 0.6095 GB, free: 14.63 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008579/0.565, allocations: 407.8 kB / 0.6099 GB, free: 14.22 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.652e-05/0.5651, allocations: 305.1 kB / 0.6102 GB, free: 13.92 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001469/0.5666, allocations: 0.8281 MB / 0.611 GB, free: 13.09 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002007/0.5686, allocations: 1.588 MB / 0.6126 GB, free: 11.16 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003599/0.5722, allocations: 2.582 MB / 0.6151 GB, free: 8.332 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.319e-05/0.5723, allocations: 8 kB / 0.6151 GB, free: 8.324 MB / 430.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.005258/0.5776, allocations: 3.034 MB / 0.6181 GB, free: 5.41 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.005e-05/0.5776, allocations: 20 kB / 0.6181 GB, free: 5.391 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.585e-05/0.5777, allocations: 27.94 kB / 0.6181 GB, free: 5.363 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008489/0.5785, allocations: 303 kB / 0.6184 GB, free: 5.062 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001835/0.5804, allocations: 0.4911 MB / 0.6189 GB, free: 4.605 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004959/0.5853, allocations: 4.867 MB / 0.6236 GB, free: 15.49 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002324/0.5877, allocations: 111.9 kB / 0.6237 GB, free: 15.38 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002933/0.588, allocations: 103.8 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.002597/0.5906, allocations: 1.133 MB / 0.6249 GB, free: 14.18 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007543/0.5914, allocations: 237.2 kB / 0.6252 GB, free: 13.94 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004611/0.596, allocations: 2.398 MB / 0.6275 GB, free: 11.5 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.715e-05/0.596, allocations: 19.98 kB / 0.6275 GB, free: 11.48 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.66e-05/0.596, allocations: 4 kB / 0.6275 GB, free: 11.48 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.249e-05/0.5961, allocations: 7.969 kB / 0.6275 GB, free: 11.47 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01171/0.6078, allocations: 5.698 MB / 0.6331 GB, free: 5.699 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.877e-06/0.6078, allocations: 0 / 0.6331 GB, free: 5.699 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001228/0.6091, allocations: 274 kB / 0.6334 GB, free: 5.445 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008763/0.61, allocations: 319.3 kB / 0.6337 GB, free: 5.125 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001448/0.6101, allocations: 35.98 kB / 0.6337 GB, free: 5.09 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006752/0.6169, allocations: 7.015 MB / 0.6406 GB, free: 13.7 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.523e-06/0.6169, allocations: 4.031 kB / 0.6406 GB, free: 13.69 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005829/0.6228, allocations: 3.482 MB / 0.644 GB, free: 10.14 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001516/0.6243, allocations: 498.1 kB / 0.6444 GB, free: 9.629 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008399/0.6252, allocations: 32 kB / 0.6445 GB, free: 9.598 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001661/0.6268, allocations: 64.14 kB / 0.6445 GB, free: 9.535 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003355/0.6272, allocations: 128.5 kB / 0.6446 GB, free: 9.418 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001247/0.6273, allocations: 47.92 kB / 0.6447 GB, free: 9.371 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003149/0.6305, allocations: 1.472 MB / 0.6461 GB, free: 7.883 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.6305, allocations: 0 / 0.6461 GB, free: 7.883 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003543/0.634, allocations: 0.6523 MB / 0.6468 GB, free: 7.23 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.0004774/0.6345, allocations: 165.9 kB / 0.6469 GB, free: 7.078 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004363/0.6389, allocations: 2.467 MB / 0.6493 GB, free: 4.641 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.756e-06/0.6389, allocations: 4 kB / 0.6493 GB, free: 4.637 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00224/0.6412, allocations: 1.413 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.003952/0.6452, allocations: 0.5659 MB / 0.6513 GB, free: 2.621 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01503/0.6602, allocations: 6.408 MB / 0.6575 GB, free: 12.17 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003442/0.6637, allocations: 2.454 MB / 0.6599 GB, free: 9.688 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009198/0.6647, allocations: 171.4 kB / 0.6601 GB, free: 9.523 MB / 478.1 MB Notification: Performance of SimCode: time 8.01e-07/0.6647, allocations: 0 / 0.6601 GB, free: 9.523 MB / 478.1 MB Notification: Performance of Templates: time 0.3706/1.035, allocations: 100.1 MB / 0.7578 GB, free: 172.6 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)