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.001739/0.001739, allocations: 116.4 kB / 16.37 MB, free: 6.012 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.485/1.485, allocations: 222.9 MB / 240 MB, free: 4.41 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.001292/0.001292, allocations: 192.5 kB / 290.3 MB, free: 2.141 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03466/0.03466, allocations: 8.791 MB / 349.3 MB, free: 4.613 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001758/0.001758, allocations: 75.91 kB / 412.5 MB, free: 41.91 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1/0.1018, allocations: 51.57 MB / 464.1 MB, free: 13.68 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_ShortCircuit1): time 0.01936/0.1212, allocations: 15.93 MB / 480 MB, free: 13.67 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01184/0.1331, allocations: 5.301 MB / 485.3 MB, free: 8.348 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003454/0.1366, allocations: 95.69 kB / 485.4 MB, free: 8.254 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003877/0.1405, allocations: 1.215 MB / 486.6 MB, free: 7.035 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.005968/0.1465, allocations: 1.53 MB / 488.2 MB, free: 5.496 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003008/0.1495, allocations: 0.9818 MB / 489.1 MB, free: 4.516 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006988/0.1565, allocations: 4.599 MB / 493.7 MB, free: 15.9 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005016/0.1615, allocations: 3.489 MB / 497.2 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003213/0.1648, allocations: 2.037 MB / 499.3 MB, free: 10.3 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003352/0.1682, allocations: 2.335 MB / 0.4898 GB, free: 7.953 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008687/0.169, allocations: 0.5625 MB / 0.4904 GB, free: 7.391 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001549/0.1706, allocations: 0.7693 MB / 0.4911 GB, free: 6.621 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001026/0.1716, allocations: 1.239 MB / 0.4924 GB, free: 5.379 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002681/0.1743, allocations: 2.377 MB / 0.4947 GB, free: 2.992 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007075/0.1814, allocations: 7.31 MB / 0.5018 GB, free: 11.66 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.1814, allocations: 3.938 kB / 0.5018 GB, free: 11.66 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1815, allocations: 4 kB / 0.5018 GB, free: 11.65 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000153/0.1816, allocations: 0 / 0.5018 GB, free: 11.65 MB / 350.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.0117/0.1933, allocations: 4.822 MB / 0.5065 GB, free: 6.758 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.579e-05/0.1934, allocations: 12.03 kB / 0.5065 GB, free: 6.746 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004986/0.1984, allocations: 0.9328 MB / 0.5075 GB, free: 5.809 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006163/0.2046, allocations: 2.741 MB / 0.5101 GB, free: 3.012 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002336/0.2048, allocations: 275.8 kB / 0.5104 GB, free: 2.742 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009194/0.2057, allocations: 372 kB / 0.5108 GB, free: 2.379 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00848/0.2142, allocations: 4.667 MB / 0.5153 GB, free: 13.67 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.14e-05/0.2143, allocations: 11.84 kB / 0.5153 GB, free: 13.66 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003142/0.2147, allocations: 148 kB / 0.5155 GB, free: 13.51 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001475/0.2148, allocations: 159.3 kB / 0.5156 GB, free: 13.36 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006968/0.2218, allocations: 3.894 MB / 0.5194 GB, free: 9.457 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2169/0.4387, allocations: 15.13 MB / 0.5342 GB, free: 56.36 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004575/0.4433, allocations: 5.944 MB / 0.54 GB, free: 52 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00192/0.4452, allocations: 1.259 MB / 0.5412 GB, free: 51.98 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006257/0.4515, allocations: 4.122 MB / 0.5453 GB, free: 50.76 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.566e-05/0.4515, allocations: 48.25 kB / 0.5453 GB, free: 50.72 MB / 366.1 MB Notification: Performance of pre-optimization done (n=118): time 3.236e-06/0.4516, allocations: 4.438 kB / 0.5453 GB, free: 50.72 MB / 366.1 MB Notification: Performance of matching and sorting (n=144): time 0.009641/0.4612, allocations: 5.256 MB / 0.5504 GB, free: 49.64 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.984e-05/0.4613, allocations: 67.41 kB / 0.5505 GB, free: 49.58 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002726/0.464, allocations: 2.148 MB / 0.5526 GB, free: 49.09 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.462e-05/0.4641, allocations: 51.23 kB / 0.5527 GB, free: 49.04 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007963/0.4649, allocations: 1.726 MB / 0.5543 GB, free: 47.73 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002757/0.4652, allocations: 0.4964 MB / 0.5548 GB, free: 47.34 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005434/0.4657, allocations: 416.7 kB / 0.5552 GB, free: 47.13 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 3.806e-05/0.4658, allocations: 305.9 kB / 0.5555 GB, free: 46.84 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001199/0.467, allocations: 0.7638 MB / 0.5563 GB, free: 46.54 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001253/0.4682, allocations: 1.543 MB / 0.5578 GB, free: 45.25 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01121/0.4795, allocations: 4.733 MB / 0.5624 GB, free: 42.27 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.241e-05/0.4795, allocations: 7.844 kB / 0.5624 GB, free: 42.27 MB / 366.1 MB Notification: Performance of matching and sorting (n=282) (initialization): time 0.003695/0.4832, allocations: 2.782 MB / 0.5651 GB, free: 40.8 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.498e-05/0.4832, allocations: 15.31 kB / 0.5651 GB, free: 40.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.399e-05/0.4833, allocations: 32.08 kB / 0.5652 GB, free: 40.79 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006648/0.4839, allocations: 283.9 kB / 0.5654 GB, free: 40.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001539/0.4855, allocations: 490.7 kB / 0.5659 GB, free: 40.55 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003035/0.4885, allocations: 3.388 MB / 0.5692 GB, free: 37.8 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001469/0.49, allocations: 98.41 kB / 0.5693 GB, free: 37.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001232/0.4901, allocations: 100.7 kB / 0.5694 GB, free: 37.73 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.001451/0.4916, allocations: 1.088 MB / 0.5705 GB, free: 36.99 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000244/0.4919, allocations: 228.1 kB / 0.5707 GB, free: 36.87 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002511/0.4944, allocations: 1.773 MB / 0.5724 GB, free: 35.84 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.095e-05/0.4944, allocations: 19.12 kB / 0.5724 GB, free: 35.84 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.4944, allocations: 3.688 kB / 0.5724 GB, free: 35.84 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.123e-05/0.4944, allocations: 3.984 kB / 0.5724 GB, free: 35.84 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006155/0.5006, allocations: 4.978 MB / 0.5773 GB, free: 31.85 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.29e-06/0.5006, allocations: 4 kB / 0.5773 GB, free: 31.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001035/0.5016, allocations: 264.2 kB / 0.5775 GB, free: 31.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005126/0.5022, allocations: 209.6 kB / 0.5777 GB, free: 31.38 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.531e-05/0.5023, allocations: 35.98 kB / 0.5778 GB, free: 31.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002769/0.505, allocations: 3.251 MB / 0.581 GB, free: 27.96 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.505, allocations: 11.88 kB / 0.581 GB, free: 27.95 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003095/0.5081, allocations: 2.656 MB / 0.5836 GB, free: 25.24 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007433/0.5089, allocations: 454.8 kB / 0.584 GB, free: 24.78 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002526/0.5092, allocations: 28 kB / 0.584 GB, free: 24.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009093/0.5101, allocations: 61.05 kB / 0.5841 GB, free: 24.69 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001622/0.5102, allocations: 97.11 kB / 0.5842 GB, free: 24.6 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.488e-05/0.5103, allocations: 46.42 kB / 0.5842 GB, free: 24.55 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001548/0.5119, allocations: 1.439 MB / 0.5856 GB, free: 23.1 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.5119, allocations: 0 / 0.5856 GB, free: 23.1 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00175/0.5137, allocations: 0.6289 MB / 0.5862 GB, free: 22.47 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.0002474/0.5139, allocations: 170.8 kB / 0.5864 GB, free: 22.3 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002614/0.5165, allocations: 2.158 MB / 0.5885 GB, free: 20.12 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.5165, allocations: 0 / 0.5885 GB, free: 20.12 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001116/0.5177, allocations: 0.9543 MB / 0.5894 GB, free: 19.15 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001957/0.5196, allocations: 0.5694 MB / 0.59 GB, free: 18.61 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008361/0.528, allocations: 5.952 MB / 0.5958 GB, free: 12.63 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001785/0.5298, allocations: 2.428 MB / 0.5982 GB, free: 10.17 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001516/0.5313, allocations: 0.5022 MB / 0.5987 GB, free: 9.684 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000352/0.5317, allocations: 151.4 kB / 0.5988 GB, free: 9.535 MB / 366.1 MB Notification: Performance of SimCode: time 7.51e-07/0.5317, allocations: 0 / 0.5988 GB, free: 9.535 MB / 366.1 MB Notification: Performance of Templates: time 0.04579/0.5775, allocations: 28.34 MB / 0.6265 GB, free: 13.56 MB / 398.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 -s cvode -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1.pipe 2>&1)