Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00185/0.00185, allocations: 106.7 kB / 16.4 MB, free: 6.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.469/1.469, allocations: 222.9 MB / 242.1 MB, free: 15.23 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001507/0.001507, allocations: 190.8 kB / 294.4 MB, free: 12.68 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.04285/0.04285, allocations: 8.794 MB / 355.3 MB, free: 15.93 MB / 302.1 MB " [Timeout remaining time 180] 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.SMR_Inverter,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMR_Inverter,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002414/0.002414, allocations: 83.86 kB / 472.2 MB, free: 5.973 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2576/0.26, allocations: 51.55 MB / 0.5114 GB, free: 12.27 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_Inverter): time 0.01752/0.2776, allocations: 13.4 MB / 0.5245 GB, free: 15.72 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009494/0.2872, allocations: 4.426 MB / 0.5288 GB, free: 11.28 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002488/0.2897, allocations: 83.69 kB / 0.5289 GB, free: 11.2 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003403/0.2931, allocations: 1.037 MB / 0.5299 GB, free: 10.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004858/0.298, allocations: 1.288 MB / 0.5312 GB, free: 8.863 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/SynchronousMachines/SMR_Inverter.mo:88:3-88:33:writable] Warning: Conditional component 'ir' is used in a non-connect context. Notification: Performance of NFTyping.typeClassSections: time 0.002888/0.301, allocations: 0.8672 MB / 0.532 GB, free: 7.996 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006533/0.3075, allocations: 3.809 MB / 0.5358 GB, free: 4.176 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005144/0.3127, allocations: 3.343 MB / 0.539 GB, free: 0.7578 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003695/0.3164, allocations: 1.776 MB / 0.5408 GB, free: 14.97 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00455/0.321, allocations: 2 MB / 0.5427 GB, free: 12.96 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001794/0.3229, allocations: 496 kB / 0.5432 GB, free: 12.48 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002743/0.3257, allocations: 0.691 MB / 0.5439 GB, free: 11.79 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00176/0.3274, allocations: 1.071 MB / 0.5449 GB, free: 10.72 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003929/0.3314, allocations: 2.042 MB / 0.5469 GB, free: 8.668 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009366/0.3408, allocations: 6.424 MB / 0.5532 GB, free: 2.223 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.3409, allocations: 0 / 0.5532 GB, free: 2.223 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.3409, allocations: 0 / 0.5532 GB, free: 2.223 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002285/0.3411, allocations: 0 / 0.5532 GB, free: 2.223 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: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.01343/0.3545, allocations: 4.269 MB / 0.5573 GB, free: 13.88 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.294e-05/0.3546, allocations: 12.03 kB / 0.5573 GB, free: 13.87 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001298/0.3559, allocations: 485.6 kB / 0.5578 GB, free: 13.38 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004503/0.3604, allocations: 0.7716 MB / 0.5586 GB, free: 12.61 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005315/0.3658, allocations: 2.326 MB / 0.5608 GB, free: 10.22 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000279/0.3661, allocations: 242.7 kB / 0.5611 GB, free: 9.984 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00116/0.3673, allocations: 319.9 kB / 0.5614 GB, free: 9.672 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01066/0.378, allocations: 4.161 MB / 0.5654 GB, free: 5.461 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001026/0.3781, allocations: 7.953 kB / 0.5654 GB, free: 5.453 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006185/0.3787, allocations: 128 kB / 0.5656 GB, free: 5.328 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001679/0.3789, allocations: 150.3 kB / 0.5657 GB, free: 5.18 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008699/0.3876, allocations: 3.503 MB / 0.5691 GB, free: 1.668 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02456/0.4122, allocations: 13.08 MB / 0.5819 GB, free: 4.18 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00615/0.4184, allocations: 5.498 MB / 0.5873 GB, free: 13.94 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002036/0.4205, allocations: 1.06 MB / 0.5883 GB, free: 12.89 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00558/0.4261, allocations: 3.049 MB / 0.5913 GB, free: 9.754 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.874e-05/0.4262, allocations: 47.55 kB / 0.5913 GB, free: 9.695 MB / 414.1 MB Notification: Performance of pre-optimization done (n=107): time 3.296e-06/0.4262, allocations: 0 / 0.5913 GB, free: 9.695 MB / 414.1 MB Notification: Performance of matching and sorting (n=110): time 0.009899/0.4361, allocations: 4.653 MB / 0.5959 GB, free: 4.867 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.025e-05/0.4362, allocations: 64.41 kB / 0.5959 GB, free: 4.793 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002679/0.4389, allocations: 1.609 MB / 0.5975 GB, free: 3.176 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001712/0.4391, allocations: 45.7 kB / 0.5976 GB, free: 3.125 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001199/0.4403, allocations: 1.461 MB / 0.599 GB, free: 1.648 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004313/0.4407, allocations: 416.5 kB / 0.5994 GB, free: 1.238 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004641/0.4412, allocations: 283.4 kB / 0.5996 GB, free: 0.9531 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001221/0.4413, allocations: 301.1 kB / 0.5999 GB, free: 0.6562 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001066/0.4424, allocations: 0.57 MB / 0.6005 GB, free: 88 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00149/0.4439, allocations: 1.055 MB / 0.6015 GB, free: 14.81 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002752/0.4467, allocations: 1.729 MB / 0.6032 GB, free: 12.87 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.093e-05/0.4467, allocations: 4 kB / 0.6032 GB, free: 12.86 MB / 430.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.003819/0.4505, allocations: 2.047 MB / 0.6052 GB, free: 10.78 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.914e-05/0.4506, allocations: 16.03 kB / 0.6052 GB, free: 10.77 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.433e-05/0.4506, allocations: 12 kB / 0.6052 GB, free: 10.75 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004281/0.4511, allocations: 134.5 kB / 0.6054 GB, free: 10.61 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001439/0.4525, allocations: 363.4 kB / 0.6057 GB, free: 10.26 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00334/0.4559, allocations: 3.38 MB / 0.609 GB, free: 6.598 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00163/0.4575, allocations: 67.92 kB / 0.6091 GB, free: 6.531 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002078/0.4578, allocations: 67.98 kB / 0.6091 GB, free: 6.465 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 70 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (185): * Single equations (assignments): 182 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * 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): 2 systems {(1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002045/0.4598, allocations: 0.9657 MB / 0.6101 GB, free: 5.488 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004679/0.4603, allocations: 182.8 kB / 0.6103 GB, free: 5.309 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003681/0.464, allocations: 1.809 MB / 0.612 GB, free: 3.438 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.491e-05/0.464, allocations: 12 kB / 0.612 GB, free: 3.426 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.462e-05/0.4641, allocations: 4 kB / 0.612 GB, free: 3.422 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.926e-05/0.4641, allocations: 7.922 kB / 0.6121 GB, free: 3.414 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008215/0.4723, allocations: 4.342 MB / 0.6163 GB, free: 14.94 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.031e-05/0.4723, allocations: 0 / 0.6163 GB, free: 14.94 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009203/0.4733, allocations: 183.7 kB / 0.6165 GB, free: 14.76 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009473/0.4742, allocations: 303.2 kB / 0.6168 GB, free: 14.45 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000123/0.4744, allocations: 35.98 kB / 0.6168 GB, free: 14.42 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008813/0.4832, allocations: 8.204 MB / 0.6248 GB, free: 5.66 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.753e-06/0.4832, allocations: 3.938 kB / 0.6248 GB, free: 5.656 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004915/0.4882, allocations: 2.583 MB / 0.6273 GB, free: 2.988 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001119/0.4893, allocations: 375.8 kB / 0.6277 GB, free: 2.602 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000329/0.4897, allocations: 31.98 kB / 0.6277 GB, free: 2.57 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009047/0.4906, allocations: 47.97 kB / 0.6278 GB, free: 2.523 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002703/0.4909, allocations: 84.88 kB / 0.6278 GB, free: 2.441 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.599e-05/0.491, allocations: 35.98 kB / 0.6279 GB, free: 2.406 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001863/0.4928, allocations: 1.102 MB / 0.629 GB, free: 1.309 MB / 446.1 MB Notification: Performance of sort global known variables: time 6.51e-07/0.4929, allocations: 0 / 0.629 GB, free: 1.309 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002214/0.4951, allocations: 0.5038 MB / 0.6294 GB, free: 0.8047 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 8 (smr.inertiaRotor.w,smr.stator.zeroInductor.i0,smr.stator.core.Phi.re,smr.stator.core.Phi.im,smr.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smr.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,vfController.x,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,5,100.0%), (1,1,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005222/0.5003, allocations: 3.178 MB / 0.6326 GB, free: 13.53 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003256/0.5036, allocations: 1.725 MB / 0.6342 GB, free: 11.76 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.632e-06/0.5037, allocations: 0 / 0.6342 GB, free: 11.76 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002238/0.5059, allocations: 1.228 MB / 0.6354 GB, free: 10.48 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002685/0.5086, allocations: 0.4917 MB / 0.6359 GB, free: 9.996 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03497/0.5436, allocations: 17.96 MB / 0.6535 GB, free: 7.285 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00245/0.5461, allocations: 2.225 MB / 0.6556 GB, free: 5.027 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001379/0.5475, allocations: 375.3 kB / 0.656 GB, free: 4.656 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001785/0.5493, allocations: 1.112 MB / 0.6571 GB, free: 3.543 MB / 478.1 MB Notification: Performance of SimCode: time 1.102e-06/0.5493, allocations: 0 / 0.6571 GB, free: 3.543 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3266/0.876, allocations: 47.45 MB / 0.7034 GB, free: 102.6 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.83/14.71, allocations: 7.594 kB / 0.7034 GB, free: 102.6 MB / 478.1 MB " [Timeout remaining time 645] (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 HanserModelica_HanserModelica_SynchronousMachines_SMR_Inverter.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 17.847488683997653] Failed to read output from testmodel.py, exit status != 0: 14.815677972976118 14.824717066 14.482067556 Calling exit ...