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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001767/0.001767, allocations: 111.7 kB / 16.45 MB, free: 6.488 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.498/1.498, allocations: 230.6 MB / 249.8 MB, free: 9.23 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00161/0.00161, allocations: 216.2 kB / 306 MB, free: 4.324 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo): time 0.0437/0.0437, allocations: 8.908 MB / 371 MB, free: 3.457 MB / 302.1 MB " [Timeout remaining time 180] Using package HanserModelica with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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: HanserModelica requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: HanserModelica requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002588/0.002588, allocations: 83.89 kB / 495.7 MB, free: 9.84 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3148/0.3174, allocations: 55.57 MB / 0.5384 GB, free: 26.61 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_Inverter): time 0.0131/0.3305, allocations: 14.09 MB / 0.5521 GB, free: 16.54 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.009349/0.3399, allocations: 4.719 MB / 0.5568 GB, free: 13.08 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002777/0.3427, allocations: 110.8 kB / 0.5569 GB, free: 13.04 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003365/0.346, allocations: 1.091 MB / 0.5579 GB, free: 12.46 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004484/0.3505, allocations: 1.317 MB / 0.5592 GB, free: 11.59 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/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.002716/0.3532, allocations: 0.9146 MB / 0.5601 GB, free: 11.02 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005081/0.3583, allocations: 3.851 MB / 0.5639 GB, free: 9.008 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003843/0.3621, allocations: 2.343 MB / 0.5662 GB, free: 7.91 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003845/0.366, allocations: 1.84 MB / 0.568 GB, free: 7.004 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004438/0.3704, allocations: 2.138 MB / 0.57 GB, free: 5.953 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002168/0.3726, allocations: 498.1 kB / 0.5705 GB, free: 5.953 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004342/0.3769, allocations: 0.7129 MB / 0.5712 GB, free: 5.871 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00222/0.3792, allocations: 1.083 MB / 0.5723 GB, free: 5.156 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005558/0.3847, allocations: 2.049 MB / 0.5743 GB, free: 3.781 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01151/0.3962, allocations: 6.455 MB / 0.5806 GB, free: 15.95 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.142e-06/0.3962, allocations: 1.469 kB / 0.5806 GB, free: 15.95 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.3962, allocations: 0 / 0.5806 GB, free: 15.95 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.000257/0.3965, allocations: 4 kB / 0.5806 GB, free: 15.95 MB / 398.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.01689/0.4134, allocations: 4.299 MB / 0.5848 GB, free: 12.99 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.602e-05/0.4134, allocations: 13.72 kB / 0.5848 GB, free: 12.99 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002207/0.4156, allocations: 493.7 kB / 0.5853 GB, free: 12.64 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005602/0.4212, allocations: 0.7514 MB / 0.586 GB, free: 12.27 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007182/0.4284, allocations: 2.347 MB / 0.5883 GB, free: 10.54 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003221/0.4287, allocations: 234.3 kB / 0.5885 GB, free: 10.43 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001472/0.4302, allocations: 320 kB / 0.5888 GB, free: 10.27 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01183/0.442, allocations: 4.173 MB / 0.5929 GB, free: 6.043 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.709e-05/0.4421, allocations: 3.953 kB / 0.5929 GB, free: 6.039 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004407/0.4426, allocations: 128 kB / 0.593 GB, free: 5.914 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001888/0.4428, allocations: 150.2 kB / 0.5932 GB, free: 5.766 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008116/0.4509, allocations: 3.511 MB / 0.5966 GB, free: 2.246 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02891/0.4798, allocations: 13.2 MB / 0.6095 GB, free: 4.617 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007455/0.4872, allocations: 5.688 MB / 0.615 GB, free: 14.14 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002651/0.4899, allocations: 1.005 MB / 0.616 GB, free: 13.13 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008303/0.4982, allocations: 3.336 MB / 0.6193 GB, free: 9.652 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.455e-05/0.4983, allocations: 47.56 kB / 0.6193 GB, free: 9.598 MB / 430.1 MB Notification: Performance of pre-optimization done (n=107): time 4.809e-06/0.4983, allocations: 0 / 0.6193 GB, free: 9.598 MB / 430.1 MB Notification: Performance of matching and sorting (n=110): time 0.01272/0.511, allocations: 4.66 MB / 0.6239 GB, free: 4.766 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.091e-05/0.5111, allocations: 68.34 kB / 0.6239 GB, free: 4.688 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003438/0.5145, allocations: 1.63 MB / 0.6255 GB, free: 3.051 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002233/0.5147, allocations: 41.7 kB / 0.6256 GB, free: 3.004 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001539/0.5163, allocations: 1.473 MB / 0.627 GB, free: 1.516 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005272/0.5168, allocations: 408.5 kB / 0.6274 GB, free: 1.113 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005177/0.5173, allocations: 275.4 kB / 0.6277 GB, free: 0.8359 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001405/0.5174, allocations: 309.1 kB / 0.628 GB, free: 0.5312 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001187/0.5186, allocations: 0.5662 MB / 0.6285 GB, free: 15.96 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001684/0.5203, allocations: 1.063 MB / 0.6295 GB, free: 14.68 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003138/0.5234, allocations: 1.733 MB / 0.6312 GB, free: 12.73 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-05/0.5235, allocations: 8 kB / 0.6312 GB, free: 12.73 MB / 446.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.004479/0.5279, allocations: 2.047 MB / 0.6332 GB, free: 10.64 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.945e-05/0.528, allocations: 12.38 kB / 0.6333 GB, free: 10.63 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.522e-05/0.528, allocations: 20 kB / 0.6333 GB, free: 10.61 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000469/0.5285, allocations: 134.4 kB / 0.6334 GB, free: 10.47 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001607/0.5301, allocations: 363.4 kB / 0.6338 GB, free: 10.12 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003508/0.5336, allocations: 3.377 MB / 0.637 GB, free: 6.465 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001726/0.5353, allocations: 71.92 kB / 0.6371 GB, free: 6.395 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002574/0.5356, allocations: 64 kB / 0.6372 GB, free: 6.332 MB / 446.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.00223/0.5378, allocations: 0.9637 MB / 0.6381 GB, free: 5.359 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005221/0.5383, allocations: 182.8 kB / 0.6383 GB, free: 5.18 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003963/0.5423, allocations: 1.805 MB / 0.6401 GB, free: 3.316 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.12e-05/0.5423, allocations: 12 kB / 0.6401 GB, free: 3.305 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.229e-05/0.5423, allocations: 4 kB / 0.6401 GB, free: 3.301 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.116e-05/0.5424, allocations: 7.922 kB / 0.6401 GB, free: 3.293 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009308/0.5517, allocations: 4.354 MB / 0.6443 GB, free: 14.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.181e-05/0.5517, allocations: 4 kB / 0.6443 GB, free: 14.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009577/0.5526, allocations: 179.8 kB / 0.6445 GB, free: 14.62 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001015/0.5537, allocations: 316.7 kB / 0.6448 GB, free: 14.3 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000127/0.5538, allocations: 27.98 kB / 0.6448 GB, free: 14.28 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009666/0.5634, allocations: 8.213 MB / 0.6529 GB, free: 5.508 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.155e-05/0.5635, allocations: 11.91 kB / 0.6529 GB, free: 5.496 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005112/0.5686, allocations: 2.564 MB / 0.6554 GB, free: 2.848 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001208/0.5698, allocations: 387.8 kB / 0.6557 GB, free: 2.449 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003334/0.5701, allocations: 24 kB / 0.6558 GB, free: 2.426 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009392/0.571, allocations: 51.95 kB / 0.6558 GB, free: 2.375 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002917/0.5713, allocations: 92.81 kB / 0.6559 GB, free: 2.285 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.459e-05/0.5714, allocations: 35.98 kB / 0.6559 GB, free: 2.25 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002054/0.5735, allocations: 1.107 MB / 0.657 GB, free: 1.148 MB / 462.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.5735, allocations: 0 / 0.657 GB, free: 1.148 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002554/0.576, allocations: 0.5078 MB / 0.6575 GB, free: 0.6406 MB / 462.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.005841/0.5819, allocations: 3.175 MB / 0.6606 GB, free: 13.37 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.003563/0.5854, allocations: 1.659 MB / 0.6622 GB, free: 11.67 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.646e-06/0.5854, allocations: 0 / 0.6622 GB, free: 11.67 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002456/0.5879, allocations: 1.182 MB / 0.6634 GB, free: 10.44 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003104/0.591, allocations: 0.5116 MB / 0.6639 GB, free: 9.934 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03734/0.6283, allocations: 17.97 MB / 0.6814 GB, free: 7.219 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002667/0.631, allocations: 2.237 MB / 0.6836 GB, free: 4.953 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001421/0.6324, allocations: 379.5 kB / 0.684 GB, free: 4.578 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001822/0.6343, allocations: 1.12 MB / 0.6851 GB, free: 3.457 MB / 494.1 MB Notification: Performance of SimCode: time 1.433e-06/0.6343, allocations: 0 / 0.6851 GB, free: 3.457 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.346/0.9803, allocations: 48.25 MB / 0.7322 GB, free: 129.8 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.74/14.72, allocations: 10.77 kB / 0.7322 GB, free: 129.7 MB / 0.4981 GB " [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: 18.03513370199653] Failed to read output from testmodel.py, exit status != 0: 14.83857237600023 14.85668121 14.456319848 Calling exit ...