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.005283/0.005283, allocations: 99.89 kB / 15.73 MB, free: 6.016 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.245/1.245, allocations: 222.9 MB / 239.4 MB, free: 4.508 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.001206/0.001206, allocations: 180.5 kB / 289.7 MB, free: 2.238 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0336/0.0336, allocations: 8.79 MB / 348.6 MB, free: 4.613 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00139/0.00139, allocations: 83.88 kB / 463.9 MB, free: 13.06 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08096/0.08236, allocations: 51.57 MB / 0.5034 GB, free: 9.453 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization3): time 0.0155/0.0979, allocations: 15.82 MB / 0.5189 GB, free: 9.559 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008671/0.1066, allocations: 5.274 MB / 0.524 GB, free: 4.27 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002014/0.1086, allocations: 91.69 kB / 0.5241 GB, free: 4.18 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003147/0.1118, allocations: 1.215 MB / 0.5253 GB, free: 2.957 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.004244/0.1161, allocations: 1.549 MB / 0.5268 GB, free: 1.402 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002231/0.1183, allocations: 0.9681 MB / 0.5278 GB, free: 444 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.1739/0.2923, allocations: 4.691 MB / 0.5323 GB, free: 6.195 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003391/0.2957, allocations: 3.52 MB / 0.5358 GB, free: 5.59 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002526/0.2983, allocations: 2.106 MB / 0.5378 GB, free: 5.316 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004011/0.3023, allocations: 2.437 MB / 0.5402 GB, free: 4.887 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001091/0.3034, allocations: 0.572 MB / 0.5408 GB, free: 4.887 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002143/0.3056, allocations: 0.7822 MB / 0.5415 GB, free: 4.887 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001064/0.3066, allocations: 1.287 MB / 0.5428 GB, free: 4.738 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002958/0.3096, allocations: 2.447 MB / 0.5452 GB, free: 4.137 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007638/0.3172, allocations: 7.523 MB / 0.5525 GB, free: 3.004 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.3173, allocations: 0 / 0.5525 GB, free: 3.004 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3173, allocations: 1.062 kB / 0.5525 GB, free: 3.004 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001897/0.3175, allocations: 4 kB / 0.5525 GB, free: 3 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.0121/0.3296, allocations: 5.087 MB / 0.5575 GB, free: 15.79 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.888e-05/0.3296, allocations: 9 kB / 0.5575 GB, free: 15.79 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004958/0.3346, allocations: 0.9736 MB / 0.5585 GB, free: 15.33 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005571/0.3402, allocations: 2.857 MB / 0.5612 GB, free: 13.4 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001683/0.3404, allocations: 272.6 kB / 0.5615 GB, free: 13.28 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007146/0.3411, allocations: 372 kB / 0.5619 GB, free: 13.15 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007794/0.3489, allocations: 4.769 MB / 0.5665 GB, free: 10.35 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.135e-05/0.349, allocations: 4.938 kB / 0.5665 GB, free: 10.35 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003378/0.3494, allocations: 153.2 kB / 0.5667 GB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001186/0.3495, allocations: 155 kB / 0.5668 GB, free: 10.21 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006782/0.3563, allocations: 4.044 MB / 0.5708 GB, free: 6.898 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0216/0.3779, allocations: 15.61 MB / 0.586 GB, free: 7.109 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005805/0.3837, allocations: 6.929 MB / 0.5928 GB, free: 15.32 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002224/0.386, allocations: 1.51 MB / 0.5942 GB, free: 13.81 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00618/0.3922, allocations: 4.152 MB / 0.5983 GB, free: 9.59 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.124e-05/0.3922, allocations: 51.86 kB / 0.5984 GB, free: 9.527 MB / 414.1 MB Notification: Performance of pre-optimization done (n=137): time 2.845e-06/0.3922, allocations: 3.656 kB / 0.5984 GB, free: 9.527 MB / 414.1 MB Notification: Performance of matching and sorting (n=159): time 0.01131/0.4036, allocations: 6.422 MB / 0.6046 GB, free: 2.984 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.761e-05/0.4036, allocations: 68.72 kB / 0.6047 GB, free: 2.906 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002921/0.4065, allocations: 2.187 MB / 0.6068 GB, free: 0.6875 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.607e-05/0.4067, allocations: 49.7 kB / 0.6069 GB, free: 0.6328 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001072/0.4077, allocations: 1.779 MB / 0.6086 GB, free: 14.84 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000391/0.4081, allocations: 0.5784 MB / 0.6092 GB, free: 14.27 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000568/0.4087, allocations: 412 kB / 0.6096 GB, free: 13.86 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.287e-05/0.4088, allocations: 304.9 kB / 0.6099 GB, free: 13.57 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001242/0.41, allocations: 0.8281 MB / 0.6107 GB, free: 12.73 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00174/0.4118, allocations: 1.584 MB / 0.6122 GB, free: 10.8 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003049/0.4149, allocations: 2.592 MB / 0.6147 GB, free: 7.977 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.508e-06/0.4149, allocations: 4 kB / 0.6148 GB, free: 7.973 MB / 430.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.004595/0.4195, allocations: 3.044 MB / 0.6177 GB, free: 5.047 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.971e-05/0.4195, allocations: 20.03 kB / 0.6177 GB, free: 5.027 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.224e-05/0.4196, allocations: 28 kB / 0.6178 GB, free: 5 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000761/0.4203, allocations: 298.8 kB / 0.6181 GB, free: 4.703 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001682/0.422, allocations: 0.4955 MB / 0.6185 GB, free: 4.238 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004672/0.4267, allocations: 4.871 MB / 0.6233 GB, free: 15.12 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001711/0.4284, allocations: 107.3 kB / 0.6234 GB, free: 15.02 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001774/0.4286, allocations: 104 kB / 0.6235 GB, free: 14.92 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.001999/0.4306, allocations: 1.138 MB / 0.6246 GB, free: 13.8 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004213/0.4311, allocations: 246.5 kB / 0.6248 GB, free: 13.56 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00384/0.4349, allocations: 2.399 MB / 0.6272 GB, free: 11.12 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.467e-05/0.4349, allocations: 19.98 kB / 0.6272 GB, free: 11.1 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.217e-06/0.435, allocations: 4.125 kB / 0.6272 GB, free: 11.1 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.052e-05/0.435, allocations: 7.969 kB / 0.6272 GB, free: 11.09 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008762/0.4437, allocations: 5.7 MB / 0.6328 GB, free: 5.316 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.081e-06/0.4438, allocations: 0 / 0.6328 GB, free: 5.316 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001149/0.4449, allocations: 278.1 kB / 0.633 GB, free: 5.059 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008048/0.4457, allocations: 321.5 kB / 0.6334 GB, free: 4.742 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001106/0.4459, allocations: 35.98 kB / 0.6334 GB, free: 4.707 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006517/0.4524, allocations: 7.023 MB / 0.6402 GB, free: 13.31 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.4524, allocations: 4.062 kB / 0.6403 GB, free: 13.31 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005408/0.4578, allocations: 3.499 MB / 0.6437 GB, free: 9.738 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001148/0.459, allocations: 0.4955 MB / 0.6442 GB, free: 9.223 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005229/0.4595, allocations: 28 kB / 0.6442 GB, free: 9.195 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001234/0.4608, allocations: 67.89 kB / 0.6442 GB, free: 9.129 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002721/0.4611, allocations: 117.1 kB / 0.6444 GB, free: 9.016 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001042/0.4612, allocations: 47.98 kB / 0.6444 GB, free: 8.969 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002572/0.4637, allocations: 1.472 MB / 0.6458 GB, free: 7.48 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4638, allocations: 3.094 kB / 0.6458 GB, free: 7.48 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002571/0.4663, allocations: 0.6523 MB / 0.6465 GB, free: 6.828 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.0003488/0.4667, allocations: 168.7 kB / 0.6466 GB, free: 6.672 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003877/0.4706, allocations: 2.477 MB / 0.6491 GB, free: 4.234 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.4706, allocations: 0 / 0.6491 GB, free: 4.234 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002125/0.4727, allocations: 1.408 MB / 0.6504 GB, free: 2.805 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003122/0.4759, allocations: 0.5744 MB / 0.651 GB, free: 2.234 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01158/0.4875, allocations: 6.541 MB / 0.6574 GB, free: 11.66 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002567/0.4901, allocations: 2.523 MB / 0.6598 GB, free: 9.105 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001804/0.4919, allocations: 0.5157 MB / 0.6603 GB, free: 8.586 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005072/0.4924, allocations: 155.4 kB / 0.6605 GB, free: 8.438 MB / 478.1 MB Notification: Performance of SimCode: time 4.51e-07/0.4924, allocations: 0 / 0.6605 GB, free: 8.438 MB / 478.1 MB Notification: Performance of Templates: time 0.05038/0.5428, allocations: 30.61 MB / 0.6904 GB, free: 10.19 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)