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.00124/0.00124, allocations: 104 kB / 16.35 MB, free: 5.824 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.407/1.407, allocations: 222.9 MB / 240 MB, free: 4.516 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.001309/0.001309, allocations: 184.5 kB / 290.3 MB, free: 2.246 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03493/0.03493, allocations: 8.791 MB / 349.3 MB, free: 4.598 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001452/0.001452, allocations: 79.34 kB / 412.5 MB, free: 41.7 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08188/0.08335, allocations: 51.56 MB / 464.1 MB, free: 13.54 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_ShortCircuit2): time 0.01719/0.1006, allocations: 15.92 MB / 480 MB, free: 13.53 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01024/0.1109, allocations: 5.313 MB / 485.3 MB, free: 8.199 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002359/0.1133, allocations: 95.69 kB / 485.4 MB, free: 8.105 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003203/0.1165, allocations: 1.219 MB / 486.6 MB, free: 6.883 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.004546/0.1211, allocations: 1.517 MB / 488.1 MB, free: 5.359 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002338/0.1234, allocations: 0.9898 MB / 489.1 MB, free: 4.371 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006684/0.1301, allocations: 4.598 MB / 493.7 MB, free: 15.75 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004211/0.1344, allocations: 3.477 MB / 497.2 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002939/0.1373, allocations: 2.052 MB / 499.3 MB, free: 10.15 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003462/0.1408, allocations: 2.335 MB / 0.4898 GB, free: 7.805 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008957/0.1417, allocations: 0.5624 MB / 0.4904 GB, free: 7.242 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001571/0.1433, allocations: 0.7654 MB / 0.4911 GB, free: 6.477 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009994/0.1443, allocations: 1.235 MB / 0.4923 GB, free: 5.238 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002773/0.1471, allocations: 2.38 MB / 0.4947 GB, free: 2.848 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007269/0.1544, allocations: 7.31 MB / 0.5018 GB, free: 11.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.912e-06/0.1544, allocations: 0 / 0.5018 GB, free: 11.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.1544, allocations: 4 kB / 0.5018 GB, free: 11.51 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001446/0.1546, allocations: 0 / 0.5018 GB, free: 11.51 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.01271/0.1673, allocations: 4.826 MB / 0.5065 GB, free: 6.613 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.007e-05/0.1674, allocations: 8.031 kB / 0.5065 GB, free: 6.605 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00516/0.1725, allocations: 0.9368 MB / 0.5074 GB, free: 5.664 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005972/0.1785, allocations: 2.741 MB / 0.5101 GB, free: 2.867 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000208/0.1788, allocations: 279.7 kB / 0.5104 GB, free: 2.594 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006873/0.1795, allocations: 372 kB / 0.5107 GB, free: 2.23 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00791/0.1874, allocations: 4.68 MB / 0.5153 GB, free: 13.5 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.06e-05/0.1875, allocations: 3.906 kB / 0.5153 GB, free: 13.5 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003267/0.1878, allocations: 152 kB / 0.5155 GB, free: 13.35 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002029/0.188, allocations: 159.3 kB / 0.5156 GB, free: 13.19 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006757/0.1948, allocations: 3.901 MB / 0.5194 GB, free: 9.285 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1805/0.3753, allocations: 15.28 MB / 0.5343 GB, free: 56.09 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005372/0.3807, allocations: 6.138 MB / 0.5403 GB, free: 51.62 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002368/0.3831, allocations: 1.396 MB / 0.5417 GB, free: 51.6 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006693/0.3899, allocations: 4.234 MB / 0.5458 GB, free: 50.45 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.709e-05/0.3899, allocations: 47.56 kB / 0.5459 GB, free: 50.41 MB / 366.1 MB Notification: Performance of pre-optimization done (n=125): time 3.857e-06/0.3899, allocations: 1.594 kB / 0.5459 GB, free: 50.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=156): time 0.01164/0.4016, allocations: 6.12 MB / 0.5519 GB, free: 49.13 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.469e-05/0.4016, allocations: 68.09 kB / 0.5519 GB, free: 49.07 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003234/0.4049, allocations: 2.068 MB / 0.5539 GB, free: 48.23 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001171/0.405, allocations: 52.08 kB / 0.554 GB, free: 48.18 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000951/0.406, allocations: 1.701 MB / 0.5557 GB, free: 46.88 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003276/0.4063, allocations: 0.5366 MB / 0.5562 GB, free: 46.47 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005083/0.4068, allocations: 409.6 kB / 0.5566 GB, free: 46.27 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 3.584e-05/0.4069, allocations: 301.1 kB / 0.5569 GB, free: 45.97 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001026/0.4079, allocations: 0.7745 MB / 0.5576 GB, free: 45.66 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001245/0.4092, allocations: 1.545 MB / 0.5591 GB, free: 44.26 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0111/0.4203, allocations: 4.791 MB / 0.5638 GB, free: 41.14 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.401e-05/0.4203, allocations: 6.844 kB / 0.5638 GB, free: 41.14 MB / 366.1 MB Notification: Performance of matching and sorting (n=283) (initialization): time 0.004192/0.4245, allocations: 2.874 MB / 0.5666 GB, free: 39.62 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.909e-05/0.4246, allocations: 15.69 kB / 0.5666 GB, free: 39.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.704e-05/0.4246, allocations: 27.31 kB / 0.5667 GB, free: 39.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008543/0.4255, allocations: 363 kB / 0.567 GB, free: 39.45 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001566/0.427, allocations: 489 kB / 0.5675 GB, free: 39.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004052/0.4311, allocations: 4.083 MB / 0.5715 GB, free: 36.14 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001989/0.4331, allocations: 91.08 kB / 0.5715 GB, free: 36.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002086/0.4333, allocations: 103 kB / 0.5716 GB, free: 36.07 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.00212/0.4355, allocations: 1.097 MB / 0.5727 GB, free: 35.33 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007103/0.4362, allocations: 229.2 kB / 0.5729 GB, free: 35.21 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003325/0.4395, allocations: 1.977 MB / 0.5749 GB, free: 34.06 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.289e-05/0.4396, allocations: 15.75 kB / 0.5749 GB, free: 34.06 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.008e-05/0.4396, allocations: 3.719 kB / 0.5749 GB, free: 34.06 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.39e-05/0.4396, allocations: 12.47 kB / 0.5749 GB, free: 34.05 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00859/0.4482, allocations: 5.452 MB / 0.5802 GB, free: 28.61 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.788e-06/0.4482, allocations: 4.875 kB / 0.5802 GB, free: 28.61 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001038/0.4493, allocations: 267.6 kB / 0.5805 GB, free: 28.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006976/0.45, allocations: 281.8 kB / 0.5807 GB, free: 28.07 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001096/0.4501, allocations: 35.98 kB / 0.5808 GB, free: 28.03 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003662/0.4538, allocations: 3.846 MB / 0.5845 GB, free: 24.06 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.4538, allocations: 0 / 0.5845 GB, free: 24.06 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003733/0.4575, allocations: 2.932 MB / 0.5874 GB, free: 21.07 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001034/0.4586, allocations: 470.3 kB / 0.5878 GB, free: 20.59 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005131/0.4591, allocations: 31.98 kB / 0.5879 GB, free: 20.56 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001151/0.4603, allocations: 55.97 kB / 0.5879 GB, free: 20.51 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001939/0.4605, allocations: 110.3 kB / 0.588 GB, free: 20.4 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.93e-05/0.4606, allocations: 43.98 kB / 0.5881 GB, free: 20.36 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001585/0.4622, allocations: 1.395 MB / 0.5894 GB, free: 18.95 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4622, allocations: 0 / 0.5894 GB, free: 18.95 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001936/0.4641, allocations: 0.6383 MB / 0.5901 GB, free: 18.31 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.0002589/0.4644, allocations: 173 kB / 0.5902 GB, free: 18.14 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003316/0.4677, allocations: 2.29 MB / 0.5925 GB, free: 15.82 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.011e-06/0.4677, allocations: 4.125 kB / 0.5925 GB, free: 15.82 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001461/0.4692, allocations: 1.075 MB / 0.5935 GB, free: 14.73 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002501/0.4717, allocations: 0.5833 MB / 0.5941 GB, free: 14.18 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00836/0.4801, allocations: 6.107 MB / 0.6 GB, free: 8.047 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001492/0.4816, allocations: 2.437 MB / 0.6024 GB, free: 5.578 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001421/0.483, allocations: 0.5009 MB / 0.6029 GB, free: 5.086 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003674/0.4834, allocations: 151.4 kB / 0.6031 GB, free: 4.938 MB / 366.1 MB Notification: Performance of SimCode: time 6.91e-07/0.4834, allocations: 0 / 0.6031 GB, free: 4.938 MB / 366.1 MB Notification: Performance of Templates: time 0.05127/0.5347, allocations: 29.44 MB / 0.6318 GB, free: 7.852 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 cvode -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.pipe 2>&1)