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.001302/0.001302, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.452/1.452, allocations: 230.6 MB / 252.7 MB, free: 8.301 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.001631/0.001631, allocations: 216.7 kB / 309.2 MB, free: 3.148 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.04219/0.04219, allocations: 8.908 MB / 374.6 MB, free: 1.902 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.00256/0.00256, allocations: 87.88 kB / 0.4892 GB, free: 7.316 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2847/0.2873, allocations: 55.59 MB / 0.5435 GB, free: 26.79 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_MTPA): time 0.02144/0.3087, allocations: 27.88 MB / 0.5708 GB, free: 6.707 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0181/0.3268, allocations: 8.169 MB / 0.5787 GB, free: 0.832 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005681/0.3325, allocations: 248.3 kB / 0.579 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02033/0.3529, allocations: 8.054 MB / 0.5868 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01245/0.3653, allocations: 2.82 MB / 0.5896 GB, free: 9.77 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007065/0.3724, allocations: 1.881 MB / 0.5914 GB, free: 8.281 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01534/0.3877, allocations: 9.83 MB / 0.601 GB, free: 2.148 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02889/0.4166, allocations: 13.9 MB / 0.6146 GB, free: 4.113 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01042/0.427, allocations: 5.389 MB / 0.6199 GB, free: 14.71 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01127/0.4383, allocations: 6.031 MB / 0.6257 GB, free: 8.66 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004135/0.4424, allocations: 1.523 MB / 0.6272 GB, free: 7.137 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006223/0.4486, allocations: 1.898 MB / 0.6291 GB, free: 5.238 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004863/0.4535, allocations: 2.95 MB / 0.632 GB, free: 2.281 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01036/0.4639, allocations: 5.732 MB / 0.6376 GB, free: 12.53 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02654/0.4904, allocations: 20.35 MB / 0.6574 GB, free: 8.113 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.4904, allocations: 0 / 0.6574 GB, free: 8.113 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.4904, allocations: 0 / 0.6574 GB, free: 8.113 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0004177/0.4908, allocations: 0 / 0.6574 GB, free: 8.113 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.03505/0.5259, allocations: 11.76 MB / 0.6689 GB, free: 12.27 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.389e-05/0.5259, allocations: 12.03 kB / 0.6689 GB, free: 12.26 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005321/0.5313, allocations: 1.32 MB / 0.6702 GB, free: 10.93 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03278/0.564, allocations: 5.555 MB / 0.6756 GB, free: 5.363 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01521/0.5793, allocations: 6.264 MB / 0.6818 GB, free: 15.03 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008346/0.5801, allocations: 0.6904 MB / 0.6824 GB, free: 14.34 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003957/0.584, allocations: 0.91 MB / 0.6833 GB, free: 13.43 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4485/1.033, allocations: 14.89 MB / 0.6979 GB, free: 102.2 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004969/1.033, allocations: 15.75 kB / 0.6979 GB, free: 102.2 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002783/1.036, allocations: 384.1 kB / 0.6982 GB, free: 102.2 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007931/1.037, allocations: 0.5087 MB / 0.6987 GB, free: 102.2 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02768/1.064, allocations: 13.62 MB / 0.712 GB, free: 97.31 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08879/1.153, allocations: 45.61 MB / 0.7566 GB, free: 68.67 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01367/1.167, allocations: 7.932 MB / 0.7643 GB, free: 65.27 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004618/1.171, allocations: 2.753 MB / 0.767 GB, free: 63.87 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004989/1.172, allocations: 112.6 kB / 0.7671 GB, free: 63.83 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.561e-05/1.172, allocations: 75.52 kB / 0.7672 GB, free: 63.76 MB / 494.1 MB Notification: Performance of pre-optimization done (n=375): time 6.803e-06/1.172, allocations: 0 / 0.7672 GB, free: 63.76 MB / 494.1 MB Notification: Performance of matching and sorting (n=382): time 0.03222/1.204, allocations: 14.62 MB / 0.7815 GB, free: 49.99 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.746e-05/1.204, allocations: 90.41 kB / 0.7816 GB, free: 49.89 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005806/1.21, allocations: 3.496 MB / 0.785 GB, free: 46.45 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006208/1.211, allocations: 89.7 kB / 0.7851 GB, free: 46.35 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002116/1.213, allocations: 4.105 MB / 0.7891 GB, free: 42.38 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001479/1.214, allocations: 1.366 MB / 0.7904 GB, free: 41.03 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002601/1.217, allocations: 1.156 MB / 0.7915 GB, free: 39.86 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.821e-05/1.217, allocations: 301.1 kB / 0.7918 GB, free: 39.57 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003866/1.221, allocations: 2.557 MB / 0.7943 GB, free: 37 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005119/1.226, allocations: 5.019 MB / 0.7992 GB, free: 30.82 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009461/1.235, allocations: 8.229 MB / 0.8072 GB, free: 21.42 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.483e-05/1.236, allocations: 24 kB / 0.8073 GB, free: 21.4 MB / 494.1 MB Notification: Performance of matching and sorting (n=755) (initialization): time 0.01576/1.251, allocations: 8.507 MB / 0.8156 GB, free: 12.86 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.437e-05/1.251, allocations: 42.5 kB / 0.8156 GB, free: 12.82 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001473/1.252, allocations: 84 kB / 0.8157 GB, free: 12.74 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002305/1.254, allocations: 0.8502 MB / 0.8165 GB, free: 11.89 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004861/1.259, allocations: 1.345 MB / 0.8178 GB, free: 10.54 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01033/1.269, allocations: 7.575 MB / 0.8252 GB, free: 2.852 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004802/1.274, allocations: 327.5 kB / 0.8256 GB, free: 2.531 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00128/1.275, allocations: 303.9 kB / 0.8258 GB, free: 2.234 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.008445/1.284, allocations: 3.477 MB / 0.8292 GB, free: 14.75 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001743/1.285, allocations: 413.4 kB / 0.8296 GB, free: 14.34 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0148/1.3, allocations: 5.824 MB / 0.8353 GB, free: 8.48 MB / 0.4982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.11e-05/1.3, allocations: 40 kB / 0.8354 GB, free: 8.441 MB / 0.4982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.938e-05/1.3, allocations: 12 kB / 0.8354 GB, free: 8.43 MB / 0.4982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.618e-05/1.3, allocations: 23.91 kB / 0.8354 GB, free: 8.406 MB / 0.4982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03086/1.331, allocations: 14.51 MB / 0.8496 GB, free: 9.84 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.614e-05/1.331, allocations: 7.984 kB / 0.8496 GB, free: 9.832 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003146/1.334, allocations: 0.6753 MB / 0.8502 GB, free: 9.156 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00224/1.337, allocations: 0.709 MB / 0.8509 GB, free: 8.445 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000578/1.337, allocations: 91.97 kB / 0.851 GB, free: 8.355 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01057/1.348, allocations: 6.601 MB / 0.8575 GB, free: 1.645 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.472e-06/1.348, allocations: 4 kB / 0.8575 GB, free: 1.641 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0157/1.363, allocations: 8.579 MB / 0.8658 GB, free: 8.934 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003133/1.366, allocations: 0.8251 MB / 0.8666 GB, free: 8.105 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001092/1.368, allocations: 75.98 kB / 0.8667 GB, free: 8.031 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00253/1.37, allocations: 179.8 kB / 0.8669 GB, free: 7.855 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007684/1.371, allocations: 270.4 kB / 0.8672 GB, free: 7.59 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003511/1.371, allocations: 116 kB / 0.8673 GB, free: 7.477 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005013/1.376, allocations: 2.338 MB / 0.8695 GB, free: 5.148 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.7e-07/1.376, allocations: 0 / 0.8695 GB, free: 5.148 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008412/1.385, allocations: 1.512 MB / 0.871 GB, free: 3.637 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.01759/1.402, allocations: 9.294 MB / 0.8801 GB, free: 10.21 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0129/1.415, allocations: 6.174 MB / 0.8861 GB, free: 4.027 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.162e-05/1.415, allocations: 3.938 kB / 0.8861 GB, free: 4.023 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005905/1.421, allocations: 2.677 MB / 0.8887 GB, free: 1.336 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005474/1.427, allocations: 0.8999 MB / 0.8896 GB, free: 464 kB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3616/1.788, allocations: 51.41 MB / 0.9398 GB, free: 179.3 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01447/1.803, allocations: 5.893 MB / 0.9456 GB, free: 177.1 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.006986/1.81, allocations: 1.855 MB / 0.9474 GB, free: 176.9 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00614/1.816, allocations: 3.1 MB / 0.9504 GB, free: 174.3 MB / 0.5763 GB Notification: Performance of SimCode: time 1.974e-06/1.816, allocations: 1.281 kB / 0.9504 GB, free: 174.3 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1819/1.998, allocations: 122.2 MB / 1.07 GB, free: 69.94 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.35/23.35, allocations: 16.05 kB / 1.07 GB, free: 69.92 MB / 0.5763 GB " [Timeout remaining time 636] (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: 26.212459115005913] Failed to read output from testmodel.py, exit status != 0: 23.525073255004827 23.545453535 23.050980631 Calling exit ...