Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1.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_ShortCircuit1,tolerance=1e-08,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1") translateModel(HanserModelica.SynchronousMachines.SMEE_ShortCircuit1,tolerance=1e-08,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008098/0.008098, allocations: 101.1 kB / 15.88 MB, free: 5.867 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.212/2.212, allocations: 222.9 MB / 239.5 MB, free: 4.789 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.001972/0.001972, allocations: 192.5 kB / 289.8 MB, free: 2.527 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.05358/0.05358, allocations: 8.804 MB / 348.7 MB, free: 4.926 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002694/0.002694, allocations: 76.23 kB / 411.1 MB, free: 42.38 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1586/0.1613, allocations: 51.57 MB / 462.6 MB, free: 14.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_ShortCircuit1): time 0.02645/0.1879, allocations: 15.72 MB / 478.3 MB, free: 15.14 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01723/0.2052, allocations: 5.259 MB / 483.6 MB, free: 9.863 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005952/0.2112, allocations: 87.69 kB / 483.7 MB, free: 9.777 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007122/0.2184, allocations: 1.069 MB / 484.8 MB, free: 8.707 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.009903/0.2284, allocations: 1.374 MB / 486.1 MB, free: 7.328 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005011/0.2335, allocations: 0.9081 MB / 487 MB, free: 6.422 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01238/0.2459, allocations: 4.822 MB / 491.9 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007753/0.2537, allocations: 2.894 MB / 494.8 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0057/0.2595, allocations: 1.673 MB / 496.4 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006932/0.2665, allocations: 2.148 MB / 498.6 MB, free: 10.78 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002761/0.2694, allocations: 336 kB / 498.9 MB, free: 10.45 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004945/0.2744, allocations: 0.5466 MB / 499.5 MB, free: 9.906 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002735/0.2772, allocations: 0.9965 MB / 0.4887 GB, free: 8.906 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007655/0.2849, allocations: 2.115 MB / 0.4908 GB, free: 6.781 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01111/0.296, allocations: 6.138 MB / 0.4968 GB, free: 0.6289 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.105e-05/0.2961, allocations: 0 / 0.4968 GB, free: 0.6289 MB / 334.1 MB Notification: Performance of FrontEnd: time 5.871e-06/0.2962, allocations: 4 kB / 0.4968 GB, free: 0.625 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002559/0.2964, allocations: 0 / 0.4968 GB, free: 0.625 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.02421/0.3206, allocations: 4.81 MB / 0.5015 GB, free: 11.74 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.875e-05/0.3208, allocations: 12.03 kB / 0.5015 GB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009398/0.3302, allocations: 0.9445 MB / 0.5024 GB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009403/0.3396, allocations: 2.558 MB / 0.5049 GB, free: 8.168 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004135/0.3401, allocations: 275.8 kB / 0.5052 GB, free: 7.898 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001726/0.3419, allocations: 372 kB / 0.5055 GB, free: 7.535 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01591/0.3578, allocations: 4.67 MB / 0.5101 GB, free: 2.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001503/0.358, allocations: 4 kB / 0.5101 GB, free: 2.816 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008328/0.3589, allocations: 152 kB / 0.5102 GB, free: 2.668 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003414/0.3592, allocations: 151.3 kB / 0.5104 GB, free: 2.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01337/0.3726, allocations: 3.901 MB / 0.5142 GB, free: 14.61 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4306/0.8032, allocations: 15.38 MB / 0.5292 GB, free: 60.39 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008047/0.8113, allocations: 5.947 MB / 0.535 GB, free: 56.02 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003512/0.8149, allocations: 1.26 MB / 0.5363 GB, free: 56 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01184/0.8268, allocations: 4.16 MB / 0.5403 GB, free: 54.8 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.943e-05/0.827, allocations: 54.06 kB / 0.5404 GB, free: 54.75 MB / 366.1 MB Notification: Performance of pre-optimization done (n=118): time 5.52e-06/0.827, allocations: 0 / 0.5404 GB, free: 54.75 MB / 366.1 MB Notification: Performance of matching and sorting (n=144): time 0.01936/0.8463, allocations: 5.296 MB / 0.5455 GB, free: 53.78 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.312e-05/0.8465, allocations: 71.31 kB / 0.5456 GB, free: 53.71 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006177/0.8527, allocations: 2.181 MB / 0.5477 GB, free: 53.46 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003635/0.8531, allocations: 51.39 kB / 0.5478 GB, free: 53.43 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001625/0.8547, allocations: 1.727 MB / 0.5495 GB, free: 52.29 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007371/0.8555, allocations: 0.4939 MB / 0.55 GB, free: 51.91 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009748/0.8565, allocations: 407.4 kB / 0.5503 GB, free: 51.71 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.587e-05/0.8565, allocations: 306.2 kB / 0.5506 GB, free: 51.41 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002084/0.8586, allocations: 0.7696 MB / 0.5514 GB, free: 51.11 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002676/0.8613, allocations: 1.541 MB / 0.5529 GB, free: 49.82 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01923/0.8806, allocations: 4.762 MB / 0.5575 GB, free: 47.48 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.418e-05/0.8807, allocations: 11.88 kB / 0.5576 GB, free: 47.47 MB / 366.1 MB Notification: Performance of matching and sorting (n=282) (initialization): time 0.00941/0.8901, allocations: 2.802 MB / 0.5603 GB, free: 46.04 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.615e-05/0.8903, allocations: 14.81 kB / 0.5603 GB, free: 46.04 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.12e-05/0.8904, allocations: 25.81 kB / 0.5603 GB, free: 46.04 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001566/0.892, allocations: 283.7 kB / 0.5606 GB, free: 45.9 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003434/0.8954, allocations: 495.2 kB / 0.5611 GB, free: 45.79 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006432/0.9019, allocations: 3.18 MB / 0.5642 GB, free: 43.22 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004304/0.9062, allocations: 101.9 kB / 0.5643 GB, free: 43.17 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005964/0.9069, allocations: 100.7 kB / 0.5644 GB, free: 43.15 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 system: smee.is[2] = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 114 * 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 (261): * Single equations (assignments): 259 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * 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): 1 system {(2,19,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004563/0.9115, allocations: 1.087 MB / 0.5654 GB, free: 42.41 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00133/0.9128, allocations: 230.1 kB / 0.5657 GB, free: 42.3 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006606/0.9195, allocations: 1.774 MB / 0.5674 GB, free: 41.27 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.412e-05/0.9195, allocations: 14.11 kB / 0.5674 GB, free: 41.27 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.909e-05/0.9196, allocations: 3.938 kB / 0.5674 GB, free: 41.27 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.856e-05/0.9196, allocations: 7.969 kB / 0.5674 GB, free: 41.27 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01855/0.9382, allocations: 5.037 MB / 0.5723 GB, free: 37.26 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.869e-05/0.9383, allocations: 0 / 0.5723 GB, free: 37.26 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002136/0.9404, allocations: 263.9 kB / 0.5726 GB, free: 37 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001297/0.9417, allocations: 221.4 kB / 0.5728 GB, free: 36.79 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001929/0.942, allocations: 32 kB / 0.5728 GB, free: 36.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005982/0.948, allocations: 3.047 MB / 0.5758 GB, free: 33.59 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.098e-05/0.948, allocations: 4 kB / 0.5758 GB, free: 33.58 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008385/0.9564, allocations: 2.682 MB / 0.5784 GB, free: 30.86 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002688/0.9592, allocations: 454.3 kB / 0.5789 GB, free: 30.39 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001303/0.9605, allocations: 35.98 kB / 0.5789 GB, free: 30.36 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002974/0.9636, allocations: 52.47 kB / 0.5789 GB, free: 30.31 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000504/0.9641, allocations: 109.7 kB / 0.579 GB, free: 30.2 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002016/0.9643, allocations: 39.98 kB / 0.5791 GB, free: 30.16 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.004712/0.9691, allocations: 1.459 MB / 0.5805 GB, free: 28.68 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.092e-06/0.9691, allocations: 0 / 0.5805 GB, free: 28.68 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.005937/0.9751, allocations: 0.6406 MB / 0.5811 GB, free: 28.04 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 5 (smee.phiMechanical,smee.stator.zeroInductor.i0,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 (125): * Single equations (assignments): 124 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006987/0.9758, allocations: 163.5 kB / 0.5813 GB, free: 27.88 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00618/0.982, allocations: 2.153 MB / 0.5834 GB, free: 25.71 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.097e-05/0.9821, allocations: 0 / 0.5834 GB, free: 25.71 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002634/0.9847, allocations: 0.957 MB / 0.5843 GB, free: 24.73 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007072/0.9918, allocations: 0.5459 MB / 0.5849 GB, free: 24.22 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02134/1.013, allocations: 7.511 MB / 0.5922 GB, free: 16.66 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003881/1.017, allocations: 2.367 MB / 0.5945 GB, free: 14.27 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001437/1.019, allocations: 163.4 kB / 0.5947 GB, free: 14.11 MB / 366.1 MB Notification: Performance of SimCode: time 1.333e-06/1.019, allocations: 3.938 kB / 0.5947 GB, free: 14.11 MB / 366.1 MB Notification: Performance of Templates: time 0.1732/1.192, allocations: 68.4 MB / 0.6615 GB, free: 9.805 MB / 430.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1.pipe 2>&1)