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.001092/0.001092, allocations: 106.6 kB / 16.41 MB, free: 6.508 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.39/1.39, allocations: 222.9 MB / 240.1 MB, free: 4.562 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.001653/0.001653, allocations: 192.5 kB / 290.4 MB, free: 2.277 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03457/0.03457, allocations: 8.791 MB / 349.3 MB, free: 4.648 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001641/0.001641, allocations: 75.88 kB / 464.7 MB, free: 13.06 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1087, allocations: 51.56 MB / 0.5041 GB, free: 9.469 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_ShortCircuit2): time 0.01868/0.1275, allocations: 15.92 MB / 0.5197 GB, free: 9.469 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01135/0.1389, allocations: 5.305 MB / 0.5249 GB, free: 4.148 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003345/0.1423, allocations: 95.69 kB / 0.5249 GB, free: 4.055 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004286/0.1466, allocations: 1.211 MB / 0.5261 GB, free: 2.832 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.005835/0.1525, allocations: 1.537 MB / 0.5276 GB, free: 1.285 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003166/0.1557, allocations: 0.9794 MB / 0.5286 GB, free: 316 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.2452/0.4009, allocations: 4.584 MB / 0.5331 GB, free: 6.242 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005609/0.4066, allocations: 3.485 MB / 0.5365 GB, free: 5.656 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004985/0.4116, allocations: 2.062 MB / 0.5385 GB, free: 5.395 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004314/0.416, allocations: 2.332 MB / 0.5408 GB, free: 4.973 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001334/0.4173, allocations: 0.5592 MB / 0.5413 GB, free: 4.973 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002503/0.4198, allocations: 0.7708 MB / 0.5421 GB, free: 4.973 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001384/0.4212, allocations: 1.241 MB / 0.5433 GB, free: 4.824 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005163/0.4264, allocations: 2.369 MB / 0.5456 GB, free: 4.242 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01167/0.4381, allocations: 7.316 MB / 0.5527 GB, free: 3.25 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.925e-06/0.4382, allocations: 1.094 kB / 0.5527 GB, free: 3.25 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.4382, allocations: 0 / 0.5527 GB, free: 3.25 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002265/0.4384, allocations: 0 / 0.5527 GB, free: 3.25 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.01653/0.4549, allocations: 4.836 MB / 0.5575 GB, free: 312 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.576e-05/0.455, allocations: 10.16 kB / 0.5575 GB, free: 312 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00586/0.4609, allocations: 0.9382 MB / 0.5584 GB, free: 15.87 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007221/0.4681, allocations: 2.746 MB / 0.5611 GB, free: 14 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002381/0.4684, allocations: 275.9 kB / 0.5613 GB, free: 13.88 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001335/0.4698, allocations: 374.6 kB / 0.5617 GB, free: 13.75 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01287/0.4826, allocations: 4.679 MB / 0.5663 GB, free: 10.98 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001065/0.4828, allocations: 5.312 kB / 0.5663 GB, free: 10.98 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006468/0.4834, allocations: 149.5 kB / 0.5664 GB, free: 10.87 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000155/0.4836, allocations: 153.5 kB / 0.5665 GB, free: 10.85 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009235/0.4928, allocations: 3.9 MB / 0.5704 GB, free: 8.031 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03298/0.5259, allocations: 15.3 MB / 0.5853 GB, free: 8.594 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006796/0.5327, allocations: 6.131 MB / 0.5913 GB, free: 1.695 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002905/0.5356, allocations: 1.444 MB / 0.5927 GB, free: 256 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008934/0.5446, allocations: 4.232 MB / 0.5968 GB, free: 11.88 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.34e-05/0.5447, allocations: 47.56 kB / 0.5969 GB, free: 11.82 MB / 414.1 MB Notification: Performance of pre-optimization done (n=125): time 3.737e-06/0.5447, allocations: 0 / 0.5969 GB, free: 11.82 MB / 414.1 MB Notification: Performance of matching and sorting (n=156): time 0.01454/0.5592, allocations: 6.126 MB / 0.6029 GB, free: 5.645 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.969e-05/0.5593, allocations: 64.72 kB / 0.6029 GB, free: 5.566 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00439/0.5637, allocations: 2.061 MB / 0.6049 GB, free: 3.469 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002443/0.564, allocations: 53.7 kB / 0.605 GB, free: 3.41 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001327/0.5654, allocations: 1.7 MB / 0.6066 GB, free: 1.695 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006048/0.566, allocations: 0.5326 MB / 0.6072 GB, free: 1.168 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007661/0.5667, allocations: 407.8 kB / 0.6075 GB, free: 0.7617 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.781e-05/0.5669, allocations: 305.1 kB / 0.6078 GB, free: 472 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001398/0.5683, allocations: 0.7772 MB / 0.6086 GB, free: 15.68 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001898/0.5702, allocations: 1.542 MB / 0.6101 GB, free: 13.8 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01334/0.5835, allocations: 4.798 MB / 0.6148 GB, free: 8.75 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.69e-05/0.5836, allocations: 8 kB / 0.6148 GB, free: 8.742 MB / 430.1 MB Notification: Performance of matching and sorting (n=283) (initialization): time 0.005746/0.5894, allocations: 2.879 MB / 0.6176 GB, free: 6.008 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.195e-05/0.5894, allocations: 16 kB / 0.6176 GB, free: 5.992 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.623e-05/0.5895, allocations: 24 kB / 0.6176 GB, free: 5.969 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000996/0.5905, allocations: 361.8 kB / 0.618 GB, free: 5.613 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001769/0.5923, allocations: 487.6 kB / 0.6185 GB, free: 5.172 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005116/0.5974, allocations: 4.089 MB / 0.6224 GB, free: 0.9648 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002071/0.5995, allocations: 91.8 kB / 0.6225 GB, free: 0.875 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002831/0.5998, allocations: 99.98 kB / 0.6226 GB, free: 0.7773 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.002344/0.6021, allocations: 1.101 MB / 0.6237 GB, free: 15.7 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006486/0.6028, allocations: 225.3 kB / 0.6239 GB, free: 15.48 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003846/0.6067, allocations: 1.984 MB / 0.6259 GB, free: 13.5 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.596e-05/0.6067, allocations: 20 kB / 0.6259 GB, free: 13.48 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.201e-05/0.6067, allocations: 4 kB / 0.6259 GB, free: 13.47 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.327e-05/0.6067, allocations: 11.91 kB / 0.6259 GB, free: 13.46 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01083/0.6176, allocations: 5.434 MB / 0.6312 GB, free: 7.969 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.666e-06/0.6176, allocations: 0 / 0.6312 GB, free: 7.969 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001129/0.6188, allocations: 270.1 kB / 0.6315 GB, free: 7.719 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007976/0.6196, allocations: 284.9 kB / 0.6317 GB, free: 7.438 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000141/0.6197, allocations: 39.98 kB / 0.6318 GB, free: 7.398 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004736/0.6245, allocations: 3.831 MB / 0.6355 GB, free: 3.441 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.404e-06/0.6245, allocations: 15.44 kB / 0.6355 GB, free: 3.43 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004818/0.6293, allocations: 2.925 MB / 0.6384 GB, free: 476 kB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001435/0.6308, allocations: 466.2 kB / 0.6388 GB, free: 15.98 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007743/0.6316, allocations: 39.94 kB / 0.6389 GB, free: 15.95 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001562/0.6331, allocations: 55.97 kB / 0.6389 GB, free: 15.89 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002575/0.6334, allocations: 108.8 kB / 0.639 GB, free: 15.79 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001156/0.6335, allocations: 47.98 kB / 0.6391 GB, free: 15.75 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002684/0.6362, allocations: 1.387 MB / 0.6404 GB, free: 14.34 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6362, allocations: 0 / 0.6404 GB, free: 14.34 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002948/0.6392, allocations: 0.6406 MB / 0.641 GB, free: 13.7 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.0003661/0.6396, allocations: 170.2 kB / 0.6412 GB, free: 13.54 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00368/0.6433, allocations: 2.293 MB / 0.6434 GB, free: 11.27 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.65e-06/0.6433, allocations: 0 / 0.6434 GB, free: 11.27 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001712/0.645, allocations: 1.083 MB / 0.6445 GB, free: 10.18 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002932/0.6479, allocations: 0.5673 MB / 0.6451 GB, free: 9.613 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01126/0.6592, allocations: 6.085 MB / 0.651 GB, free: 3.469 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002251/0.6615, allocations: 2.379 MB / 0.6533 GB, free: 1.062 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007264/0.6623, allocations: 167.4 kB / 0.6535 GB, free: 0.8984 MB / 462.1 MB Notification: Performance of SimCode: time 9.82e-07/0.6623, allocations: 0 / 0.6535 GB, free: 0.8984 MB / 462.1 MB Notification: Performance of Templates: time 0.08761/0.7499, allocations: 69 MB / 0.7209 GB, free: 12.03 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)