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.001062/0.001062, allocations: 104.8 kB / 16.36 MB, free: 5.875 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.35/1.35, allocations: 222.9 MB / 240 MB, free: 4.547 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.001288/0.001288, allocations: 184.5 kB / 290.3 MB, free: 2.273 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03468/0.03468, allocations: 8.799 MB / 349.3 MB, free: 4.633 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001553/0.001553, allocations: 79.61 kB / 412.5 MB, free: 41.65 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07546/0.07703, allocations: 51.57 MB / 464.1 MB, free: 13.58 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_ShortCircuit2): time 0.01633/0.09339, allocations: 15.91 MB / 480 MB, free: 13.59 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009938/0.1034, allocations: 5.317 MB / 485.3 MB, free: 8.25 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002588/0.106, allocations: 91.69 kB / 485.4 MB, free: 8.16 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003696/0.1097, allocations: 1.215 MB / 486.6 MB, free: 6.941 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.005008/0.1148, allocations: 1.528 MB / 488.1 MB, free: 5.406 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003226/0.118, allocations: 0.9899 MB / 489.1 MB, free: 4.418 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007167/0.1252, allocations: 4.594 MB / 493.7 MB, free: 15.8 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00527/0.1305, allocations: 3.489 MB / 497.2 MB, free: 12.25 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00294/0.1334, allocations: 2.052 MB / 499.3 MB, free: 10.19 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003445/0.1369, allocations: 2.331 MB / 0.4898 GB, free: 7.848 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001173/0.1381, allocations: 0.5625 MB / 0.4904 GB, free: 7.285 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001979/0.1401, allocations: 0.7654 MB / 0.4911 GB, free: 6.52 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001369/0.1415, allocations: 1.235 MB / 0.4923 GB, free: 5.281 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002955/0.1444, allocations: 2.377 MB / 0.4947 GB, free: 2.895 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006255/0.1507, allocations: 7.318 MB / 0.5018 GB, free: 11.55 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.1507, allocations: 0 / 0.5018 GB, free: 11.55 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1507, allocations: 0 / 0.5018 GB, free: 11.55 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001205/0.1509, allocations: 4 kB / 0.5018 GB, free: 11.55 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.01071/0.1616, allocations: 4.818 MB / 0.5065 GB, free: 6.66 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.513e-05/0.1616, allocations: 8.031 kB / 0.5065 GB, free: 6.652 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005067/0.1667, allocations: 0.9406 MB / 0.5075 GB, free: 5.707 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00589/0.1726, allocations: 2.737 MB / 0.5101 GB, free: 2.914 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002251/0.1729, allocations: 275.8 kB / 0.5104 GB, free: 2.645 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007883/0.1737, allocations: 368 kB / 0.5107 GB, free: 2.285 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007631/0.1813, allocations: 4.684 MB / 0.5153 GB, free: 13.55 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.84e-05/0.1814, allocations: 11.84 kB / 0.5153 GB, free: 13.54 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002999/0.1817, allocations: 155.9 kB / 0.5155 GB, free: 13.39 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001286/0.1819, allocations: 151.3 kB / 0.5156 GB, free: 13.24 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006577/0.1884, allocations: 3.898 MB / 0.5194 GB, free: 9.336 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1882/0.3766, allocations: 15.28 MB / 0.5343 GB, free: 56.2 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005326/0.382, allocations: 6.13 MB / 0.5403 GB, free: 51.75 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002315/0.3843, allocations: 1.402 MB / 0.5417 GB, free: 51.72 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00689/0.3913, allocations: 4.237 MB / 0.5458 GB, free: 50.56 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.079e-05/0.3913, allocations: 51.11 kB / 0.5459 GB, free: 50.52 MB / 366.1 MB Notification: Performance of pre-optimization done (n=125): time 3.116e-06/0.3913, allocations: 0.7812 kB / 0.5459 GB, free: 50.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=156): time 0.01231/0.4036, allocations: 6.118 MB / 0.5519 GB, free: 49.25 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.336e-05/0.4037, allocations: 68.06 kB / 0.5519 GB, free: 49.18 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003363/0.4071, allocations: 2.069 MB / 0.5539 GB, free: 48.34 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000104/0.4072, allocations: 51.86 kB / 0.554 GB, free: 48.29 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009538/0.4081, allocations: 1.701 MB / 0.5557 GB, free: 47 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003147/0.4085, allocations: 0.5294 MB / 0.5562 GB, free: 46.59 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000477/0.409, allocations: 402.4 kB / 0.5566 GB, free: 46.39 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 3.658e-05/0.409, allocations: 305.1 kB / 0.5568 GB, free: 46.09 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009966/0.41, allocations: 0.7768 MB / 0.5576 GB, free: 45.78 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001308/0.4113, allocations: 1.546 MB / 0.5591 GB, free: 44.37 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01186/0.4232, allocations: 4.79 MB / 0.5638 GB, free: 41.24 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-05/0.4232, allocations: 12.19 kB / 0.5638 GB, free: 41.24 MB / 366.1 MB Notification: Performance of matching and sorting (n=283) (initialization): time 0.004503/0.4278, allocations: 2.874 MB / 0.5666 GB, free: 39.71 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.921e-05/0.4278, allocations: 14.94 kB / 0.5666 GB, free: 39.71 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.182e-05/0.4278, allocations: 27.41 kB / 0.5667 GB, free: 39.71 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008711/0.4287, allocations: 355.4 kB / 0.567 GB, free: 39.55 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001577/0.4303, allocations: 491.4 kB / 0.5675 GB, free: 39.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004195/0.4345, allocations: 4.094 MB / 0.5715 GB, free: 36.23 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002079/0.4366, allocations: 85.55 kB / 0.5715 GB, free: 36.19 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002021/0.4368, allocations: 101.7 kB / 0.5716 GB, free: 36.17 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.001774/0.4386, allocations: 1.097 MB / 0.5727 GB, free: 35.42 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004874/0.4391, allocations: 228.1 kB / 0.5729 GB, free: 35.3 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003265/0.4424, allocations: 1.98 MB / 0.5749 GB, free: 34.16 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.367e-05/0.4424, allocations: 19.27 kB / 0.5749 GB, free: 34.15 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.187e-05/0.4424, allocations: 3.625 kB / 0.5749 GB, free: 34.15 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.353e-05/0.4425, allocations: 11.47 kB / 0.5749 GB, free: 34.14 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00901/0.4515, allocations: 5.446 MB / 0.5802 GB, free: 28.71 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.936e-06/0.4515, allocations: 4 kB / 0.5802 GB, free: 28.71 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001082/0.4526, allocations: 263.7 kB / 0.5805 GB, free: 28.45 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007195/0.4533, allocations: 289.8 kB / 0.5807 GB, free: 28.16 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001103/0.4535, allocations: 35.98 kB / 0.5808 GB, free: 28.13 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003944/0.4574, allocations: 3.837 MB / 0.5845 GB, free: 24.16 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.4574, allocations: 4 kB / 0.5845 GB, free: 24.16 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004002/0.4614, allocations: 2.935 MB / 0.5874 GB, free: 21.17 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001485/0.463, allocations: 466.3 kB / 0.5878 GB, free: 20.7 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005451/0.4635, allocations: 32 kB / 0.5879 GB, free: 20.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001301/0.4648, allocations: 57.14 kB / 0.5879 GB, free: 20.61 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002163/0.465, allocations: 113 kB / 0.588 GB, free: 20.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001025/0.4652, allocations: 48.8 kB / 0.5881 GB, free: 20.45 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002077/0.4672, allocations: 1.391 MB / 0.5894 GB, free: 19.04 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.4672, allocations: 0 / 0.5894 GB, free: 19.04 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00227/0.4695, allocations: 0.6367 MB / 0.5901 GB, free: 18.41 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.0003257/0.4699, allocations: 167.3 kB / 0.5902 GB, free: 18.24 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003387/0.4733, allocations: 2.296 MB / 0.5925 GB, free: 15.92 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.532e-06/0.4733, allocations: 0 / 0.5925 GB, free: 15.92 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001603/0.4749, allocations: 1.083 MB / 0.5935 GB, free: 14.82 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002984/0.4779, allocations: 0.5699 MB / 0.5941 GB, free: 14.29 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01043/0.4883, allocations: 6.108 MB / 0.6 GB, free: 8.152 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002287/0.4907, allocations: 2.439 MB / 0.6024 GB, free: 5.68 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001802/0.4925, allocations: 0.4947 MB / 0.6029 GB, free: 5.199 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005548/0.4931, allocations: 163.3 kB / 0.6031 GB, free: 5.039 MB / 366.1 MB Notification: Performance of SimCode: time 8.21e-07/0.4931, allocations: 0 / 0.6031 GB, free: 5.039 MB / 366.1 MB Notification: Performance of Templates: time 0.05414/0.5472, allocations: 29.45 MB / 0.6318 GB, free: 7.949 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 -s gbode -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.pipe 2>&1)