Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit3.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_ShortCircuit3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_ShortCircuit3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_ShortCircuit3",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.008215/0.008216, allocations: 100.9 kB / 15.73 MB, free: 6.062 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.445/1.445, allocations: 222.9 MB / 239.4 MB, free: 4.359 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.001498/0.001499, allocations: 200.1 kB / 289.7 MB, free: 2.086 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03837/0.03837, allocations: 8.804 MB / 348.7 MB, free: 4.535 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002288/0.002288, allocations: 83.86 kB / 463.5 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.1091, allocations: 51.57 MB / 0.503 GB, free: 9.816 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_ShortCircuit3): time 0.01967/0.1288, allocations: 15.94 MB / 0.5186 GB, free: 9.805 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0114/0.1403, allocations: 5.294 MB / 0.5237 GB, free: 4.496 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003535/0.1439, allocations: 91.69 kB / 0.5238 GB, free: 4.406 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004517/0.1484, allocations: 1.219 MB / 0.525 GB, free: 3.176 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.00677/0.1552, allocations: 1.534 MB / 0.5265 GB, free: 1.633 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00347/0.1587, allocations: 0.982 MB / 0.5275 GB, free: 0.6523 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.2257/0.3845, allocations: 4.59 MB / 0.5319 GB, free: 5.656 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005799/0.3903, allocations: 3.491 MB / 0.5354 GB, free: 5.059 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004256/0.3946, allocations: 2.04 MB / 0.5373 GB, free: 4.809 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005541/0.4002, allocations: 2.334 MB / 0.5396 GB, free: 4.387 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002633/0.4029, allocations: 0.5594 MB / 0.5402 GB, free: 4.387 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004332/0.4072, allocations: 0.7711 MB / 0.5409 GB, free: 4.387 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003394/0.4107, allocations: 1.237 MB / 0.5421 GB, free: 4.238 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0076/0.4183, allocations: 2.375 MB / 0.5445 GB, free: 3.656 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01367/0.432, allocations: 7.343 MB / 0.5516 GB, free: 2.824 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.261e-06/0.432, allocations: 0 / 0.5516 GB, free: 2.824 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.432, allocations: 0 / 0.5516 GB, free: 2.824 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003085/0.4324, allocations: 1.094 kB / 0.5516 GB, free: 2.824 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.01961/0.452, allocations: 4.929 MB / 0.5564 GB, free: 15.84 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.413e-05/0.4521, allocations: 8.719 kB / 0.5564 GB, free: 15.84 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002857/0.4549, allocations: 0.558 MB / 0.557 GB, free: 15.45 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007395/0.4623, allocations: 0.9565 MB / 0.5579 GB, free: 15 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007864/0.4703, allocations: 2.759 MB / 0.5606 GB, free: 13.12 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002878/0.4706, allocations: 274 kB / 0.5609 GB, free: 13 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001421/0.472, allocations: 367.3 kB / 0.5612 GB, free: 12.88 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01339/0.4854, allocations: 4.688 MB / 0.5658 GB, free: 10.11 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001099/0.4856, allocations: 9.453 kB / 0.5658 GB, free: 10.11 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005968/0.4862, allocations: 147.7 kB / 0.566 GB, free: 9.992 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001704/0.4864, allocations: 158 kB / 0.5661 GB, free: 9.973 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008964/0.4953, allocations: 3.907 MB / 0.5699 GB, free: 7.262 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03197/0.5273, allocations: 15.37 MB / 0.5849 GB, free: 7.742 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00708/0.5345, allocations: 6.056 MB / 0.5909 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003001/0.5375, allocations: 1.383 MB / 0.5922 GB, free: 15.55 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008984/0.5465, allocations: 4.195 MB / 0.5963 GB, free: 11.23 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.31e-05/0.5466, allocations: 51.53 kB / 0.5963 GB, free: 11.18 MB / 414.1 MB Notification: Performance of pre-optimization done (n=133): time 4.258e-06/0.5467, allocations: 0 / 0.5963 GB, free: 11.18 MB / 414.1 MB Notification: Performance of matching and sorting (n=137): time 0.01159/0.5582, allocations: 5.191 MB / 0.6014 GB, free: 5.867 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.206e-05/0.5583, allocations: 64.72 kB / 0.6015 GB, free: 5.793 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003566/0.5619, allocations: 1.989 MB / 0.6034 GB, free: 3.766 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002246/0.5622, allocations: 53.17 kB / 0.6035 GB, free: 3.711 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001535/0.5637, allocations: 1.721 MB / 0.6052 GB, free: 1.984 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000577/0.5643, allocations: 0.4906 MB / 0.6056 GB, free: 1.5 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006086/0.5649, allocations: 367.3 kB / 0.606 GB, free: 1.137 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001345/0.5651, allocations: 305.1 kB / 0.6063 GB, free: 0.8359 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001195/0.5663, allocations: 0.6598 MB / 0.6069 GB, free: 180 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001784/0.5681, allocations: 1.381 MB / 0.6083 GB, free: 14.48 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003345/0.5714, allocations: 2.185 MB / 0.6104 GB, free: 12.06 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.862e-05/0.5715, allocations: 7.938 kB / 0.6104 GB, free: 12.05 MB / 430.1 MB Notification: Performance of matching and sorting (n=251) (initialization): time 0.00477/0.5762, allocations: 2.491 MB / 0.6128 GB, free: 9.676 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.045e-05/0.5763, allocations: 17.2 kB / 0.6129 GB, free: 9.66 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.028e-05/0.5764, allocations: 28 kB / 0.6129 GB, free: 9.633 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004046/0.5768, allocations: 145.5 kB / 0.613 GB, free: 9.488 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001659/0.5784, allocations: 455.8 kB / 0.6135 GB, free: 9.074 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002364/0.5808, allocations: 2.119 MB / 0.6155 GB, free: 6.844 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002058/0.5829, allocations: 83.89 kB / 0.6156 GB, free: 6.762 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001976/0.5831, allocations: 95.98 kB / 0.6157 GB, free: 6.668 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 106 * 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 (242): * Single equations (assignments): 240 * 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 {(1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002806/0.5859, allocations: 1.074 MB / 0.6167 GB, free: 5.617 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006605/0.5866, allocations: 222.6 kB / 0.617 GB, free: 5.398 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003922/0.5905, allocations: 2.007 MB / 0.6189 GB, free: 3.344 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-05/0.5906, allocations: 15.94 kB / 0.6189 GB, free: 3.328 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.251e-05/0.5906, allocations: 8 kB / 0.6189 GB, free: 3.32 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.56e-05/0.5906, allocations: 7.547 kB / 0.6189 GB, free: 3.316 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01003/0.6006, allocations: 4.917 MB / 0.6238 GB, free: 14.32 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.077e-05/0.6007, allocations: 4 kB / 0.6238 GB, free: 14.32 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009332/0.6016, allocations: 202.5 kB / 0.6239 GB, free: 14.13 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000933/0.6026, allocations: 328.2 kB / 0.6243 GB, free: 13.81 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001195/0.6027, allocations: 43.92 kB / 0.6243 GB, free: 13.77 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008019/0.6107, allocations: 7.084 MB / 0.6312 GB, free: 6.312 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.179e-06/0.6108, allocations: 7.219 kB / 0.6312 GB, free: 6.309 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005177/0.616, allocations: 2.899 MB / 0.6341 GB, free: 3.348 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001176/0.6172, allocations: 443.6 kB / 0.6345 GB, free: 2.895 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003505/0.6175, allocations: 32 kB / 0.6345 GB, free: 2.863 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009802/0.6185, allocations: 59.95 kB / 0.6346 GB, free: 2.805 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003255/0.6189, allocations: 108.2 kB / 0.6347 GB, free: 2.699 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.392e-05/0.619, allocations: 40 kB / 0.6347 GB, free: 2.66 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002358/0.6213, allocations: 1.335 MB / 0.636 GB, free: 1.305 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.6213, allocations: 4 kB / 0.636 GB, free: 1.301 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002541/0.6239, allocations: 0.6054 MB / 0.6366 GB, free: 0.6953 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (smee.phiMechanical,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].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 (106): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,8,100.0%), (1,8,100.0%), (2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005349/0.6293, allocations: 3.505 MB / 0.64 GB, free: 13.13 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003498/0.6328, allocations: 1.893 MB / 0.6419 GB, free: 11.28 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.073e-06/0.6328, allocations: 0 / 0.6419 GB, free: 11.28 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002184/0.635, allocations: 1.22 MB / 0.6431 GB, free: 10.05 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003638/0.6387, allocations: 0.567 MB / 0.6436 GB, free: 9.48 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04375/0.6825, allocations: 20.96 MB / 0.6641 GB, free: 3.691 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003589/0.6861, allocations: 2.398 MB / 0.6664 GB, free: 1.258 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002061/0.6882, allocations: 470.7 kB / 0.6669 GB, free: 0.793 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002601/0.6909, allocations: 1.307 MB / 0.6682 GB, free: 15.54 MB / 494.1 MB Notification: Performance of SimCode: time 1.202e-06/0.6909, allocations: 3.938 kB / 0.6682 GB, free: 15.54 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1305/0.8214, allocations: 54.91 MB / 0.7218 GB, free: 9.02 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.75/15.58, allocations: 11.83 kB / 0.7218 GB, free: 9.008 MB / 0.5294 GB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit3.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit3.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit3.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit3.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit3_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_ShortCircuit3.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_ShortCircuit3.pipe 2>&1)