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.001612/0.001612, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.403/1.403, allocations: 222.9 MB / 239 MB, free: 4.645 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.001625/0.001624, allocations: 188.5 kB / 289.3 MB, free: 2.379 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03235/0.03235, allocations: 8.809 MB / 348.2 MB, free: 4.832 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001322/0.001322, allocations: 74.22 kB / 410.6 MB, free: 42.27 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08091/0.08224, allocations: 51.56 MB / 462.1 MB, free: 14.76 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_ShortCircuit1): time 0.01548/0.09777, allocations: 15.73 MB / 477.9 MB, free: 14.94 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008967/0.1068, allocations: 5.22 MB / 483.1 MB, free: 9.703 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002289/0.1091, allocations: 91.69 kB / 483.2 MB, free: 9.613 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003083/0.1122, allocations: 1.069 MB / 484.3 MB, free: 8.543 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.004106/0.1164, allocations: 1.381 MB / 485.6 MB, free: 7.156 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001967/0.1183, allocations: 0.8911 MB / 486.5 MB, free: 6.27 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00514/0.1235, allocations: 4.697 MB / 491.2 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003693/0.1272, allocations: 3.489 MB / 494.7 MB, free: 14 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002341/0.1296, allocations: 1.947 MB / 496.7 MB, free: 12.04 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002588/0.1322, allocations: 2.311 MB / 499 MB, free: 9.723 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007682/0.1329, allocations: 0.5547 MB / 499.5 MB, free: 9.168 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001455/0.1344, allocations: 0.7771 MB / 0.4886 GB, free: 8.391 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009983/0.1354, allocations: 1.231 MB / 0.4898 GB, free: 7.156 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002602/0.138, allocations: 2.373 MB / 0.4921 GB, free: 4.773 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006535/0.1446, allocations: 7.225 MB / 0.4992 GB, free: 13.53 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.1446, allocations: 0 / 0.4992 GB, free: 13.53 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.1446, allocations: 4 kB / 0.4992 GB, free: 13.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001577/0.1448, allocations: 0 / 0.4992 GB, free: 13.52 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.01176/0.1566, allocations: 4.818 MB / 0.5039 GB, free: 8.633 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.004e-05/0.1566, allocations: 8.031 kB / 0.5039 GB, free: 8.625 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005121/0.1617, allocations: 0.9368 MB / 0.5048 GB, free: 7.684 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004921/0.1667, allocations: 2.57 MB / 0.5073 GB, free: 5.059 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002132/0.1669, allocations: 275.8 kB / 0.5076 GB, free: 4.789 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007227/0.1677, allocations: 376 kB / 0.5079 GB, free: 4.422 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007895/0.1756, allocations: 4.667 MB / 0.5125 GB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.498e-05/0.1757, allocations: 7.938 kB / 0.5125 GB, free: 15.7 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003254/0.176, allocations: 148 kB / 0.5126 GB, free: 15.56 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001258/0.1761, allocations: 155.3 kB / 0.5128 GB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006146/0.1823, allocations: 3.901 MB / 0.5166 GB, free: 11.5 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1937/0.376, allocations: 15.37 MB / 0.5316 GB, free: 58.6 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004438/0.3805, allocations: 5.948 MB / 0.5374 GB, free: 54.24 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001927/0.3824, allocations: 1.263 MB / 0.5386 GB, free: 54.22 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006121/0.3886, allocations: 4.166 MB / 0.5427 GB, free: 53 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.375e-05/0.3887, allocations: 52.12 kB / 0.5427 GB, free: 52.96 MB / 366.1 MB Notification: Performance of pre-optimization done (n=118): time 3.516e-06/0.3887, allocations: 1.062 kB / 0.5427 GB, free: 52.96 MB / 366.1 MB Notification: Performance of matching and sorting (n=144): time 0.01089/0.3996, allocations: 5.304 MB / 0.5479 GB, free: 51.9 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.356e-05/0.3996, allocations: 70.69 kB / 0.548 GB, free: 51.84 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003082/0.4027, allocations: 2.172 MB / 0.5501 GB, free: 51.55 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001476/0.4029, allocations: 51.42 kB / 0.5502 GB, free: 51.5 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000854/0.4037, allocations: 1.726 MB / 0.5518 GB, free: 50.18 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003441/0.4041, allocations: 0.5018 MB / 0.5523 GB, free: 49.8 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006497/0.4048, allocations: 410.1 kB / 0.5527 GB, free: 49.59 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 3.653e-05/0.4048, allocations: 301.1 kB / 0.553 GB, free: 49.3 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001086/0.4059, allocations: 0.7687 MB / 0.5538 GB, free: 48.99 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001218/0.4071, allocations: 1.547 MB / 0.5553 GB, free: 47.7 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01193/0.4191, allocations: 4.78 MB / 0.5599 GB, free: 44.87 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.078e-05/0.4191, allocations: 7.844 kB / 0.56 GB, free: 44.87 MB / 366.1 MB Notification: Performance of matching and sorting (n=282) (initialization): time 0.004165/0.4233, allocations: 2.806 MB / 0.5627 GB, free: 43.39 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.621e-05/0.4233, allocations: 17.16 kB / 0.5627 GB, free: 43.39 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.534e-05/0.4234, allocations: 27.5 kB / 0.5627 GB, free: 43.39 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007016/0.4241, allocations: 282.4 kB / 0.563 GB, free: 43.25 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001518/0.4256, allocations: 0.4901 MB / 0.5635 GB, free: 43.13 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003365/0.429, allocations: 3.435 MB / 0.5668 GB, free: 40.35 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002307/0.4313, allocations: 95.95 kB / 0.5669 GB, free: 40.3 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001804/0.4315, allocations: 103.2 kB / 0.567 GB, free: 40.28 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.001706/0.4332, allocations: 1.095 MB / 0.5681 GB, free: 39.54 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006015/0.4338, allocations: 225.7 kB / 0.5683 GB, free: 39.42 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002792/0.4366, allocations: 1.772 MB / 0.57 GB, free: 38.4 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.205e-05/0.4367, allocations: 17.88 kB / 0.5701 GB, free: 38.4 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.062e-05/0.4367, allocations: 8.125 kB / 0.5701 GB, free: 38.39 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.431e-05/0.4367, allocations: 13.61 kB / 0.5701 GB, free: 38.38 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007104/0.4438, allocations: 5.022 MB / 0.575 GB, free: 34.38 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.344e-06/0.4438, allocations: 4.281 kB / 0.575 GB, free: 34.37 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001051/0.4449, allocations: 263.6 kB / 0.5752 GB, free: 34.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000599/0.4455, allocations: 226.9 kB / 0.5755 GB, free: 33.89 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.949e-05/0.4456, allocations: 32 kB / 0.5755 GB, free: 33.86 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002851/0.4485, allocations: 3.303 MB / 0.5787 GB, free: 30.43 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.4485, allocations: 11.88 kB / 0.5787 GB, free: 30.41 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003426/0.4519, allocations: 2.671 MB / 0.5813 GB, free: 27.7 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009141/0.4529, allocations: 462.3 kB / 0.5818 GB, free: 27.23 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002965/0.4532, allocations: 31.94 kB / 0.5818 GB, free: 27.2 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001006/0.4542, allocations: 59.97 kB / 0.5819 GB, free: 27.14 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001937/0.4544, allocations: 93.17 kB / 0.582 GB, free: 27.05 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.243e-05/0.4545, allocations: 43.98 kB / 0.582 GB, free: 27 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001714/0.4562, allocations: 1.462 MB / 0.5834 GB, free: 25.52 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4562, allocations: 0 / 0.5834 GB, free: 25.52 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002341/0.4585, allocations: 0.6379 MB / 0.584 GB, free: 24.89 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.0003416/0.4589, allocations: 164.7 kB / 0.5842 GB, free: 24.72 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004348/0.4632, allocations: 2.524 MB / 0.5867 GB, free: 22.19 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.392e-06/0.4633, allocations: 0 / 0.5867 GB, free: 22.19 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001205/0.4645, allocations: 0.9529 MB / 0.5876 GB, free: 21.22 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002632/0.4671, allocations: 0.5708 MB / 0.5882 GB, free: 20.68 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009663/0.4768, allocations: 7.563 MB / 0.5955 GB, free: 13.08 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001466/0.4783, allocations: 2.423 MB / 0.5979 GB, free: 10.62 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.00189/0.4802, allocations: 0.4917 MB / 0.5984 GB, free: 10.13 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003797/0.4806, allocations: 155.4 kB / 0.5985 GB, free: 9.977 MB / 366.1 MB Notification: Performance of SimCode: time 1.392e-06/0.4806, allocations: 4 kB / 0.5985 GB, free: 9.973 MB / 366.1 MB Notification: Performance of Templates: time 0.04901/0.5296, allocations: 30.66 MB / 0.6285 GB, free: 11.64 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 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1.pipe 2>&1)