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.001415/0.001415, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.417/1.417, allocations: 230.6 MB / 252.7 MB, free: 8.102 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.001597/0.001597, allocations: 222.3 kB / 309.2 MB, free: 2.965 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.04112/0.04112, allocations: 8.909 MB / 374.6 MB, free: 1.746 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.003422/0.003422, allocations: 83.88 kB / 0.4892 GB, free: 7.203 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2896/0.293, allocations: 55.59 MB / 0.5435 GB, free: 26.67 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_Inverter): time 0.01043/0.3034, allocations: 12.27 MB / 0.5554 GB, free: 18.55 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006948/0.3104, allocations: 4.452 MB / 0.5598 GB, free: 15.41 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001827/0.3122, allocations: 108.6 kB / 0.5599 GB, free: 15.36 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002263/0.3144, allocations: 1.038 MB / 0.5609 GB, free: 14.84 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003062/0.3175, allocations: 1.295 MB / 0.5622 GB, free: 13.99 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001876/0.3194, allocations: 0.8875 MB / 0.563 GB, free: 13.45 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004194/0.3236, allocations: 3.854 MB / 0.5668 GB, free: 11.44 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003218/0.3268, allocations: 1.795 MB / 0.5686 GB, free: 10.49 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00316/0.33, allocations: 1.839 MB / 0.5703 GB, free: 9.59 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005169/0.3351, allocations: 2.009 MB / 0.5723 GB, free: 8.684 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001804/0.3369, allocations: 496.7 kB / 0.5728 GB, free: 8.684 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00288/0.3398, allocations: 0.6934 MB / 0.5735 GB, free: 8.613 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001825/0.3416, allocations: 1.077 MB / 0.5745 GB, free: 7.902 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004609/0.3462, allocations: 1.624 MB / 0.5761 GB, free: 6.953 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007377/0.3536, allocations: 6.482 MB / 0.5824 GB, free: 2.676 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.3536, allocations: 1.188 kB / 0.5824 GB, free: 2.676 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.3536, allocations: 0 / 0.5824 GB, free: 2.676 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001257/0.3538, allocations: 0 / 0.5824 GB, free: 2.676 MB / 382.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.009643/0.3634, allocations: 4.223 MB / 0.5866 GB, free: 15.81 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.871e-05/0.3634, allocations: 13.92 kB / 0.5866 GB, free: 15.81 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008244/0.3643, allocations: 492.6 kB / 0.587 GB, free: 15.47 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003697/0.368, allocations: 0.7554 MB / 0.5878 GB, free: 15.09 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004577/0.3725, allocations: 2.253 MB / 0.59 GB, free: 13.07 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001991/0.3727, allocations: 234.7 kB / 0.5902 GB, free: 12.84 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005088/0.3732, allocations: 327.8 kB / 0.5905 GB, free: 12.52 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007458/0.3807, allocations: 4.298 MB / 0.5947 GB, free: 8.145 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.849e-05/0.3808, allocations: 11.94 kB / 0.5947 GB, free: 8.133 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000297/0.3811, allocations: 124 kB / 0.5948 GB, free: 8.012 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001585/0.3812, allocations: 142.3 kB / 0.595 GB, free: 7.871 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006158/0.3874, allocations: 3.495 MB / 0.5984 GB, free: 4.367 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02011/0.4075, allocations: 11.71 MB / 0.6098 GB, free: 8.27 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004297/0.4118, allocations: 2.137 MB / 0.6119 GB, free: 6.215 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001764/0.4136, allocations: 0.9968 MB / 0.6129 GB, free: 5.219 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005246/0.4188, allocations: 2.589 MB / 0.6154 GB, free: 2.602 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.467e-05/0.4189, allocations: 47.5 kB / 0.6155 GB, free: 2.547 MB / 414.1 MB Notification: Performance of pre-optimization done (n=107): time 3.737e-06/0.4189, allocations: 0 / 0.6155 GB, free: 2.547 MB / 414.1 MB Notification: Performance of matching and sorting (n=110): time 0.008996/0.4279, allocations: 4.133 MB / 0.6195 GB, free: 14.38 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.211e-05/0.4279, allocations: 68.34 kB / 0.6196 GB, free: 14.29 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002408/0.4303, allocations: 1.654 MB / 0.6212 GB, free: 12.63 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 8.17e-05/0.4304, allocations: 45.7 kB / 0.6212 GB, free: 12.58 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001161/0.4316, allocations: 1.469 MB / 0.6226 GB, free: 11.1 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003457/0.4319, allocations: 412.5 kB / 0.623 GB, free: 10.69 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000437/0.4323, allocations: 271.5 kB / 0.6233 GB, free: 10.42 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001337/0.4325, allocations: 305.1 kB / 0.6236 GB, free: 10.12 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009942/0.4335, allocations: 0.57 MB / 0.6241 GB, free: 9.547 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001441/0.4349, allocations: 1.092 MB / 0.6252 GB, free: 8.234 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002542/0.4375, allocations: 1.725 MB / 0.6269 GB, free: 6.293 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.266e-06/0.4375, allocations: 8 kB / 0.6269 GB, free: 6.285 MB / 430.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.00358/0.441, allocations: 1.967 MB / 0.6288 GB, free: 4.301 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.585e-05/0.4411, allocations: 12 kB / 0.6288 GB, free: 4.289 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.744e-05/0.4411, allocations: 16 kB / 0.6289 GB, free: 4.273 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003863/0.4415, allocations: 138.9 kB / 0.629 GB, free: 4.129 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00132/0.4428, allocations: 371.4 kB / 0.6293 GB, free: 3.766 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002938/0.4457, allocations: 3.162 MB / 0.6324 GB, free: 384 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001235/0.447, allocations: 71.92 kB / 0.6325 GB, free: 312 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001138/0.4471, allocations: 68.16 kB / 0.6326 GB, free: 244 kB / 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.001743/0.4488, allocations: 0.9657 MB / 0.6335 GB, free: 15.26 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002883/0.4491, allocations: 186.8 kB / 0.6337 GB, free: 15.08 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003173/0.4523, allocations: 1.648 MB / 0.6353 GB, free: 13.41 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.254e-05/0.4523, allocations: 12 kB / 0.6353 GB, free: 13.4 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.167e-06/0.4523, allocations: 4 kB / 0.6353 GB, free: 13.39 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.271e-05/0.4523, allocations: 7.922 kB / 0.6353 GB, free: 13.39 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007333/0.4597, allocations: 3.937 MB / 0.6392 GB, free: 9.359 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.514e-06/0.4597, allocations: 4 kB / 0.6392 GB, free: 9.355 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008608/0.4605, allocations: 180 kB / 0.6393 GB, free: 9.18 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008359/0.4614, allocations: 314.2 kB / 0.6396 GB, free: 8.863 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.964e-05/0.4615, allocations: 35.98 kB / 0.6397 GB, free: 8.828 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008028/0.4695, allocations: 7.721 MB / 0.6472 GB, free: 0.6562 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/0.4695, allocations: 3.938 kB / 0.6472 GB, free: 0.6523 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004378/0.4739, allocations: 2.413 MB / 0.6496 GB, free: 14.18 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009695/0.4748, allocations: 306.7 kB / 0.6499 GB, free: 13.88 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002059/0.475, allocations: 27.98 kB / 0.6499 GB, free: 13.86 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007548/0.4758, allocations: 55.97 kB / 0.6499 GB, free: 13.8 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002906/0.4761, allocations: 96.75 kB / 0.65 GB, free: 13.71 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.476e-05/0.4761, allocations: 28 kB / 0.6501 GB, free: 13.68 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001882/0.478, allocations: 1.111 MB / 0.6511 GB, free: 12.57 MB / 462.1 MB Notification: Performance of sort global known variables: time 1e-07/0.478, allocations: 0 / 0.6511 GB, free: 12.57 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001979/0.48, allocations: 0.5155 MB / 0.6516 GB, free: 12.06 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.004714/0.4847, allocations: 3.017 MB / 0.6546 GB, free: 8.98 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.002909/0.4876, allocations: 1.58 MB / 0.6561 GB, free: 7.375 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.2e-06/0.4876, allocations: 7.938 kB / 0.6561 GB, free: 7.367 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001905/0.4895, allocations: 1.182 MB / 0.6573 GB, free: 6.133 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002349/0.4919, allocations: 0.5106 MB / 0.6578 GB, free: 5.633 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02948/0.5214, allocations: 17.84 MB / 0.6752 GB, free: 3.09 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002108/0.5235, allocations: 1.692 MB / 0.6769 GB, free: 1.367 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001221/0.5247, allocations: 375.5 kB / 0.6772 GB, free: 0.9961 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001575/0.5263, allocations: 1.124 MB / 0.6783 GB, free: 15.87 MB / 494.1 MB Notification: Performance of SimCode: time 1.072e-06/0.5263, allocations: 0 / 0.6783 GB, free: 15.87 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3194/0.8456, allocations: 51.29 MB / 0.7284 GB, free: 112.7 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.76/13.6, allocations: 12.81 kB / 0.7284 GB, free: 112.7 MB / 494.1 MB " [Timeout remaining time 646] (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: 16.73639167798683] Failed to read output from testmodel.py, exit status != 0: 13.743339698761702 13.753068572 13.396990601 Calling exit ...