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.001191/0.001191, allocations: 104.4 kB / 16.27 MB, free: 6.414 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.361/1.361, allocations: 222.9 MB / 239.9 MB, free: 4.621 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.001509/0.001509, allocations: 195.6 kB / 290.2 MB, free: 2.332 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.803 MB / 349.2 MB, free: 4.703 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001566/0.001566, allocations: 81.41 kB / 411.8 MB, free: 42.08 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08655/0.08814, allocations: 51.57 MB / 463.3 MB, free: 14.36 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_ShortCircuit2): time 0.01744/0.1056, allocations: 15.92 MB / 479.2 MB, free: 14.35 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01071/0.1164, allocations: 5.313 MB / 484.5 MB, free: 9.02 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003884/0.1203, allocations: 95.69 kB / 484.6 MB, free: 8.926 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004134/0.1245, allocations: 1.211 MB / 485.9 MB, free: 7.711 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.005558/0.1301, allocations: 1.522 MB / 487.4 MB, free: 6.18 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002747/0.1329, allocations: 0.9846 MB / 488.4 MB, free: 5.199 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006272/0.1391, allocations: 4.564 MB / 492.9 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004312/0.1435, allocations: 3.493 MB / 496.4 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003367/0.1469, allocations: 2.052 MB / 498.5 MB, free: 11 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003765/0.1507, allocations: 2.327 MB / 0.4891 GB, free: 8.66 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001186/0.1519, allocations: 0.5586 MB / 0.4896 GB, free: 8.102 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002218/0.1541, allocations: 0.7771 MB / 0.4904 GB, free: 7.324 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001243/0.1554, allocations: 1.235 MB / 0.4916 GB, free: 6.086 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003483/0.1589, allocations: 2.377 MB / 0.4939 GB, free: 3.699 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007705/0.1666, allocations: 7.26 MB / 0.501 GB, free: 12.42 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.1666, allocations: 0 / 0.501 GB, free: 12.42 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.1666, allocations: 0 / 0.501 GB, free: 12.42 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001576/0.1668, allocations: 0 / 0.501 GB, free: 12.42 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.01298/0.1798, allocations: 4.834 MB / 0.5057 GB, free: 7.512 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.509e-05/0.1798, allocations: 8.031 kB / 0.5057 GB, free: 7.504 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00519/0.185, allocations: 0.9406 MB / 0.5066 GB, free: 6.559 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005763/0.1908, allocations: 2.667 MB / 0.5092 GB, free: 3.836 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002744/0.1911, allocations: 275.8 kB / 0.5095 GB, free: 3.566 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009823/0.1921, allocations: 372 kB / 0.5098 GB, free: 3.203 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008492/0.2006, allocations: 4.68 MB / 0.5144 GB, free: 14.47 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.331e-05/0.2008, allocations: 7.906 kB / 0.5144 GB, free: 14.46 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003271/0.2011, allocations: 148 kB / 0.5146 GB, free: 14.32 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001332/0.2012, allocations: 151.3 kB / 0.5147 GB, free: 14.17 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007012/0.2083, allocations: 3.897 MB / 0.5185 GB, free: 10.27 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2523/0.4606, allocations: 15.48 MB / 0.5336 GB, free: 57.04 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005201/0.4659, allocations: 6.138 MB / 0.5396 GB, free: 52.59 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002545/0.4684, allocations: 1.405 MB / 0.541 GB, free: 52.57 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007467/0.4759, allocations: 4.244 MB / 0.5451 GB, free: 51.41 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.06e-05/0.476, allocations: 48.03 kB / 0.5452 GB, free: 51.37 MB / 366.1 MB Notification: Performance of pre-optimization done (n=125): time 3.687e-06/0.476, allocations: 4.406 kB / 0.5452 GB, free: 51.37 MB / 366.1 MB Notification: Performance of matching and sorting (n=156): time 0.01274/0.4888, allocations: 6.126 MB / 0.5512 GB, free: 50.14 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.182e-05/0.4888, allocations: 67.94 kB / 0.5512 GB, free: 50.08 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003454/0.4923, allocations: 2.067 MB / 0.5533 GB, free: 49.24 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001396/0.4924, allocations: 54.8 kB / 0.5533 GB, free: 49.19 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000929/0.4934, allocations: 1.698 MB / 0.555 GB, free: 47.89 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003251/0.4937, allocations: 0.5366 MB / 0.5555 GB, free: 47.48 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004818/0.4942, allocations: 405.6 kB / 0.5559 GB, free: 47.28 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.53e-05/0.4943, allocations: 305.1 kB / 0.5562 GB, free: 46.98 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001/0.4953, allocations: 0.7792 MB / 0.5569 GB, free: 46.67 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001253/0.4965, allocations: 1.539 MB / 0.5584 GB, free: 45.29 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01187/0.5084, allocations: 4.816 MB / 0.5631 GB, free: 42.14 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.429e-05/0.5085, allocations: 3.875 kB / 0.5631 GB, free: 42.14 MB / 366.1 MB Notification: Performance of matching and sorting (n=283) (initialization): time 0.004699/0.5132, allocations: 2.881 MB / 0.566 GB, free: 40.61 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.888e-05/0.5133, allocations: 15.25 kB / 0.566 GB, free: 40.61 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.368e-05/0.5133, allocations: 23.44 kB / 0.566 GB, free: 40.61 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008251/0.5141, allocations: 366.2 kB / 0.5663 GB, free: 40.44 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00144/0.5156, allocations: 482.3 kB / 0.5668 GB, free: 40.33 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004061/0.5196, allocations: 4.095 MB / 0.5708 GB, free: 37.13 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00195/0.5216, allocations: 92.36 kB / 0.5709 GB, free: 37.08 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001242/0.5217, allocations: 103.3 kB / 0.571 GB, free: 37.06 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.001898/0.5236, allocations: 1.094 MB / 0.5721 GB, free: 36.31 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000404/0.5241, allocations: 223.4 kB / 0.5723 GB, free: 36.2 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002919/0.527, allocations: 1.983 MB / 0.5742 GB, free: 35 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.203e-05/0.527, allocations: 16.88 kB / 0.5742 GB, free: 34.98 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.527, allocations: 4 kB / 0.5742 GB, free: 34.98 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.313e-05/0.527, allocations: 11.81 kB / 0.5742 GB, free: 34.97 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007127/0.5342, allocations: 5.46 MB / 0.5796 GB, free: 29.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.386e-06/0.5342, allocations: 6.188 kB / 0.5796 GB, free: 29.43 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009895/0.5352, allocations: 259.7 kB / 0.5798 GB, free: 29.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006691/0.5359, allocations: 290.9 kB / 0.5801 GB, free: 28.89 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.763e-05/0.536, allocations: 36 kB / 0.5801 GB, free: 28.86 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003602/0.5396, allocations: 3.839 MB / 0.5839 GB, free: 24.89 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/0.5396, allocations: 7.938 kB / 0.5839 GB, free: 24.88 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003727/0.5433, allocations: 2.929 MB / 0.5867 GB, free: 21.9 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009896/0.5443, allocations: 466.3 kB / 0.5872 GB, free: 21.43 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002621/0.5446, allocations: 35.98 kB / 0.5872 GB, free: 21.39 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009366/0.5456, allocations: 59.91 kB / 0.5873 GB, free: 21.33 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002003/0.5458, allocations: 115.8 kB / 0.5874 GB, free: 21.22 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.6e-05/0.5458, allocations: 40 kB / 0.5874 GB, free: 21.18 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001642/0.5475, allocations: 1.395 MB / 0.5888 GB, free: 19.77 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5475, allocations: 0 / 0.5888 GB, free: 19.77 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00196/0.5495, allocations: 0.6379 MB / 0.5894 GB, free: 19.13 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.000276/0.5497, allocations: 178.2 kB / 0.5896 GB, free: 18.96 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004749/0.5545, allocations: 2.728 MB / 0.5923 GB, free: 16.22 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.458e-06/0.5545, allocations: 0 / 0.5923 GB, free: 16.22 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001366/0.5559, allocations: 1.08 MB / 0.5933 GB, free: 15.13 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002395/0.5583, allocations: 0.5883 MB / 0.5939 GB, free: 14.57 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009029/0.5673, allocations: 6.153 MB / 0.5999 GB, free: 8.363 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001473/0.5688, allocations: 2.383 MB / 0.6022 GB, free: 5.953 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006376/0.5695, allocations: 167.4 kB / 0.6024 GB, free: 5.789 MB / 366.1 MB Notification: Performance of SimCode: time 9.01e-07/0.5695, allocations: 0 / 0.6024 GB, free: 5.789 MB / 366.1 MB Notification: Performance of Templates: time 0.08625/0.6558, allocations: 68.65 MB / 0.6694 GB, free: 1.242 MB / 430.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)