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.002032/0.002032, allocations: 106.4 kB / 18.94 MB, free: 2.938 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.595/1.595, allocations: 230.6 MB / 252.6 MB, free: 8.328 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.002161/0.002161, allocations: 212.5 kB / 309.2 MB, free: 3.184 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.04554/0.04554, allocations: 8.912 MB / 374.6 MB, free: 1.934 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.00251/0.00251, allocations: 85.05 kB / 0.4892 GB, free: 4.566 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1121, allocations: 55.61 MB / 0.5435 GB, free: 5.062 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_Inverter): time 0.01939/0.1315, allocations: 14.15 MB / 0.5573 GB, free: 6.848 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01024/0.1417, allocations: 4.734 MB / 0.562 GB, free: 2.102 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002604/0.1443, allocations: 111.3 kB / 0.5621 GB, free: 1.992 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003528/0.1478, allocations: 1.087 MB / 0.5631 GB, free: 0.8984 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004696/0.1525, allocations: 1.317 MB / 0.5644 GB, free: 15.57 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.002911/0.1554, allocations: 0.9431 MB / 0.5653 GB, free: 14.64 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005867/0.1613, allocations: 3.849 MB / 0.5691 GB, free: 10.77 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003215/0.1645, allocations: 1.864 MB / 0.5709 GB, free: 8.836 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003499/0.168, allocations: 1.842 MB / 0.5727 GB, free: 6.988 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004448/0.1725, allocations: 2.145 MB / 0.5748 GB, free: 4.836 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00132/0.1738, allocations: 500 kB / 0.5753 GB, free: 4.348 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002322/0.1761, allocations: 0.7185 MB / 0.576 GB, free: 3.629 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001694/0.1778, allocations: 1.083 MB / 0.577 GB, free: 2.543 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003874/0.1817, allocations: 2.042 MB / 0.579 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009817/0.1915, allocations: 6.466 MB / 0.5854 GB, free: 10 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.294e-06/0.1915, allocations: 0 / 0.5854 GB, free: 10 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.1915, allocations: 0 / 0.5854 GB, free: 10 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001993/0.1917, allocations: 0 / 0.5854 GB, free: 10 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.01299/0.2047, allocations: 4.232 MB / 0.5895 GB, free: 5.719 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.332e-05/0.2048, allocations: 8.031 kB / 0.5895 GB, free: 5.711 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009637/0.2057, allocations: 493.6 kB / 0.59 GB, free: 5.215 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004135/0.2099, allocations: 0.752 MB / 0.5907 GB, free: 4.461 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00581/0.2157, allocations: 2.281 MB / 0.5929 GB, free: 2.133 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00027/0.2159, allocations: 238.7 kB / 0.5932 GB, free: 1.898 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009901/0.2169, allocations: 319.9 kB / 0.5935 GB, free: 1.586 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01097/0.2279, allocations: 4.173 MB / 0.5975 GB, free: 13.36 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.061e-05/0.228, allocations: 7.953 kB / 0.5975 GB, free: 13.36 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005038/0.2285, allocations: 132 kB / 0.5977 GB, free: 13.23 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001743/0.2287, allocations: 142.3 kB / 0.5978 GB, free: 13.09 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008414/0.2371, allocations: 3.507 MB / 0.6012 GB, free: 9.57 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02398/0.2611, allocations: 12.85 MB / 0.6138 GB, free: 12.32 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004556/0.2656, allocations: 2.156 MB / 0.6159 GB, free: 10.25 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001985/0.2676, allocations: 0.9929 MB / 0.6169 GB, free: 9.262 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005833/0.2734, allocations: 2.862 MB / 0.6197 GB, free: 6.371 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.289e-05/0.2735, allocations: 51.55 kB / 0.6197 GB, free: 6.312 MB / 430.1 MB Notification: Performance of pre-optimization done (n=107): time 2.915e-06/0.2735, allocations: 0 / 0.6197 GB, free: 6.312 MB / 430.1 MB Notification: Performance of matching and sorting (n=110): time 0.009737/0.2832, allocations: 4.133 MB / 0.6237 GB, free: 2.137 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.148e-05/0.2833, allocations: 68.39 kB / 0.6238 GB, free: 2.055 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002604/0.2859, allocations: 1.623 MB / 0.6254 GB, free: 436 kB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000132/0.286, allocations: 45.7 kB / 0.6254 GB, free: 384 kB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001215/0.2872, allocations: 1.469 MB / 0.6269 GB, free: 14.89 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004162/0.2876, allocations: 412.5 kB / 0.6273 GB, free: 14.48 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005108/0.2882, allocations: 279.4 kB / 0.6275 GB, free: 14.2 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001347/0.2883, allocations: 309.1 kB / 0.6278 GB, free: 13.9 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001073/0.2894, allocations: 0.5622 MB / 0.6284 GB, free: 13.34 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001521/0.2909, allocations: 1.059 MB / 0.6294 GB, free: 12.06 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002757/0.2936, allocations: 1.737 MB / 0.6311 GB, free: 10.11 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.098e-05/0.2937, allocations: 8 kB / 0.6311 GB, free: 10.11 MB / 446.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.004069/0.2977, allocations: 1.971 MB / 0.633 GB, free: 8.113 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.148e-05/0.2978, allocations: 12 kB / 0.633 GB, free: 8.102 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.611e-05/0.2978, allocations: 16.38 kB / 0.6331 GB, free: 8.086 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004048/0.2982, allocations: 138.4 kB / 0.6332 GB, free: 7.941 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00155/0.2997, allocations: 363.4 kB / 0.6335 GB, free: 7.586 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003244/0.303, allocations: 3.178 MB / 0.6366 GB, free: 4.18 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00135/0.3043, allocations: 67.92 kB / 0.6367 GB, free: 4.113 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001544/0.3045, allocations: 71.98 kB / 0.6368 GB, free: 4.043 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.00176/0.3062, allocations: 0.9618 MB / 0.6377 GB, free: 3.07 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003894/0.3066, allocations: 182.8 kB / 0.6379 GB, free: 2.891 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003489/0.3101, allocations: 1.648 MB / 0.6395 GB, free: 1.223 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-05/0.3102, allocations: 12 kB / 0.6395 GB, free: 1.211 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.016e-05/0.3102, allocations: 4 kB / 0.6395 GB, free: 1.207 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.592e-05/0.3102, allocations: 11.86 kB / 0.6395 GB, free: 1.195 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00787/0.3181, allocations: 4.187 MB / 0.6436 GB, free: 12.92 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.56e-06/0.3181, allocations: 0 / 0.6436 GB, free: 12.92 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009042/0.319, allocations: 179.8 kB / 0.6438 GB, free: 12.74 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008824/0.3198, allocations: 302.6 kB / 0.6441 GB, free: 12.44 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.438e-05/0.3199, allocations: 31.98 kB / 0.6441 GB, free: 12.41 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008473/0.3284, allocations: 7.803 MB / 0.6517 GB, free: 4.152 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.634e-06/0.3284, allocations: 7.969 kB / 0.6517 GB, free: 4.145 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004526/0.3329, allocations: 2.413 MB / 0.6541 GB, free: 1.68 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008415/0.3338, allocations: 302.7 kB / 0.6544 GB, free: 1.383 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002445/0.334, allocations: 35.98 kB / 0.6544 GB, free: 1.348 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008124/0.3348, allocations: 47.95 kB / 0.6545 GB, free: 1.301 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002307/0.3351, allocations: 96.77 kB / 0.6545 GB, free: 1.207 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.397e-05/0.3351, allocations: 31.98 kB / 0.6546 GB, free: 1.176 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001783/0.3369, allocations: 1.111 MB / 0.6557 GB, free: 72 kB / 462.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3369, allocations: 0 / 0.6557 GB, free: 72 kB / 462.1 MB Notification: Performance of remove unused functions: time 0.1993/0.5362, allocations: 0.5077 MB / 0.6562 GB, free: 98.97 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.004658/0.5409, allocations: 3.021 MB / 0.6591 GB, free: 98.22 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.002915/0.5438, allocations: 1.58 MB / 0.6607 GB, free: 97.67 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.12e-06/0.5438, allocations: 0.5625 kB / 0.6607 GB, free: 97.67 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001761/0.5456, allocations: 1.18 MB / 0.6618 GB, free: 96.94 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002431/0.548, allocations: 0.5006 MB / 0.6623 GB, free: 96.8 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.025/0.573, allocations: 17.86 MB / 0.6797 GB, free: 87.98 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001557/0.5746, allocations: 2.242 MB / 0.6819 GB, free: 86.92 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00114/0.5757, allocations: 376.6 kB / 0.6823 GB, free: 86.85 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001063/0.5768, allocations: 1.125 MB / 0.6834 GB, free: 85.91 MB / 462.1 MB Notification: Performance of SimCode: time 9.62e-07/0.5768, allocations: 0 / 0.6834 GB, free: 85.91 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09119/0.6679, allocations: 49.42 MB / 0.7316 GB, free: 37.4 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.46/16.13, allocations: 13.31 kB / 0.7317 GB, free: 37.4 MB / 462.1 MB " [Timeout remaining time 644] (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: 19.74538770000072] Failed to read output from testmodel.py, exit status != 0: 16.268972847996338 16.289734918 16.093996992 Calling exit ...