Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.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_ShortCircuit2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2") translateModel(HanserModelica.SynchronousMachines.SMEE_ShortCircuit2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001272/0.001272, allocations: 91.77 kB / 15.06 MB, free: 1.098 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.498/1.498, allocations: 223.3 MB / 239 MB, free: 5.504 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.001484/0.001484, allocations: 172.6 kB / 290.3 MB, free: 2.195 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03228/0.03228, allocations: 8.802 MB / 350.2 MB, free: 4.703 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005251/0.0005253, allocations: 11.03 kB / 413.2 MB, free: 43.04 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.113, allocations: 52.56 MB / 465.8 MB, free: 13.53 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_ShortCircuit2): time 0.01544/0.1285, allocations: 14.02 MB / 479.8 MB, free: 15.45 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01112/0.1397, allocations: 4.934 MB / 484.7 MB, free: 10.5 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003145/0.1429, allocations: 87.69 kB / 484.8 MB, free: 10.41 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00287/0.1458, allocations: 0.9401 MB / 485.7 MB, free: 9.465 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/SynchronousMachines/Templates/SMEE_ShortCircuit.mo:18:3-19:30:writable] Warning: Conditional component ‘ir‘ is used in a non-connect context. Notification: Performance of NFTyping.typeBindings: time 0.004386/0.1502, allocations: 1.243 MB / 487 MB, free: 8.215 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002062/0.1523, allocations: 0.6627 MB / 487.6 MB, free: 7.555 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006334/0.1586, allocations: 4.522 MB / 492.2 MB, free: 3.02 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0041/0.1628, allocations: 2.425 MB / 494.6 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002436/0.1652, allocations: 1.428 MB / 496 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003236/0.1685, allocations: 1.789 MB / 497.8 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000663/0.1692, allocations: 232 kB / 498 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001456/0.1707, allocations: 431.7 kB / 498.5 MB, free: 12.67 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000741/0.1714, allocations: 0.8329 MB / 499.3 MB, free: 11.83 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001114/0.1725, allocations: 0.8239 MB / 0.4884 GB, free: 11 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006198/0.1787, allocations: 5.956 MB / 0.4942 GB, free: 5.027 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.573e-06/0.1788, allocations: 0 / 0.4942 GB, free: 5.027 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.756e-06/0.1788, allocations: 0 / 0.4942 GB, free: 5.027 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001989/0.179, allocations: 0 / 0.4942 GB, free: 5.027 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 962 * Number of variables: 962 Notification: Performance of Generate backend data structure: time 0.01029/0.1893, allocations: 4.112 MB / 0.4982 GB, free: 0.8438 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.133e-05/0.1893, allocations: 12.02 kB / 0.4982 GB, free: 0.832 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005249/0.1946, allocations: 0.9477 MB / 0.4992 GB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006032/0.2007, allocations: 2.496 MB / 0.5016 GB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002897/0.201, allocations: 283.2 kB / 0.5019 GB, free: 13.05 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001125/0.2021, allocations: 367.9 kB / 0.5022 GB, free: 12.69 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009306/0.2115, allocations: 4.653 MB / 0.5068 GB, free: 7.988 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.723e-05/0.2116, allocations: 7.906 kB / 0.5068 GB, free: 7.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003452/0.2119, allocations: 152 kB / 0.5069 GB, free: 7.832 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001493/0.2121, allocations: 151.3 kB / 0.5071 GB, free: 7.684 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007561/0.2197, allocations: 3.878 MB / 0.5109 GB, free: 3.801 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02309/0.2428, allocations: 15.6 MB / 0.5261 GB, free: 3.742 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1969/0.4397, allocations: 6.114 MB / 0.5321 GB, free: 59.29 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002661/0.4424, allocations: 1.401 MB / 0.5334 GB, free: 59.27 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007016/0.4494, allocations: 4.287 MB / 0.5376 GB, free: 58.12 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.197e-05/0.4495, allocations: 47.88 kB / 0.5377 GB, free: 58.09 MB / 366.1 MB Notification: Performance of pre-optimization done (n=125): time 4.118e-06/0.4495, allocations: 0.6094 kB / 0.5377 GB, free: 58.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=156): time 0.0133/0.4628, allocations: 6.205 MB / 0.5437 GB, free: 56.96 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.824e-05/0.4629, allocations: 67.59 kB / 0.5438 GB, free: 56.9 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004143/0.4671, allocations: 2.079 MB / 0.5458 GB, free: 56.65 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002735/0.4674, allocations: 56.33 kB / 0.5459 GB, free: 56.62 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001322/0.4687, allocations: 1.702 MB / 0.5475 GB, free: 55.47 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004883/0.4692, allocations: 0.5331 MB / 0.548 GB, free: 55.06 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001024/0.4693, allocations: 44.84 kB / 0.5481 GB, free: 55.03 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001269/0.4694, allocations: 389.6 kB / 0.5485 GB, free: 54.69 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001243/0.4707, allocations: 0.7725 MB / 0.5492 GB, free: 54.38 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00145/0.4722, allocations: 1.546 MB / 0.5507 GB, free: 53.07 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009616/0.4818, allocations: 2.723 MB / 0.5534 GB, free: 52.25 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.978e-05/0.4819, allocations: 8.781 kB / 0.5534 GB, free: 52.25 MB / 366.1 MB Notification: Performance of matching and sorting (n=283) (initialization): time 0.004358/0.4862, allocations: 2.873 MB / 0.5562 GB, free: 51 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.86e-05/0.4863, allocations: 19.7 kB / 0.5562 GB, free: 51 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.2e-05/0.4863, allocations: 30.31 kB / 0.5562 GB, free: 51 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008181/0.4872, allocations: 362.5 kB / 0.5566 GB, free: 50.89 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00148/0.4886, allocations: 494.2 kB / 0.5571 GB, free: 50.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004054/0.4927, allocations: 3.814 MB / 0.5608 GB, free: 48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00206/0.4948, allocations: 94.5 kB / 0.5609 GB, free: 47.95 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001629/0.495, allocations: 97 kB / 0.561 GB, free: 47.93 MB / 366.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: smee.is[1] = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 112 * 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 (256): * Single equations (assignments): 254 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 24} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002081/0.4971, allocations: 1.098 MB / 0.562 GB, free: 47.19 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004417/0.4975, allocations: 222.6 kB / 0.5623 GB, free: 47.07 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003148/0.5007, allocations: 1.996 MB / 0.5642 GB, free: 45.91 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.391e-05/0.5007, allocations: 15.53 kB / 0.5642 GB, free: 45.91 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.735e-06/0.5007, allocations: 3.875 kB / 0.5642 GB, free: 45.91 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.433e-05/0.5007, allocations: 11.81 kB / 0.5642 GB, free: 45.9 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007578/0.5083, allocations: 5.482 MB / 0.5696 GB, free: 42.01 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.226e-05/0.5084, allocations: 12.25 kB / 0.5696 GB, free: 42 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000997/0.5094, allocations: 267.6 kB / 0.5699 GB, free: 41.74 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007148/0.5101, allocations: 293.4 kB / 0.5701 GB, free: 41.45 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.229e-05/0.5102, allocations: 39.98 kB / 0.5702 GB, free: 41.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003522/0.5137, allocations: 3.587 MB / 0.5737 GB, free: 37.7 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.107e-06/0.5137, allocations: 4 kB / 0.5737 GB, free: 37.7 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003782/0.5175, allocations: 2.937 MB / 0.5765 GB, free: 34.71 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001022/0.5186, allocations: 482.2 kB / 0.577 GB, free: 34.21 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003054/0.5189, allocations: 28 kB / 0.577 GB, free: 34.19 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009363/0.5198, allocations: 63.95 kB / 0.5771 GB, free: 34.12 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001972/0.52, allocations: 109.8 kB / 0.5772 GB, free: 34.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.853e-05/0.5201, allocations: 43.92 kB / 0.5772 GB, free: 33.98 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001875/0.522, allocations: 1.399 MB / 0.5786 GB, free: 32.56 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.522, allocations: 0 / 0.5786 GB, free: 32.56 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002137/0.5242, allocations: 0.6475 MB / 0.5792 GB, free: 31.91 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 5 (smee.phiMechanical,smee.is[2],smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.excitation.electroMagneticConverter.Phi.re) * 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 (132): * Single equations (assignments): 131 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 22} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002587/0.5244, allocations: 173.6 kB / 0.5794 GB, free: 31.74 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003042/0.5275, allocations: 2.269 MB / 0.5816 GB, free: 29.45 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.5275, allocations: 4.125 kB / 0.5816 GB, free: 29.44 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001335/0.5288, allocations: 1.079 MB / 0.5827 GB, free: 28.35 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002322/0.5312, allocations: 0.5554 MB / 0.5832 GB, free: 27.81 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008966/0.5402, allocations: 7.427 MB / 0.5905 GB, free: 20.34 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00148/0.5417, allocations: 2.444 MB / 0.5929 GB, free: 17.86 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001707/0.5434, allocations: 499.6 kB / 0.5933 GB, free: 17.37 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003599/0.5438, allocations: 151.4 kB / 0.5935 GB, free: 17.22 MB / 366.1 MB Notification: Performance of SimCode: time 1.162e-06/0.5438, allocations: 0 / 0.5935 GB, free: 17.22 MB / 366.1 MB Notification: Performance of Templates: time 0.04754/0.5913, allocations: 29.45 MB / 0.6222 GB, free: 4.074 MB / 382.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.makefile Environment - environmentSimulation: (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.pipe 2>&1) Environment - environmentSimulation: