Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1.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: "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_ShortCircuit1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_ShortCircuit1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007498/0.007498, allocations: 101 kB / 15.73 MB, free: 6.059 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.434/1.434, allocations: 222.9 MB / 239.4 MB, free: 4.543 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.001421/0.001421, allocations: 188.4 kB / 289.7 MB, free: 2.258 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03587/0.03587, allocations: 8.794 MB / 348.7 MB, free: 4.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002295/0.002295, allocations: 83.86 kB / 463.5 MB, free: 13.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.106, allocations: 51.57 MB / 0.503 GB, free: 10.03 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_ShortCircuit1): time 0.01973/0.1258, allocations: 15.92 MB / 0.5185 GB, free: 10.03 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01141/0.1373, allocations: 5.305 MB / 0.5237 GB, free: 4.711 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002789/0.1401, allocations: 99.62 kB / 0.5238 GB, free: 4.613 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00395/0.1441, allocations: 1.215 MB / 0.525 GB, free: 3.387 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.005463/0.1496, allocations: 1.518 MB / 0.5265 GB, free: 1.859 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003039/0.1527, allocations: 0.9948 MB / 0.5275 GB, free: 0.8672 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.2169/0.3696, allocations: 4.582 MB / 0.5319 GB, free: 5.637 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005016/0.3747, allocations: 3.486 MB / 0.5353 GB, free: 5.035 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004/0.3787, allocations: 2.049 MB / 0.5373 GB, free: 4.793 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005414/0.3842, allocations: 2.325 MB / 0.5396 GB, free: 4.375 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002262/0.3865, allocations: 0.5599 MB / 0.5402 GB, free: 4.375 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004232/0.3907, allocations: 0.7697 MB / 0.5409 GB, free: 4.375 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00273/0.3935, allocations: 1.24 MB / 0.5421 GB, free: 4.227 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006609/0.4001, allocations: 2.378 MB / 0.5444 GB, free: 3.641 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01233/0.4125, allocations: 7.341 MB / 0.5516 GB, free: 2.82 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.363e-06/0.4126, allocations: 0 / 0.5516 GB, free: 2.82 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.4126, allocations: 1.125 kB / 0.5516 GB, free: 2.82 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002666/0.4128, allocations: 0 / 0.5516 GB, free: 2.82 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.01724/0.4301, allocations: 4.939 MB / 0.5564 GB, free: 15.96 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.406e-05/0.4302, allocations: 10.28 kB / 0.5564 GB, free: 15.96 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001883/0.4321, allocations: 0.5523 MB / 0.557 GB, free: 15.57 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005931/0.438, allocations: 0.9678 MB / 0.5579 GB, free: 15.1 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007257/0.4453, allocations: 2.746 MB / 0.5606 GB, free: 13.23 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000279/0.4456, allocations: 283.5 kB / 0.5609 GB, free: 13.11 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001333/0.447, allocations: 363 kB / 0.5612 GB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01152/0.4585, allocations: 4.673 MB / 0.5658 GB, free: 10.24 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001083/0.4587, allocations: 13.77 kB / 0.5658 GB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005638/0.4592, allocations: 150.7 kB / 0.566 GB, free: 10.11 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001547/0.4594, allocations: 151.3 kB / 0.5661 GB, free: 10.1 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008259/0.4677, allocations: 3.896 MB / 0.5699 GB, free: 7.527 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03112/0.4988, allocations: 15.21 MB / 0.5848 GB, free: 8.195 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007054/0.5059, allocations: 5.93 MB / 0.5905 GB, free: 1.508 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002703/0.5087, allocations: 1.266 MB / 0.5918 GB, free: 248 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009165/0.5179, allocations: 4.124 MB / 0.5958 GB, free: 11.96 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.153e-05/0.518, allocations: 59.3 kB / 0.5959 GB, free: 11.9 MB / 414.1 MB Notification: Performance of pre-optimization done (n=118): time 3.707e-06/0.518, allocations: 0 / 0.5959 GB, free: 11.9 MB / 414.1 MB Notification: Performance of matching and sorting (n=144): time 0.01292/0.5309, allocations: 5.306 MB / 0.601 GB, free: 6.559 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.67e-05/0.531, allocations: 68.72 kB / 0.6011 GB, free: 6.477 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003551/0.5345, allocations: 2.145 MB / 0.6032 GB, free: 4.297 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001343/0.5347, allocations: 49.7 kB / 0.6033 GB, free: 4.242 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001407/0.5361, allocations: 1.791 MB / 0.605 GB, free: 2.445 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00047/0.5366, allocations: 0.5128 MB / 0.6055 GB, free: 1.938 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006557/0.5372, allocations: 412 kB / 0.6059 GB, free: 1.527 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001299/0.5374, allocations: 313.1 kB / 0.6062 GB, free: 1.219 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001286/0.5387, allocations: 0.7618 MB / 0.6069 GB, free: 464 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001946/0.5406, allocations: 1.547 MB / 0.6085 GB, free: 14.56 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01366/0.5543, allocations: 4.73 MB / 0.6131 GB, free: 9.574 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.499e-05/0.5544, allocations: 8 kB / 0.6131 GB, free: 9.566 MB / 430.1 MB Notification: Performance of matching and sorting (n=282) (initialization): time 0.005242/0.5596, allocations: 2.794 MB / 0.6158 GB, free: 6.918 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.517e-05/0.5597, allocations: 16 kB / 0.6158 GB, free: 6.902 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.733e-05/0.5597, allocations: 27.98 kB / 0.6158 GB, free: 6.875 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007987/0.5605, allocations: 274.9 kB / 0.6161 GB, free: 6.602 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001763/0.5623, allocations: 497.7 kB / 0.6166 GB, free: 6.152 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004358/0.5667, allocations: 3.392 MB / 0.6199 GB, free: 2.652 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002127/0.5689, allocations: 99.81 kB / 0.62 GB, free: 2.555 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002614/0.5691, allocations: 104 kB / 0.6201 GB, free: 2.453 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[2] = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 114 * 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 (261): * Single equations (assignments): 259 * 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 {(2,19,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002335/0.5715, allocations: 1.09 MB / 0.6212 GB, free: 1.387 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005685/0.5721, allocations: 234.5 kB / 0.6214 GB, free: 1.156 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003456/0.5755, allocations: 1.761 MB / 0.6231 GB, free: 15.39 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.691e-05/0.5756, allocations: 15.98 kB / 0.6231 GB, free: 15.37 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/0.5756, allocations: 8 kB / 0.6231 GB, free: 15.36 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.467e-05/0.5756, allocations: 3.984 kB / 0.6231 GB, free: 15.36 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009489/0.5851, allocations: 4.977 MB / 0.628 GB, free: 10.34 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.995e-06/0.5851, allocations: 0 / 0.628 GB, free: 10.34 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001191/0.5863, allocations: 270.3 kB / 0.6282 GB, free: 10.09 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006739/0.587, allocations: 215.6 kB / 0.6284 GB, free: 9.879 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001234/0.5872, allocations: 39.98 kB / 0.6285 GB, free: 9.84 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004084/0.5913, allocations: 3.26 MB / 0.6317 GB, free: 6.461 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.422e-06/0.5913, allocations: 4 kB / 0.6317 GB, free: 6.457 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004732/0.596, allocations: 2.675 MB / 0.6343 GB, free: 3.746 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001313/0.5974, allocations: 463.5 kB / 0.6347 GB, free: 3.273 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000458/0.5978, allocations: 28 kB / 0.6348 GB, free: 3.246 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001156/0.599, allocations: 59.91 kB / 0.6348 GB, free: 3.188 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002614/0.5993, allocations: 101.2 kB / 0.6349 GB, free: 3.09 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001061/0.5994, allocations: 39.98 kB / 0.6349 GB, free: 3.051 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002654/0.6021, allocations: 1.439 MB / 0.6364 GB, free: 1.594 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.6021, allocations: 0 / 0.6364 GB, free: 1.594 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002968/0.6051, allocations: 0.6289 MB / 0.637 GB, free: 0.9648 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 5 (smee.phiMechanical,smee.stator.zeroInductor.i0,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 (125): * Single equations (assignments): 124 * 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 {(2,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005295/0.6104, allocations: 3.284 MB / 0.6402 GB, free: 13.65 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004074/0.6145, allocations: 2.154 MB / 0.6423 GB, free: 11.55 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.133e-06/0.6145, allocations: 0.875 kB / 0.6423 GB, free: 11.55 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001754/0.6163, allocations: 0.9556 MB / 0.6432 GB, free: 10.61 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003556/0.6199, allocations: 0.5872 MB / 0.6438 GB, free: 10.02 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04089/0.6608, allocations: 21.8 MB / 0.6651 GB, free: 3.379 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002685/0.6635, allocations: 2.423 MB / 0.6674 GB, free: 0.9258 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001832/0.6654, allocations: 0.4957 MB / 0.6679 GB, free: 436 kB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001936/0.6674, allocations: 1.329 MB / 0.6692 GB, free: 15.1 MB / 494.1 MB Notification: Performance of SimCode: time 8.42e-07/0.6674, allocations: 4 kB / 0.6692 GB, free: 15.1 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1307/0.7981, allocations: 55.23 MB / 0.7232 GB, free: 8.344 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.55/14.35, allocations: 8.062 kB / 0.7232 GB, free: 8.336 MB / 0.5294 GB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit1_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-08 HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit1.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1.pipe 2>&1)