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.001208/0.001208, allocations: 110 kB / 16.41 MB, free: 6.477 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.369/1.369, allocations: 222.9 MB / 240.1 MB, free: 4.586 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.001519/0.001519, allocations: 192.5 kB / 290.4 MB, free: 2.289 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03319/0.03319, allocations: 8.794 MB / 349.3 MB, free: 4.637 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001491/0.001491, allocations: 79.88 kB / 464.7 MB, free: 13.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.1041, allocations: 51.56 MB / 0.5041 GB, free: 9.449 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_ShortCircuit2): time 0.01745/0.1216, allocations: 15.93 MB / 0.5197 GB, free: 9.445 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01065/0.1323, allocations: 5.301 MB / 0.5249 GB, free: 4.129 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002975/0.1353, allocations: 95.69 kB / 0.5249 GB, free: 4.035 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004067/0.1394, allocations: 1.211 MB / 0.5261 GB, free: 2.812 MB / 366.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.00516/0.1446, allocations: 1.526 MB / 0.5276 GB, free: 1.277 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002816/0.1475, allocations: 0.9896 MB / 0.5286 GB, free: 296 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.2384/0.3859, allocations: 4.584 MB / 0.5331 GB, free: 6.289 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004734/0.3906, allocations: 3.485 MB / 0.5365 GB, free: 5.695 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003653/0.3943, allocations: 2.064 MB / 0.5385 GB, free: 5.434 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004504/0.3989, allocations: 2.331 MB / 0.5408 GB, free: 5.012 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001911/0.4008, allocations: 0.5603 MB / 0.5413 GB, free: 5.012 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003196/0.404, allocations: 0.7706 MB / 0.5421 GB, free: 5.012 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001514/0.4055, allocations: 1.24 MB / 0.5433 GB, free: 4.863 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004946/0.4105, allocations: 2.374 MB / 0.5456 GB, free: 4.281 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01099/0.4215, allocations: 7.316 MB / 0.5527 GB, free: 3.285 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.817e-06/0.4216, allocations: 4.656 kB / 0.5527 GB, free: 3.285 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.4216, allocations: 0 / 0.5527 GB, free: 3.285 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002621/0.4218, allocations: 0 / 0.5527 GB, free: 3.285 MB / 366.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.01732/0.4392, allocations: 4.83 MB / 0.5575 GB, free: 336 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.846e-05/0.4392, allocations: 10.03 kB / 0.5575 GB, free: 336 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005964/0.4452, allocations: 0.9348 MB / 0.5584 GB, free: 15.89 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007556/0.4528, allocations: 2.75 MB / 0.5611 GB, free: 14.02 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003252/0.4532, allocations: 276.9 kB / 0.5613 GB, free: 13.89 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001647/0.4548, allocations: 369.4 kB / 0.5617 GB, free: 13.77 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01535/0.4702, allocations: 4.676 MB / 0.5662 GB, free: 11.02 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001955/0.4704, allocations: 9.484 kB / 0.5663 GB, free: 11.01 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001406/0.4719, allocations: 149 kB / 0.5664 GB, free: 10.89 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001852/0.4721, allocations: 151.8 kB / 0.5665 GB, free: 10.88 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01013/0.4822, allocations: 3.901 MB / 0.5703 GB, free: 8.062 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03216/0.5144, allocations: 15.3 MB / 0.5853 GB, free: 8.621 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006602/0.521, allocations: 6.131 MB / 0.5913 GB, free: 1.723 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002784/0.5239, allocations: 1.448 MB / 0.5927 GB, free: 280 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008249/0.5321, allocations: 4.229 MB / 0.5968 GB, free: 11.91 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.407e-05/0.5322, allocations: 47.56 kB / 0.5969 GB, free: 11.85 MB / 414.1 MB Notification: Performance of pre-optimization done (n=125): time 5.35e-06/0.5322, allocations: 0 / 0.5969 GB, free: 11.85 MB / 414.1 MB Notification: Performance of matching and sorting (n=156): time 0.01442/0.5467, allocations: 6.119 MB / 0.6028 GB, free: 5.68 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.328e-05/0.5468, allocations: 68.72 kB / 0.6029 GB, free: 5.598 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004264/0.551, allocations: 2.065 MB / 0.6049 GB, free: 3.496 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001824/0.5512, allocations: 53.7 kB / 0.605 GB, free: 3.438 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001343/0.5526, allocations: 1.697 MB / 0.6066 GB, free: 1.727 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005376/0.5531, allocations: 0.5361 MB / 0.6072 GB, free: 1.195 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007312/0.5539, allocations: 403.8 kB / 0.6075 GB, free: 0.793 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.807e-05/0.554, allocations: 309.1 kB / 0.6078 GB, free: 500 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001358/0.5554, allocations: 0.7741 MB / 0.6086 GB, free: 15.71 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001854/0.5572, allocations: 1.547 MB / 0.6101 GB, free: 13.82 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01359/0.5708, allocations: 4.794 MB / 0.6148 GB, free: 8.773 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.827e-05/0.5709, allocations: 8 kB / 0.6148 GB, free: 8.766 MB / 430.1 MB Notification: Performance of matching and sorting (n=283) (initialization): time 0.005811/0.5767, allocations: 2.872 MB / 0.6176 GB, free: 6.039 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.218e-05/0.5768, allocations: 12 kB / 0.6176 GB, free: 6.027 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.782e-05/0.5769, allocations: 28 kB / 0.6176 GB, free: 6 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001013/0.5779, allocations: 357.7 kB / 0.618 GB, free: 5.648 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001871/0.5798, allocations: 494.9 kB / 0.6184 GB, free: 5.199 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005375/0.5852, allocations: 4.093 MB / 0.6224 GB, free: 0.9883 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002419/0.5876, allocations: 91.78 kB / 0.6225 GB, free: 0.8984 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004139/0.588, allocations: 100 kB / 0.6226 GB, free: 0.8008 MB / 430.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.002777/0.5908, allocations: 1.105 MB / 0.6237 GB, free: 15.73 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007235/0.5916, allocations: 225.3 kB / 0.6239 GB, free: 15.51 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004203/0.5958, allocations: 1.983 MB / 0.6259 GB, free: 13.52 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.614e-05/0.5958, allocations: 16 kB / 0.6259 GB, free: 13.51 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.544e-05/0.5958, allocations: 4 kB / 0.6259 GB, free: 13.5 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.842e-05/0.5959, allocations: 15.91 kB / 0.6259 GB, free: 13.49 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01182/0.6077, allocations: 5.433 MB / 0.6312 GB, free: 8.004 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-05/0.6078, allocations: 4 kB / 0.6312 GB, free: 8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001201/0.609, allocations: 270.2 kB / 0.6315 GB, free: 7.75 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008282/0.6098, allocations: 284.9 kB / 0.6317 GB, free: 7.469 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001362/0.61, allocations: 35.98 kB / 0.6318 GB, free: 7.434 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004804/0.6148, allocations: 3.828 MB / 0.6355 GB, free: 3.477 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.743e-06/0.6148, allocations: 7.938 kB / 0.6355 GB, free: 3.469 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005011/0.6198, allocations: 2.929 MB / 0.6384 GB, free: 0.5039 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001383/0.6212, allocations: 474.2 kB / 0.6388 GB, free: 20 kB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008064/0.6221, allocations: 32.05 kB / 0.6389 GB, free: 15.98 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001546/0.6236, allocations: 55.92 kB / 0.6389 GB, free: 15.93 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003067/0.6239, allocations: 116.6 kB / 0.639 GB, free: 15.82 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001199/0.6241, allocations: 43.98 kB / 0.6391 GB, free: 15.78 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003118/0.6272, allocations: 1.387 MB / 0.6404 GB, free: 14.38 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.6272, allocations: 0 / 0.6404 GB, free: 14.38 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003333/0.6306, allocations: 0.6406 MB / 0.641 GB, free: 13.73 MB / 462.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.0004628/0.631, allocations: 171.8 kB / 0.6412 GB, free: 13.57 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00428/0.6353, allocations: 2.291 MB / 0.6434 GB, free: 11.32 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.424e-06/0.6354, allocations: 0 / 0.6434 GB, free: 11.32 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001917/0.6373, allocations: 1.079 MB / 0.6445 GB, free: 10.23 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003865/0.6412, allocations: 0.5843 MB / 0.6451 GB, free: 9.648 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01443/0.6556, allocations: 6.075 MB / 0.651 GB, free: 3.52 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00347/0.6591, allocations: 2.379 MB / 0.6533 GB, free: 1.113 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008952/0.6601, allocations: 171.4 kB / 0.6535 GB, free: 0.9453 MB / 462.1 MB Notification: Performance of SimCode: time 1.333e-06/0.6601, allocations: 0 / 0.6535 GB, free: 0.9453 MB / 462.1 MB Notification: Performance of Templates: time 0.09612/0.7562, allocations: 69 MB / 0.7209 GB, free: 12.07 MB / 0.5294 GB 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)