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.00625/0.006251, allocations: 96.7 kB / 15.73 MB, free: 6.055 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.454/1.454, allocations: 222.9 MB / 239.4 MB, free: 4.516 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.001517/0.001517, allocations: 196.5 kB / 289.7 MB, free: 2.238 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03744/0.03744, allocations: 8.798 MB / 348.7 MB, free: 4.605 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002275/0.002275, allocations: 79.88 kB / 463.5 MB, free: 13.51 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09815/0.1004, allocations: 51.56 MB / 0.503 GB, free: 9.91 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_ShortCircuit1): time 0.01972/0.1202, allocations: 15.93 MB / 0.5185 GB, free: 9.906 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01048/0.1307, allocations: 5.297 MB / 0.5237 GB, free: 4.594 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002449/0.1332, allocations: 95.69 kB / 0.5238 GB, free: 4.5 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003751/0.137, allocations: 1.219 MB / 0.525 GB, free: 3.27 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.005049/0.1421, allocations: 1.533 MB / 0.5265 GB, free: 1.73 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002818/0.1449, allocations: 0.9782 MB / 0.5275 GB, free: 0.75 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.2255/0.3704, allocations: 4.596 MB / 0.5319 GB, free: 5.648 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004899/0.3753, allocations: 3.479 MB / 0.5353 GB, free: 5.055 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003962/0.3793, allocations: 2.045 MB / 0.5373 GB, free: 4.805 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004427/0.3838, allocations: 2.33 MB / 0.5396 GB, free: 4.387 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001843/0.3857, allocations: 0.5596 MB / 0.5402 GB, free: 4.387 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002704/0.3884, allocations: 0.7692 MB / 0.5409 GB, free: 4.387 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001531/0.3899, allocations: 1.238 MB / 0.5421 GB, free: 4.238 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004654/0.3946, allocations: 2.376 MB / 0.5444 GB, free: 3.656 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01019/0.4048, allocations: 7.343 MB / 0.5516 GB, free: 2.82 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.763e-06/0.4049, allocations: 0 / 0.5516 GB, free: 2.82 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.4049, allocations: 6.062 kB / 0.5516 GB, free: 2.816 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002318/0.4051, allocations: 1.125 kB / 0.5516 GB, free: 2.816 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.01621/0.4213, allocations: 4.941 MB / 0.5564 GB, free: 15.95 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.531e-05/0.4214, allocations: 13.17 kB / 0.5565 GB, free: 15.95 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001713/0.4231, allocations: 0.5475 MB / 0.557 GB, free: 15.56 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005925/0.4291, allocations: 0.9647 MB / 0.5579 GB, free: 15.1 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007023/0.4361, allocations: 2.753 MB / 0.5606 GB, free: 13.23 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002432/0.4364, allocations: 277.2 kB / 0.5609 GB, free: 13.1 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001264/0.4377, allocations: 364.8 kB / 0.5612 GB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01147/0.4492, allocations: 4.677 MB / 0.5658 GB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001083/0.4493, allocations: 9.234 kB / 0.5658 GB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000523/0.4498, allocations: 147.1 kB / 0.566 GB, free: 10.11 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001303/0.45, allocations: 155.8 kB / 0.5661 GB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007939/0.4579, allocations: 3.902 MB / 0.5699 GB, free: 7.43 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02691/0.4849, allocations: 15.19 MB / 0.5847 GB, free: 8.117 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006472/0.4914, allocations: 5.943 MB / 0.5906 GB, free: 1.422 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002438/0.4938, allocations: 1.265 MB / 0.5918 GB, free: 160 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007805/0.5017, allocations: 4.137 MB / 0.5958 GB, free: 11.87 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.217e-05/0.5018, allocations: 43.56 kB / 0.5959 GB, free: 11.82 MB / 414.1 MB Notification: Performance of pre-optimization done (n=118): time 3.536e-06/0.5018, allocations: 0 / 0.5959 GB, free: 11.82 MB / 414.1 MB Notification: Performance of matching and sorting (n=144): time 0.0133/0.5151, allocations: 5.312 MB / 0.6011 GB, free: 6.469 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.284e-05/0.5152, allocations: 68.72 kB / 0.6011 GB, free: 6.387 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004243/0.5195, allocations: 2.145 MB / 0.6032 GB, free: 4.207 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003448/0.5199, allocations: 53.7 kB / 0.6033 GB, free: 4.148 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001755/0.5216, allocations: 1.793 MB / 0.605 GB, free: 2.352 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006546/0.5223, allocations: 0.5146 MB / 0.6055 GB, free: 1.844 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007321/0.523, allocations: 412 kB / 0.6059 GB, free: 1.434 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001295/0.5232, allocations: 309 kB / 0.6062 GB, free: 1.129 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001368/0.5246, allocations: 0.7579 MB / 0.6069 GB, free: 376 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002131/0.5267, allocations: 1.544 MB / 0.6085 GB, free: 14.48 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0144/0.5411, allocations: 4.724 MB / 0.6131 GB, free: 9.488 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.181e-05/0.5412, allocations: 13.97 kB / 0.6131 GB, free: 9.477 MB / 430.1 MB Notification: Performance of matching and sorting (n=282) (initialization): time 0.005834/0.5471, allocations: 2.791 MB / 0.6158 GB, free: 6.832 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.804e-05/0.5471, allocations: 19.98 kB / 0.6158 GB, free: 6.812 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.842e-05/0.5472, allocations: 24 kB / 0.6159 GB, free: 6.789 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008853/0.5481, allocations: 278.5 kB / 0.6161 GB, free: 6.512 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001835/0.5499, allocations: 491.8 kB / 0.6166 GB, free: 6.066 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004463/0.5544, allocations: 3.389 MB / 0.6199 GB, free: 2.566 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002047/0.5565, allocations: 103.9 kB / 0.62 GB, free: 2.465 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002848/0.5568, allocations: 104 kB / 0.6201 GB, free: 2.363 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.002464/0.5593, allocations: 1.083 MB / 0.6212 GB, free: 1.305 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006781/0.5599, allocations: 238.5 kB / 0.6214 GB, free: 1.07 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003768/0.5637, allocations: 1.763 MB / 0.6231 GB, free: 15.3 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.671e-05/0.5638, allocations: 19.94 kB / 0.6231 GB, free: 15.28 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.1e-05/0.5638, allocations: 4 kB / 0.6231 GB, free: 15.28 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.577e-05/0.5638, allocations: 7.969 kB / 0.6231 GB, free: 15.27 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01076/0.5746, allocations: 4.983 MB / 0.628 GB, free: 10.25 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.168e-05/0.5746, allocations: 4 kB / 0.628 GB, free: 10.24 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001168/0.5758, allocations: 262.1 kB / 0.6283 GB, free: 10 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006752/0.5765, allocations: 212.9 kB / 0.6285 GB, free: 9.789 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001265/0.5766, allocations: 31.98 kB / 0.6285 GB, free: 9.758 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004329/0.581, allocations: 3.261 MB / 0.6317 GB, free: 6.379 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.29e-06/0.581, allocations: 3.984 kB / 0.6317 GB, free: 6.375 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004781/0.5858, allocations: 2.678 MB / 0.6343 GB, free: 3.66 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00137/0.5872, allocations: 459.5 kB / 0.6347 GB, free: 3.191 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003619/0.5876, allocations: 36 kB / 0.6348 GB, free: 3.156 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001061/0.5886, allocations: 59.91 kB / 0.6348 GB, free: 3.098 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002569/0.5889, allocations: 93.17 kB / 0.6349 GB, free: 3.008 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.735e-05/0.589, allocations: 39.98 kB / 0.6349 GB, free: 2.969 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00275/0.5918, allocations: 1.443 MB / 0.6364 GB, free: 1.508 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.264e-06/0.5918, allocations: 0 / 0.6364 GB, free: 1.508 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002954/0.5948, allocations: 0.6322 MB / 0.637 GB, free: 0.8789 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.005234/0.6, allocations: 3.285 MB / 0.6402 GB, free: 13.57 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004117/0.6042, allocations: 2.155 MB / 0.6423 GB, free: 11.46 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.009e-06/0.6042, allocations: 0 / 0.6423 GB, free: 11.46 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001741/0.6059, allocations: 0.9599 MB / 0.6432 GB, free: 10.52 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003215/0.6092, allocations: 0.5674 MB / 0.6438 GB, free: 9.949 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04397/0.6532, allocations: 21.81 MB / 0.6651 GB, free: 3.297 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002508/0.6557, allocations: 2.415 MB / 0.6674 GB, free: 0.8516 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00172/0.6574, allocations: 0.5071 MB / 0.6679 GB, free: 352 kB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001906/0.6594, allocations: 1.333 MB / 0.6692 GB, free: 15.05 MB / 494.1 MB Notification: Performance of SimCode: time 5.11e-07/0.6594, allocations: 0 / 0.6692 GB, free: 15.05 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1123/0.7717, allocations: 55.24 MB / 0.7232 GB, free: 8.258 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.38/16.15, allocations: 11.88 kB / 0.7232 GB, free: 8.246 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 & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1_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_ShortCircuit1.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit1.pipe 2>&1)