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.007462/0.007462, allocations: 102.2 kB / 15.73 MB, free: 6.449 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.447/1.447, 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.001534/0.001534, allocations: 180.5 kB / 289.7 MB, free: 2.246 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03743/0.03743, allocations: 8.803 MB / 348.7 MB, free: 4.602 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002299/0.002299, allocations: 75.88 kB / 463.5 MB, free: 13.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.1032, allocations: 51.56 MB / 0.503 GB, free: 9.914 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_ShortCircuit2): time 0.02019/0.1234, allocations: 15.93 MB / 0.5185 GB, free: 9.906 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01093/0.1345, allocations: 5.294 MB / 0.5237 GB, free: 4.598 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002893/0.1374, allocations: 91.69 kB / 0.5238 GB, free: 4.508 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004145/0.1416, allocations: 1.219 MB / 0.525 GB, free: 3.277 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.005413/0.147, allocations: 1.53 MB / 0.5265 GB, free: 1.738 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002861/0.1499, allocations: 0.9835 MB / 0.5275 GB, free: 0.7578 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.1993/0.3492, allocations: 4.586 MB / 0.5319 GB, free: 5.645 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004237/0.3535, allocations: 3.491 MB / 0.5353 GB, free: 5.051 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003726/0.3573, allocations: 2.046 MB / 0.5373 GB, free: 4.801 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004352/0.3617, allocations: 2.327 MB / 0.5396 GB, free: 4.387 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001796/0.3635, allocations: 0.5599 MB / 0.5402 GB, free: 4.387 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002948/0.3665, allocations: 0.7709 MB / 0.5409 GB, free: 4.387 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002072/0.3686, allocations: 1.242 MB / 0.5421 GB, free: 4.234 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006011/0.3746, allocations: 2.375 MB / 0.5444 GB, free: 3.652 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01166/0.3863, allocations: 7.34 MB / 0.5516 GB, free: 2.832 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.865e-06/0.3863, allocations: 0 / 0.5516 GB, free: 2.832 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.3863, allocations: 0 / 0.5516 GB, free: 2.832 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002656/0.3866, allocations: 1.375 kB / 0.5516 GB, free: 2.832 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.01827/0.4049, allocations: 4.941 MB / 0.5564 GB, free: 15.95 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.098e-05/0.405, allocations: 8.75 kB / 0.5564 GB, free: 15.95 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002014/0.407, allocations: 0.5502 MB / 0.557 GB, free: 15.56 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006316/0.4133, allocations: 0.9646 MB / 0.5579 GB, free: 15.09 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00715/0.4205, allocations: 2.755 MB / 0.5606 GB, free: 13.22 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002479/0.4208, allocations: 275.5 kB / 0.5609 GB, free: 13.1 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001058/0.4219, allocations: 368.8 kB / 0.5612 GB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01039/0.4323, allocations: 4.694 MB / 0.5658 GB, free: 10.21 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001035/0.4324, allocations: 11.61 kB / 0.5658 GB, free: 10.2 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005294/0.4329, allocations: 148.7 kB / 0.566 GB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001425/0.4331, allocations: 156.6 kB / 0.5661 GB, free: 10.07 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008248/0.4413, allocations: 3.894 MB / 0.5699 GB, free: 7.426 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02904/0.4704, allocations: 15.34 MB / 0.5849 GB, free: 7.949 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00711/0.4776, allocations: 6.133 MB / 0.5909 GB, free: 1.047 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003133/0.4807, allocations: 1.448 MB / 0.5923 GB, free: 15.6 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008446/0.4892, allocations: 4.238 MB / 0.5964 GB, free: 11.22 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.356e-05/0.4893, allocations: 47.31 kB / 0.5965 GB, free: 11.17 MB / 414.1 MB Notification: Performance of pre-optimization done (n=125): time 3.547e-06/0.4893, allocations: 0 / 0.5965 GB, free: 11.17 MB / 414.1 MB Notification: Performance of matching and sorting (n=156): time 0.01592/0.5052, allocations: 6.173 MB / 0.6025 GB, free: 4.953 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.192e-05/0.5053, allocations: 72.72 kB / 0.6026 GB, free: 4.867 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003977/0.5093, allocations: 2.069 MB / 0.6046 GB, free: 2.762 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002426/0.5096, allocations: 53.7 kB / 0.6047 GB, free: 2.703 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001569/0.5112, allocations: 1.748 MB / 0.6064 GB, free: 0.9492 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000715/0.5119, allocations: 0.556 MB / 0.6069 GB, free: 408 kB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007692/0.5127, allocations: 408.7 kB / 0.6073 GB, free: 0 / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000164/0.5129, allocations: 309.1 kB / 0.6076 GB, free: 15.7 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001516/0.5144, allocations: 0.7735 MB / 0.6083 GB, free: 14.92 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002236/0.5167, allocations: 1.548 MB / 0.6099 GB, free: 13.03 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01512/0.5318, allocations: 4.791 MB / 0.6145 GB, free: 7.984 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.286e-05/0.5319, allocations: 4 kB / 0.6145 GB, free: 7.98 MB / 430.1 MB Notification: Performance of matching and sorting (n=283) (initialization): time 0.006249/0.5381, allocations: 2.885 MB / 0.6174 GB, free: 5.242 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.059e-05/0.5382, allocations: 16 kB / 0.6174 GB, free: 5.227 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.493e-05/0.5383, allocations: 24 kB / 0.6174 GB, free: 5.203 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001059/0.5393, allocations: 369.4 kB / 0.6177 GB, free: 4.84 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001918/0.5413, allocations: 486.2 kB / 0.6182 GB, free: 4.398 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005925/0.5472, allocations: 4.087 MB / 0.6222 GB, free: 200 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001989/0.5492, allocations: 99.91 kB / 0.6223 GB, free: 100 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002143/0.5495, allocations: 99.98 kB / 0.6224 GB, free: 0 / 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.002291/0.5518, allocations: 1.103 MB / 0.6235 GB, free: 14.93 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004661/0.5522, allocations: 234.5 kB / 0.6237 GB, free: 14.7 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003966/0.5562, allocations: 1.975 MB / 0.6256 GB, free: 12.72 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.607e-05/0.5562, allocations: 16 kB / 0.6256 GB, free: 12.7 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.633e-05/0.5563, allocations: 7.938 kB / 0.6256 GB, free: 12.7 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.899e-05/0.5563, allocations: 11.97 kB / 0.6257 GB, free: 12.68 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009978/0.5663, allocations: 5.429 MB / 0.631 GB, free: 7.199 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.055e-05/0.5663, allocations: 4 kB / 0.631 GB, free: 7.195 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001256/0.5676, allocations: 264.9 kB / 0.6312 GB, free: 6.949 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009038/0.5685, allocations: 288.8 kB / 0.6315 GB, free: 6.664 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001282/0.5686, allocations: 35.98 kB / 0.6315 GB, free: 6.629 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005396/0.574, allocations: 3.848 MB / 0.6353 GB, free: 2.656 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.5741, allocations: 0 / 0.6353 GB, free: 2.656 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005353/0.5794, allocations: 2.944 MB / 0.6382 GB, free: 15.68 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001213/0.5807, allocations: 475.5 kB / 0.6386 GB, free: 15.2 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003943/0.5811, allocations: 35.98 kB / 0.6386 GB, free: 15.16 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001101/0.5822, allocations: 55.97 kB / 0.6387 GB, free: 15.11 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002781/0.5825, allocations: 116.7 kB / 0.6388 GB, free: 15 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001093/0.5826, allocations: 39.98 kB / 0.6388 GB, free: 14.96 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002561/0.5852, allocations: 1.395 MB / 0.6402 GB, free: 13.54 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.5852, allocations: 0 / 0.6402 GB, free: 13.54 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002571/0.5878, allocations: 0.6445 MB / 0.6408 GB, free: 12.9 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.005873/0.5937, allocations: 3.549 MB / 0.6443 GB, free: 9.32 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004385/0.5981, allocations: 2.296 MB / 0.6465 GB, free: 7.082 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.504e-06/0.5981, allocations: 0 / 0.6465 GB, free: 7.082 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002238/0.6004, allocations: 1.088 MB / 0.6476 GB, free: 6.012 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003328/0.6037, allocations: 0.5645 MB / 0.6482 GB, free: 5.449 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04622/0.65, allocations: 22.16 MB / 0.6698 GB, free: 14.43 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003869/0.6539, allocations: 2.441 MB / 0.6722 GB, free: 11.96 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.00212/0.656, allocations: 0.4919 MB / 0.6727 GB, free: 11.46 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002812/0.6589, allocations: 1.331 MB / 0.674 GB, free: 10.13 MB / 494.1 MB Notification: Performance of SimCode: time 1.242e-06/0.6589, allocations: 4 kB / 0.674 GB, free: 10.12 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1232/0.7821, allocations: 56.41 MB / 0.7291 GB, free: 2.148 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.51/16.29, allocations: 10.55 kB / 0.7291 GB, free: 2.141 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)