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.001532/0.001532, allocations: 111.3 kB / 15.34 MB, free: 0.5117 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.371/1.371, allocations: 222.9 MB / 239 MB, free: 4.734 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.001654/0.001654, allocations: 196.5 kB / 289.3 MB, free: 2.469 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0323/0.0323, allocations: 8.792 MB / 348.2 MB, free: 4.867 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001491/0.001491, allocations: 79.8 kB / 410.6 MB, free: 42.34 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08124/0.08275, allocations: 51.56 MB / 462.1 MB, free: 14.8 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_ShortCircuit2): time 0.01682/0.09961, allocations: 15.73 MB / 477.9 MB, free: 14.98 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01019/0.1098, allocations: 5.216 MB / 483.1 MB, free: 9.742 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002408/0.1123, allocations: 91.69 kB / 483.2 MB, free: 9.652 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0033/0.1156, allocations: 1.073 MB / 484.3 MB, free: 8.578 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.004631/0.1203, allocations: 1.376 MB / 485.6 MB, free: 7.195 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002317/0.1226, allocations: 0.8952 MB / 486.5 MB, free: 6.305 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005726/0.1283, allocations: 4.7 MB / 491.2 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004452/0.1328, allocations: 3.481 MB / 494.7 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002707/0.1355, allocations: 1.954 MB / 496.7 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003133/0.1387, allocations: 2.304 MB / 499 MB, free: 9.762 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00113/0.1398, allocations: 0.5547 MB / 499.5 MB, free: 9.207 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001946/0.1418, allocations: 0.7731 MB / 0.4886 GB, free: 8.434 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001372/0.1432, allocations: 1.239 MB / 0.4898 GB, free: 7.191 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00264/0.1458, allocations: 2.361 MB / 0.4921 GB, free: 4.82 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00624/0.1521, allocations: 7.236 MB / 0.4992 GB, free: 13.56 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/0.1521, allocations: 3.984 kB / 0.4992 GB, free: 13.56 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1521, allocations: 0 / 0.4992 GB, free: 13.56 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001313/0.1523, allocations: 0 / 0.4992 GB, free: 13.56 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.01183/0.1641, allocations: 4.806 MB / 0.5039 GB, free: 8.68 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.25e-05/0.1642, allocations: 16.03 kB / 0.5039 GB, free: 8.664 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005011/0.1692, allocations: 0.9445 MB / 0.5048 GB, free: 7.715 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004534/0.1737, allocations: 2.558 MB / 0.5073 GB, free: 5.102 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001983/0.1739, allocations: 279.7 kB / 0.5076 GB, free: 4.828 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005095/0.1745, allocations: 372 kB / 0.5079 GB, free: 4.465 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007397/0.1819, allocations: 4.684 MB / 0.5125 GB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.389e-05/0.182, allocations: 7.984 kB / 0.5125 GB, free: 15.72 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003204/0.1823, allocations: 148 kB / 0.5126 GB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000134/0.1824, allocations: 163.2 kB / 0.5128 GB, free: 15.42 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006018/0.1885, allocations: 3.901 MB / 0.5166 GB, free: 11.51 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.196/0.3845, allocations: 15.52 MB / 0.5318 GB, free: 57.8 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005615/0.3902, allocations: 6.13 MB / 0.5377 GB, free: 53.34 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002507/0.3927, allocations: 1.405 MB / 0.5391 GB, free: 53.32 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006527/0.3993, allocations: 4.276 MB / 0.5433 GB, free: 52.17 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.077e-05/0.3993, allocations: 43.94 kB / 0.5433 GB, free: 52.13 MB / 366.1 MB Notification: Performance of pre-optimization done (n=125): time 3.135e-06/0.3993, allocations: 4.438 kB / 0.5433 GB, free: 52.13 MB / 366.1 MB Notification: Performance of matching and sorting (n=156): time 0.01255/0.4119, allocations: 6.182 MB / 0.5494 GB, free: 50.93 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.976e-05/0.412, allocations: 70.84 kB / 0.5494 GB, free: 50.87 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003581/0.4156, allocations: 2.099 MB / 0.5515 GB, free: 50.14 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001394/0.4157, allocations: 51.33 kB / 0.5515 GB, free: 50.09 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008745/0.4166, allocations: 1.7 MB / 0.5532 GB, free: 48.79 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003132/0.4169, allocations: 0.5288 MB / 0.5537 GB, free: 48.38 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004906/0.4174, allocations: 410.7 kB / 0.5541 GB, free: 48.18 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.39e-05/0.4175, allocations: 305.1 kB / 0.5544 GB, free: 47.88 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009785/0.4185, allocations: 0.7789 MB / 0.5552 GB, free: 47.57 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001276/0.4198, allocations: 1.559 MB / 0.5567 GB, free: 46.27 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01197/0.4317, allocations: 4.845 MB / 0.5614 GB, free: 43.18 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.658e-05/0.4318, allocations: 8.156 kB / 0.5614 GB, free: 43.18 MB / 366.1 MB Notification: Performance of matching and sorting (n=283) (initialization): time 0.004203/0.436, allocations: 2.889 MB / 0.5642 GB, free: 41.65 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.907e-05/0.4361, allocations: 20.11 kB / 0.5643 GB, free: 41.64 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.726e-05/0.4361, allocations: 21.84 kB / 0.5643 GB, free: 41.64 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009119/0.437, allocations: 370.5 kB / 0.5646 GB, free: 41.47 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001557/0.4386, allocations: 491.6 kB / 0.5651 GB, free: 41.36 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004133/0.4427, allocations: 4.133 MB / 0.5691 GB, free: 38.13 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001991/0.4448, allocations: 94.81 kB / 0.5692 GB, free: 38.08 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000196/0.445, allocations: 107.1 kB / 0.5693 GB, free: 38.05 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[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 (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 {(4,23,68.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001677/0.4467, allocations: 1.095 MB / 0.5704 GB, free: 37.31 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004449/0.4471, allocations: 225.3 kB / 0.5706 GB, free: 37.2 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003223/0.4503, allocations: 2.002 MB / 0.5726 GB, free: 36.03 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.652e-05/0.4504, allocations: 14.28 kB / 0.5726 GB, free: 36.03 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.977e-06/0.4504, allocations: 8 kB / 0.5726 GB, free: 36.02 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.57e-05/0.4504, allocations: 7.969 kB / 0.5726 GB, free: 36.02 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008377/0.4588, allocations: 5.495 MB / 0.578 GB, free: 30.44 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.546e-06/0.4589, allocations: 4 kB / 0.578 GB, free: 30.44 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001081/0.4599, allocations: 271.6 kB / 0.5782 GB, free: 30.17 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007661/0.4607, allocations: 306.5 kB / 0.5785 GB, free: 29.87 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.827e-05/0.4608, allocations: 39.92 kB / 0.5786 GB, free: 29.83 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003617/0.4644, allocations: 3.882 MB / 0.5823 GB, free: 25.82 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.4645, allocations: 8 kB / 0.5824 GB, free: 25.81 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003648/0.4681, allocations: 2.953 MB / 0.5852 GB, free: 22.81 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007958/0.4689, allocations: 475.7 kB / 0.5857 GB, free: 22.33 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002782/0.4692, allocations: 35.98 kB / 0.5857 GB, free: 22.29 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001001/0.4702, allocations: 59.97 kB / 0.5858 GB, free: 22.23 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001841/0.4704, allocations: 109.1 kB / 0.5859 GB, free: 22.13 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.091e-05/0.4705, allocations: 43.98 kB / 0.5859 GB, free: 22.09 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001597/0.4721, allocations: 1.414 MB / 0.5873 GB, free: 20.65 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.4721, allocations: 0 / 0.5873 GB, free: 20.65 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00192/0.474, allocations: 0.6436 MB / 0.5879 GB, free: 20.01 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 (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 {(3,22,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002748/0.4743, allocations: 169.3 kB / 0.5881 GB, free: 19.84 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004919/0.4792, allocations: 2.749 MB / 0.5908 GB, free: 17.09 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.4793, allocations: 0 / 0.5908 GB, free: 17.09 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001426/0.4807, allocations: 1.08 MB / 0.5918 GB, free: 15.99 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0024/0.4831, allocations: 0.5836 MB / 0.5924 GB, free: 15.45 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008611/0.4917, allocations: 7.706 MB / 0.5999 GB, free: 7.695 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001441/0.4932, allocations: 2.439 MB / 0.6023 GB, free: 5.227 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.00173/0.4949, allocations: 0.4918 MB / 0.6028 GB, free: 4.73 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003699/0.4953, allocations: 147.4 kB / 0.6029 GB, free: 4.586 MB / 366.1 MB Notification: Performance of SimCode: time 7.62e-07/0.4953, allocations: 0 / 0.6029 GB, free: 4.586 MB / 366.1 MB Notification: Performance of Templates: time 0.05004/0.5454, allocations: 31.79 MB / 0.634 GB, free: 5.109 MB / 398.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.makefile (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)