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: "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_ShortCircuit2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_ShortCircuit2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit2",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.007883/0.007883, allocations: 101.9 kB / 15.74 MB, free: 6.027 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.425/1.425, allocations: 222.9 MB / 239.4 MB, free: 4.523 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.001496/0.001495, allocations: 188.5 kB / 289.7 MB, free: 2.25 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03479/0.03479, allocations: 8.812 MB / 348.7 MB, free: 4.605 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002723/0.002723, allocations: 75.89 kB / 463.5 MB, free: 13.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1157/0.1184, allocations: 51.57 MB / 0.503 GB, free: 9.91 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_ShortCircuit2): time 0.01673/0.1352, allocations: 15.92 MB / 0.5185 GB, free: 9.91 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009454/0.1448, allocations: 5.301 MB / 0.5237 GB, free: 4.594 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002446/0.1473, allocations: 99.62 kB / 0.5238 GB, free: 4.496 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003892/0.1512, allocations: 1.254 MB / 0.525 GB, free: 3.23 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.005458/0.1566, allocations: 1.565 MB / 0.5266 GB, free: 1.656 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002855/0.1595, allocations: 0.995 MB / 0.5275 GB, free: 0.6641 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.2212/0.3808, allocations: 4.58 MB / 0.532 GB, free: 5.699 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004796/0.3856, allocations: 3.485 MB / 0.5354 GB, free: 5.109 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003289/0.3889, allocations: 2.063 MB / 0.5374 GB, free: 4.863 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003634/0.3926, allocations: 2.325 MB / 0.5397 GB, free: 4.445 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001214/0.3938, allocations: 0.5606 MB / 0.5402 GB, free: 4.445 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001994/0.3958, allocations: 0.7722 MB / 0.541 GB, free: 4.445 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001092/0.3969, allocations: 1.24 MB / 0.5422 GB, free: 4.293 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003786/0.4007, allocations: 2.377 MB / 0.5445 GB, free: 3.711 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008419/0.4092, allocations: 7.339 MB / 0.5517 GB, free: 2.863 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.4092, allocations: 0 / 0.5517 GB, free: 2.863 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.4092, allocations: 0 / 0.5517 GB, free: 2.863 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001674/0.4094, allocations: 1.219 kB / 0.5517 GB, free: 2.863 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.0137/0.4231, allocations: 4.93 MB / 0.5565 GB, free: 15.92 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.361e-05/0.4232, allocations: 13.25 kB / 0.5565 GB, free: 15.92 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001466/0.4246, allocations: 0.5586 MB / 0.5571 GB, free: 15.53 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005682/0.4303, allocations: 0.9563 MB / 0.558 GB, free: 15.07 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006661/0.437, allocations: 2.759 MB / 0.5607 GB, free: 13.19 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002599/0.4373, allocations: 280.6 kB / 0.561 GB, free: 13.07 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001021/0.4383, allocations: 362.7 kB / 0.5613 GB, free: 12.95 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01098/0.4493, allocations: 4.685 MB / 0.5659 GB, free: 10.18 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001045/0.4495, allocations: 12.06 kB / 0.5659 GB, free: 10.18 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004538/0.4499, allocations: 158.1 kB / 0.566 GB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001261/0.4501, allocations: 153.6 kB / 0.5662 GB, free: 10.04 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007845/0.4579, allocations: 3.899 MB / 0.57 GB, free: 7.336 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02852/0.4865, allocations: 15.34 MB / 0.585 GB, free: 7.855 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006035/0.4926, allocations: 6.135 MB / 0.591 GB, free: 0.957 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002686/0.4953, allocations: 1.44 MB / 0.5924 GB, free: 15.52 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007591/0.5029, allocations: 4.245 MB / 0.5965 GB, free: 11.14 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.141e-05/0.503, allocations: 47.56 kB / 0.5966 GB, free: 11.08 MB / 414.1 MB Notification: Performance of pre-optimization done (n=125): time 3.296e-06/0.503, allocations: 0 / 0.5966 GB, free: 11.08 MB / 414.1 MB Notification: Performance of matching and sorting (n=156): time 0.01429/0.5173, allocations: 6.167 MB / 0.6026 GB, free: 4.867 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.857e-05/0.5174, allocations: 68.72 kB / 0.6027 GB, free: 4.785 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004088/0.5215, allocations: 2.073 MB / 0.6047 GB, free: 2.676 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002083/0.5217, allocations: 57.7 kB / 0.6047 GB, free: 2.613 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001505/0.5233, allocations: 1.742 MB / 0.6064 GB, free: 0.8633 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006534/0.5239, allocations: 0.5597 MB / 0.607 GB, free: 320 kB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007347/0.5247, allocations: 415.7 kB / 0.6074 GB, free: 15.9 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.311e-05/0.5248, allocations: 301.1 kB / 0.6077 GB, free: 15.61 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00129/0.5261, allocations: 0.7852 MB / 0.6084 GB, free: 14.82 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001971/0.5281, allocations: 1.543 MB / 0.6099 GB, free: 12.93 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0132/0.5413, allocations: 4.784 MB / 0.6146 GB, free: 7.891 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.005e-05/0.5413, allocations: 8 kB / 0.6146 GB, free: 7.883 MB / 430.1 MB Notification: Performance of matching and sorting (n=283) (initialization): time 0.005407/0.5467, allocations: 2.881 MB / 0.6174 GB, free: 5.148 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.332e-05/0.5468, allocations: 19.98 kB / 0.6175 GB, free: 5.129 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.099e-05/0.5468, allocations: 24 kB / 0.6175 GB, free: 5.105 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009149/0.5478, allocations: 357.5 kB / 0.6178 GB, free: 4.754 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001687/0.5495, allocations: 489.2 kB / 0.6183 GB, free: 4.309 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004945/0.5544, allocations: 4.088 MB / 0.6223 GB, free: 108 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001924/0.5564, allocations: 99.8 kB / 0.6224 GB, free: 8 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002457/0.5566, allocations: 101.1 kB / 0.6225 GB, free: 15.91 MB / 446.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.002037/0.5587, allocations: 1.093 MB / 0.6235 GB, free: 14.84 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005326/0.5592, allocations: 242.5 kB / 0.6238 GB, free: 14.6 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003684/0.5629, allocations: 1.968 MB / 0.6257 GB, free: 12.63 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.205e-05/0.563, allocations: 16 kB / 0.6257 GB, free: 12.62 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.302e-05/0.563, allocations: 7.938 kB / 0.6257 GB, free: 12.61 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.701e-05/0.563, allocations: 11.97 kB / 0.6257 GB, free: 12.6 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01048/0.5735, allocations: 5.45 MB / 0.631 GB, free: 7.102 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.033e-05/0.5735, allocations: 0 / 0.631 GB, free: 7.102 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001189/0.5747, allocations: 270.5 kB / 0.6313 GB, free: 6.848 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008762/0.5756, allocations: 287.6 kB / 0.6316 GB, free: 6.57 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001369/0.5758, allocations: 39.98 kB / 0.6316 GB, free: 6.531 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004912/0.5807, allocations: 3.84 MB / 0.6354 GB, free: 2.566 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.861e-06/0.5807, allocations: 4 kB / 0.6354 GB, free: 2.562 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004919/0.5857, allocations: 2.936 MB / 0.6382 GB, free: 15.59 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001384/0.5871, allocations: 479.1 kB / 0.6387 GB, free: 15.11 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006777/0.5878, allocations: 40 kB / 0.6387 GB, free: 15.07 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001493/0.5893, allocations: 55.97 kB / 0.6388 GB, free: 15.01 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002732/0.5896, allocations: 105.1 kB / 0.6389 GB, free: 14.91 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001306/0.5897, allocations: 51.98 kB / 0.6389 GB, free: 14.86 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002758/0.5925, allocations: 1.387 MB / 0.6403 GB, free: 13.45 MB / 462.1 MB Notification: Performance of sort global known variables: time 3e-07/0.5925, allocations: 0 / 0.6403 GB, free: 13.45 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002914/0.5954, allocations: 0.6367 MB / 0.6409 GB, free: 12.82 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.005482/0.6009, allocations: 3.561 MB / 0.6444 GB, free: 9.227 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004027/0.605, allocations: 2.284 MB / 0.6466 GB, free: 7 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.199e-05/0.605, allocations: 8 kB / 0.6466 GB, free: 6.992 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002074/0.6071, allocations: 1.08 MB / 0.6477 GB, free: 5.93 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003853/0.611, allocations: 0.5732 MB / 0.6482 GB, free: 5.355 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04357/0.6546, allocations: 22.16 MB / 0.6699 GB, free: 14.32 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004111/0.6587, allocations: 2.431 MB / 0.6723 GB, free: 11.86 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.002819/0.6616, allocations: 0.5036 MB / 0.6728 GB, free: 11.35 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003136/0.6648, allocations: 1.323 MB / 0.674 GB, free: 10.02 MB / 494.1 MB Notification: Performance of SimCode: time 8.92e-07/0.6648, allocations: 0 / 0.674 GB, free: 10.02 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1041/0.7689, allocations: 56.41 MB / 0.7291 GB, free: 2.047 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.05/15.82, allocations: 6.734 kB / 0.7291 GB, free: 2.043 MB / 0.5294 GB (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 & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2_res.csv --start-time 0 --stop-time 0.5 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0001 HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit2.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit2.pipe 2>&1)