Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.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.00151/0.00151, 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.379/1.379, allocations: 230.6 MB / 252.7 MB, free: 8.062 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.001578/0.001578, allocations: 209.4 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.04029/0.04029, allocations: 8.912 MB / 374.6 MB, free: 1.738 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_MTPA,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMR_MTPA",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMR_MTPA,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMR_MTPA",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.002436/0.002436, allocations: 87.84 kB / 0.4892 GB, free: 7.188 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2918/0.2943, allocations: 55.6 MB / 0.5435 GB, free: 26.62 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_MTPA): time 0.01934/0.3136, allocations: 23.84 MB / 0.5667 GB, free: 10.78 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01617/0.3298, allocations: 7.824 MB / 0.5744 GB, free: 5.297 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005761/0.3356, allocations: 247.9 kB / 0.5746 GB, free: 5.219 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01641/0.352, allocations: 7.404 MB / 0.5819 GB, free: 1.055 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009579/0.3616, allocations: 2.74 MB / 0.5845 GB, free: 14.99 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006173/0.3677, allocations: 1.804 MB / 0.5863 GB, free: 13.58 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01479/0.3825, allocations: 9.828 MB / 0.5959 GB, free: 7.141 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02617/0.4087, allocations: 13.73 MB / 0.6093 GB, free: 9.277 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01013/0.4188, allocations: 5.389 MB / 0.6146 GB, free: 3.875 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01057/0.4294, allocations: 5.765 MB / 0.6202 GB, free: 14.09 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003774/0.4332, allocations: 1.52 MB / 0.6217 GB, free: 12.57 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005987/0.4392, allocations: 1.878 MB / 0.6235 GB, free: 10.69 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004872/0.444, allocations: 2.942 MB / 0.6264 GB, free: 7.742 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00916/0.4532, allocations: 4.452 MB / 0.6307 GB, free: 3.273 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02696/0.4801, allocations: 20.43 MB / 0.6507 GB, free: 14.78 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.386e-06/0.4802, allocations: 7.984 kB / 0.6507 GB, free: 14.77 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.4802, allocations: 0 / 0.6507 GB, free: 14.77 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0005469/0.4807, allocations: 0 / 0.6507 GB, free: 14.77 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2552 * Number of variables: 2552 Notification: Performance of Generate backend data structure: time 0.03742/0.5181, allocations: 11.75 MB / 0.6622 GB, free: 2.934 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.496e-05/0.5182, allocations: 8.031 kB / 0.6622 GB, free: 2.926 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006467/0.5246, allocations: 1.324 MB / 0.6635 GB, free: 1.594 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03088/0.5555, allocations: 5.566 MB / 0.6689 GB, free: 12.02 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01529/0.5708, allocations: 6.253 MB / 0.675 GB, free: 5.695 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000829/0.5716, allocations: 0.6942 MB / 0.6757 GB, free: 5 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003557/0.5752, allocations: 0.91 MB / 0.6766 GB, free: 4.09 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03742/0.6126, allocations: 15.04 MB / 0.6913 GB, free: 4.973 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000267/0.6129, allocations: 15.95 kB / 0.6913 GB, free: 4.957 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001896/0.6148, allocations: 387.9 kB / 0.6916 GB, free: 4.578 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005501/0.6153, allocations: 0.5113 MB / 0.6921 GB, free: 4.066 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4394/1.055, allocations: 13.55 MB / 0.7054 GB, free: 103.6 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06375/1.118, allocations: 41.82 MB / 0.7462 GB, free: 79.68 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01106/1.13, allocations: 7.863 MB / 0.7539 GB, free: 76.28 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003204/1.133, allocations: 2.747 MB / 0.7566 GB, free: 74.87 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002578/1.133, allocations: 94.22 kB / 0.7567 GB, free: 74.84 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.13e-05/1.133, allocations: 72.55 kB / 0.7567 GB, free: 74.77 MB / 494.1 MB Notification: Performance of pre-optimization done (n=375): time 6.031e-06/1.133, allocations: 0 / 0.7567 GB, free: 74.77 MB / 494.1 MB Notification: Performance of matching and sorting (n=382): time 0.02361/1.157, allocations: 14.54 MB / 0.7709 GB, free: 61.29 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.13e-05/1.157, allocations: 90.41 kB / 0.771 GB, free: 61.19 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003842/1.161, allocations: 3.621 MB / 0.7746 GB, free: 57.67 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002267/1.161, allocations: 89.7 kB / 0.7746 GB, free: 57.58 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001394/1.162, allocations: 4.099 MB / 0.7786 GB, free: 53.56 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006811/1.163, allocations: 1.373 MB / 0.78 GB, free: 52.2 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001181/1.164, allocations: 1.152 MB / 0.7811 GB, free: 51.04 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 3.625e-05/1.164, allocations: 309 kB / 0.7814 GB, free: 50.73 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002724/1.167, allocations: 2.553 MB / 0.7839 GB, free: 48.18 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003451/1.17, allocations: 5.032 MB / 0.7888 GB, free: 41.98 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006707/1.177, allocations: 8.222 MB / 0.7968 GB, free: 32.58 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.801e-05/1.177, allocations: 24 kB / 0.7969 GB, free: 32.56 MB / 494.1 MB Notification: Performance of matching and sorting (n=755) (initialization): time 0.01039/1.187, allocations: 8.503 MB / 0.8052 GB, free: 24.02 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.882e-05/1.187, allocations: 43.94 kB / 0.8052 GB, free: 23.98 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.006e-05/1.187, allocations: 84 kB / 0.8053 GB, free: 23.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001834/1.189, allocations: 0.8342 MB / 0.8061 GB, free: 23.06 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003658/1.193, allocations: 1.341 MB / 0.8074 GB, free: 21.72 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008013/1.201, allocations: 7.372 MB / 0.8146 GB, free: 14.23 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003466/1.204, allocations: 331.4 kB / 0.8149 GB, free: 13.91 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004414/1.205, allocations: 304 kB / 0.8152 GB, free: 13.61 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 373 * 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 (708): * Single equations (assignments): 707 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(8,40,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004184/1.209, allocations: 3.474 MB / 0.8186 GB, free: 10.12 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007595/1.21, allocations: 417.3 kB / 0.819 GB, free: 9.715 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007592/1.217, allocations: 5.82 MB / 0.8247 GB, free: 3.859 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.995e-05/1.217, allocations: 36 kB / 0.8247 GB, free: 3.824 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.256e-05/1.217, allocations: 8 kB / 0.8247 GB, free: 3.816 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.81e-05/1.217, allocations: 23.86 kB / 0.8248 GB, free: 3.793 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02377/1.241, allocations: 13.89 MB / 0.8383 GB, free: 5.855 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.808e-05/1.241, allocations: 4 kB / 0.8383 GB, free: 5.852 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002637/1.244, allocations: 0.6825 MB / 0.839 GB, free: 5.168 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001943/1.246, allocations: 0.694 MB / 0.8397 GB, free: 4.473 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002298/1.246, allocations: 87.97 kB / 0.8398 GB, free: 4.387 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009676/1.256, allocations: 6.427 MB / 0.846 GB, free: 13.85 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.54e-06/1.256, allocations: 4 kB / 0.846 GB, free: 13.85 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01385/1.27, allocations: 8.56 MB / 0.8544 GB, free: 5.16 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002606/1.272, allocations: 0.8212 MB / 0.8552 GB, free: 4.336 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008145/1.273, allocations: 75.94 kB / 0.8553 GB, free: 4.262 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001912/1.275, allocations: 179.8 kB / 0.8554 GB, free: 4.086 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005584/1.276, allocations: 274.4 kB / 0.8557 GB, free: 3.816 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002461/1.276, allocations: 116 kB / 0.8558 GB, free: 3.703 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.003924/1.28, allocations: 2.334 MB / 0.8581 GB, free: 1.379 MB / 0.5138 GB Notification: Performance of sort global known variables: time 1.3e-07/1.28, allocations: 0 / 0.8581 GB, free: 1.379 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.005651/1.285, allocations: 1.512 MB / 0.8596 GB, free: 15.86 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 1 (smr.phiMechanical) * 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 (365): * Single equations (assignments): 364 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(8,38,62.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01443/1.3, allocations: 9.269 MB / 0.8686 GB, free: 6.473 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01069/1.31, allocations: 6.169 MB / 0.8747 GB, free: 304 kB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.291e-05/1.31, allocations: 1 kB / 0.8747 GB, free: 304 kB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004634/1.315, allocations: 2.663 MB / 0.8773 GB, free: 13.62 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004203/1.319, allocations: 0.8969 MB / 0.8781 GB, free: 12.75 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3114/1.631, allocations: 51.31 MB / 0.9282 GB, free: 186.5 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005665/1.636, allocations: 5.44 MB / 0.9335 GB, free: 185 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.004567/1.641, allocations: 1.857 MB / 0.9354 GB, free: 184.9 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003998/1.645, allocations: 3.101 MB / 0.9384 GB, free: 182.3 MB / 0.5763 GB Notification: Performance of SimCode: time 1.232e-06/1.645, allocations: 0 / 0.9384 GB, free: 182.3 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2053/1.85, allocations: 119 MB / 1.055 GB, free: 86.03 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.46/18.31, allocations: 2.969 kB / 1.055 GB, free: 86.03 MB / 0.5763 GB " [Timeout remaining time 642] (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 HanserModelica_HanserModelica_SynchronousMachines_SMR_MTPA.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 21.043044173158705] Failed to read output from testmodel.py, exit status != 0: 18.483986899256706 18.494475113 18.011767241 Calling exit ...