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.001713/0.001713, allocations: 100.1 kB / 15.88 MB, free: 4 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.124/2.124, allocations: 222.9 MB / 239.5 MB, free: 4.781 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.00212/0.00212, allocations: 188.5 kB / 289.8 MB, free: 2.52 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.05254/0.05254, allocations: 8.785 MB / 348.7 MB, free: 4.891 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002361/0.00236, allocations: 77.5 kB / 411.1 MB, free: 42.43 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1604/0.1627, allocations: 51.56 MB / 462.6 MB, free: 14.89 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_ShortCircuit2): time 0.03059/0.1934, allocations: 15.74 MB / 478.4 MB, free: 15.07 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01912/0.2126, allocations: 5.247 MB / 483.6 MB, free: 9.801 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006151/0.219, allocations: 91.69 kB / 483.7 MB, free: 9.711 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007064/0.2261, allocations: 1.069 MB / 484.8 MB, free: 8.641 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.01031/0.2364, allocations: 1.373 MB / 486.1 MB, free: 7.262 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005105/0.2416, allocations: 0.9109 MB / 487 MB, free: 6.355 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01237/0.254, allocations: 4.839 MB / 491.9 MB, free: 1.5 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009494/0.2636, allocations: 2.882 MB / 494.8 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00504/0.2687, allocations: 1.665 MB / 496.4 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006071/0.2748, allocations: 2.151 MB / 498.6 MB, free: 10.71 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002363/0.2772, allocations: 336 kB / 498.9 MB, free: 10.39 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003885/0.2812, allocations: 0.5388 MB / 499.5 MB, free: 9.848 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002895/0.2841, allocations: 0.9965 MB / 0.4887 GB, free: 8.848 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007035/0.2912, allocations: 2.119 MB / 0.4908 GB, free: 6.719 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01185/0.3031, allocations: 6.142 MB / 0.4968 GB, free: 0.5625 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.28e-05/0.3032, allocations: 0 / 0.4968 GB, free: 0.5625 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.236e-06/0.3032, allocations: 0 / 0.4968 GB, free: 0.5625 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003724/0.3036, allocations: 0 / 0.4968 GB, free: 0.5625 MB / 334.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.02898/0.3326, allocations: 4.807 MB / 0.5015 GB, free: 11.68 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.971e-05/0.3327, allocations: 16.03 kB / 0.5015 GB, free: 11.67 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01123/0.344, allocations: 0.9406 MB / 0.5024 GB, free: 10.72 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01085/0.3549, allocations: 2.562 MB / 0.5049 GB, free: 8.105 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006015/0.3556, allocations: 279.8 kB / 0.5052 GB, free: 7.832 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002168/0.3578, allocations: 372 kB / 0.5055 GB, free: 7.469 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02097/0.3788, allocations: 4.68 MB / 0.5101 GB, free: 2.738 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002432/0.3791, allocations: 4 kB / 0.5101 GB, free: 2.734 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001716/0.3808, allocations: 144 kB / 0.5103 GB, free: 2.594 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003031/0.3811, allocations: 163.3 kB / 0.5104 GB, free: 2.434 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01614/0.3973, allocations: 3.901 MB / 0.5142 GB, free: 14.52 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4149/0.8123, allocations: 15.53 MB / 0.5294 GB, free: 59.48 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008914/0.8212, allocations: 6.123 MB / 0.5354 GB, free: 55.02 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004394/0.8257, allocations: 1.407 MB / 0.5367 GB, free: 55.01 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01216/0.8379, allocations: 4.273 MB / 0.5409 GB, free: 53.86 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.573e-05/0.8381, allocations: 52.28 kB / 0.541 GB, free: 53.82 MB / 366.1 MB Notification: Performance of pre-optimization done (n=125): time 9.769e-06/0.8381, allocations: 0.75 kB / 0.541 GB, free: 53.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=156): time 0.02577/0.8639, allocations: 6.177 MB / 0.547 GB, free: 52.71 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.525e-05/0.864, allocations: 68.69 kB / 0.5471 GB, free: 52.65 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005992/0.87, allocations: 2.084 MB / 0.5491 GB, free: 52.4 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003913/0.8704, allocations: 59.33 kB / 0.5492 GB, free: 52.37 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001675/0.8721, allocations: 1.7 MB / 0.5508 GB, free: 51.44 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007899/0.8729, allocations: 0.5393 MB / 0.5513 GB, free: 51.02 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00102/0.874, allocations: 408.3 kB / 0.5517 GB, free: 50.82 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.041e-05/0.8741, allocations: 309.8 kB / 0.552 GB, free: 50.52 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002289/0.8764, allocations: 0.781 MB / 0.5528 GB, free: 50.21 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002325/0.8787, allocations: 1.557 MB / 0.5543 GB, free: 48.91 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01897/0.8977, allocations: 4.826 MB / 0.559 GB, free: 46.33 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.299e-05/0.8978, allocations: 7.844 kB / 0.559 GB, free: 46.33 MB / 366.1 MB Notification: Performance of matching and sorting (n=283) (initialization): time 0.007569/0.9054, allocations: 2.885 MB / 0.5618 GB, free: 44.8 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.76e-05/0.9055, allocations: 14.16 kB / 0.5619 GB, free: 44.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.115e-05/0.9056, allocations: 25.81 kB / 0.5619 GB, free: 44.8 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001438/0.907, allocations: 368.6 kB / 0.5622 GB, free: 44.63 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002543/0.9096, allocations: 487.1 kB / 0.5627 GB, free: 44.52 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006478/0.9161, allocations: 3.83 MB / 0.5664 GB, free: 41.54 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003447/0.9196, allocations: 96.97 kB / 0.5665 GB, free: 41.49 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003967/0.92, allocations: 102.5 kB / 0.5666 GB, free: 41.47 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.00395/0.924, allocations: 1.093 MB / 0.5677 GB, free: 40.73 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001086/0.9251, allocations: 229.9 kB / 0.5679 GB, free: 40.61 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005022/0.9301, allocations: 1.999 MB / 0.5699 GB, free: 39.38 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.606e-05/0.9301, allocations: 20 kB / 0.5699 GB, free: 39.36 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.209e-05/0.9302, allocations: 7.938 kB / 0.5699 GB, free: 39.35 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.974e-05/0.9302, allocations: 8.469 kB / 0.5699 GB, free: 39.34 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01274/0.9429, allocations: 5.498 MB / 0.5753 GB, free: 33.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.696e-05/0.943, allocations: 0 / 0.5753 GB, free: 33.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001674/0.9447, allocations: 278.5 kB / 0.5755 GB, free: 33.5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001238/0.946, allocations: 293.4 kB / 0.5758 GB, free: 33.21 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001465/0.9461, allocations: 39.98 kB / 0.5759 GB, free: 33.17 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005651/0.9518, allocations: 3.587 MB / 0.5794 GB, free: 29.46 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.851e-06/0.9518, allocations: 9.438 kB / 0.5794 GB, free: 29.45 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006371/0.9582, allocations: 2.945 MB / 0.5822 GB, free: 26.45 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001829/0.9601, allocations: 474.3 kB / 0.5827 GB, free: 25.97 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000699/0.9608, allocations: 32 kB / 0.5827 GB, free: 25.94 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001941/0.9628, allocations: 63.95 kB / 0.5828 GB, free: 25.88 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000335/0.9631, allocations: 105.1 kB / 0.5829 GB, free: 25.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001344/0.9633, allocations: 43.98 kB / 0.5829 GB, free: 25.73 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003195/0.9665, allocations: 1.418 MB / 0.5843 GB, free: 24.29 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.9665, allocations: 0 / 0.5843 GB, free: 24.29 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.004299/0.9708, allocations: 0.644 MB / 0.5849 GB, free: 23.65 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.0005594/0.9714, allocations: 172.8 kB / 0.5851 GB, free: 23.48 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005196/0.9766, allocations: 2.287 MB / 0.5873 GB, free: 21.17 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.245e-06/0.9767, allocations: 4 kB / 0.5873 GB, free: 21.17 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002571/0.9793, allocations: 1.088 MB / 0.5884 GB, free: 20.07 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004697/0.984, allocations: 0.5474 MB / 0.5889 GB, free: 19.55 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01646/1, allocations: 7.672 MB / 0.5964 GB, free: 11.83 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002496/1.003, allocations: 2.38 MB / 0.5988 GB, free: 9.422 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001102/1.004, allocations: 169.6 kB / 0.5989 GB, free: 9.258 MB / 366.1 MB Notification: Performance of SimCode: time 1.753e-06/1.004, allocations: 0 / 0.5989 GB, free: 9.258 MB / 366.1 MB Notification: Performance of Templates: time 0.1515/1.156, allocations: 68.72 MB / 0.666 GB, free: 4.633 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)