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.00178/0.00178, allocations: 108.9 kB / 16.46 MB, free: 6.453 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.566/1.566, allocations: 230.6 MB / 249.8 MB, free: 9.215 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.001702/0.001702, allocations: 223.4 kB / 306 MB, free: 4.293 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.04164/0.04164, allocations: 8.901 MB / 371 MB, free: 3.43 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.00264/0.00264, allocations: 79.88 kB / 495.8 MB, free: 9.801 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.299/0.3017, allocations: 55.56 MB / 0.5384 GB, free: 26.61 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_MTPA): time 0.02139/0.3231, allocations: 27.82 MB / 0.5656 GB, free: 6.531 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01732/0.3404, allocations: 8.136 MB / 0.5735 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00745/0.3478, allocations: 249.2 kB / 0.5737 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02168/0.3695, allocations: 8.021 MB / 0.5816 GB, free: 11.8 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01098/0.3805, allocations: 2.748 MB / 0.5843 GB, free: 10.07 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006701/0.3872, allocations: 1.851 MB / 0.5861 GB, free: 8.629 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01623/0.4034, allocations: 9.745 MB / 0.5956 GB, free: 2.629 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03018/0.4336, allocations: 16.22 MB / 0.6114 GB, free: 3.098 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01242/0.446, allocations: 5.365 MB / 0.6167 GB, free: 13.72 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01349/0.4595, allocations: 6.012 MB / 0.6225 GB, free: 7.688 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00496/0.4645, allocations: 1.52 MB / 0.624 GB, free: 6.168 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007346/0.4718, allocations: 1.898 MB / 0.6259 GB, free: 4.27 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006124/0.478, allocations: 2.942 MB / 0.6288 GB, free: 1.32 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01339/0.4913, allocations: 5.732 MB / 0.6344 GB, free: 11.57 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0347/0.526, allocations: 20.34 MB / 0.6542 GB, free: 7.16 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.978e-06/0.526, allocations: 0 / 0.6542 GB, free: 7.16 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.876e-06/0.5261, allocations: 4 kB / 0.6542 GB, free: 7.156 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.000654/0.5267, allocations: 0 / 0.6542 GB, free: 7.156 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.04018/0.5669, allocations: 11.84 MB / 0.6658 GB, free: 11.22 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.043e-05/0.5669, allocations: 8.031 kB / 0.6658 GB, free: 11.21 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006125/0.5731, allocations: 1.332 MB / 0.6671 GB, free: 9.871 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03352/0.6066, allocations: 5.559 MB / 0.6725 GB, free: 4.301 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02072/0.6273, allocations: 6.223 MB / 0.6786 GB, free: 14.02 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001202/0.6285, allocations: 0.6865 MB / 0.6793 GB, free: 13.33 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004002/0.6325, allocations: 0.9139 MB / 0.6802 GB, free: 12.42 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.5122/1.145, allocations: 14.89 MB / 0.6947 GB, free: 102.1 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003073/1.145, allocations: 15.89 kB / 0.6947 GB, free: 102.1 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001817/1.147, allocations: 382 kB / 0.6951 GB, free: 102 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006254/1.148, allocations: 0.5085 MB / 0.6956 GB, free: 101.9 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02529/1.173, allocations: 13.62 MB / 0.7089 GB, free: 96.91 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08074/1.254, allocations: 46.55 MB / 0.7543 GB, free: 66.87 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01722/1.271, allocations: 27.95 MB / 0.7816 GB, free: 38.48 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004923/1.276, allocations: 2.757 MB / 0.7843 GB, free: 37.07 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005705/1.276, allocations: 352.2 kB / 0.7846 GB, free: 36.75 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.641e-05/1.276, allocations: 68.23 kB / 0.7847 GB, free: 36.68 MB / 494.1 MB Notification: Performance of pre-optimization done (n=375): time 6.552e-06/1.276, allocations: 0 / 0.7847 GB, free: 36.68 MB / 494.1 MB Notification: Performance of matching and sorting (n=382): time 0.03266/1.309, allocations: 14.77 MB / 0.7991 GB, free: 23.31 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.638e-05/1.309, allocations: 90.41 kB / 0.7992 GB, free: 23.21 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005317/1.314, allocations: 3.486 MB / 0.8026 GB, free: 19.77 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005698/1.315, allocations: 89.7 kB / 0.8027 GB, free: 19.68 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001875/1.317, allocations: 4.102 MB / 0.8067 GB, free: 15.71 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001331/1.318, allocations: 1.374 MB / 0.808 GB, free: 14.36 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002513/1.321, allocations: 1.152 MB / 0.8092 GB, free: 13.2 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.432e-05/1.321, allocations: 305.1 kB / 0.8095 GB, free: 12.89 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003744/1.324, allocations: 2.557 MB / 0.812 GB, free: 10.33 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004976/1.329, allocations: 5.013 MB / 0.8169 GB, free: 4.16 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01163/1.341, allocations: 8.226 MB / 0.8249 GB, free: 10.76 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001007/1.341, allocations: 20 kB / 0.8249 GB, free: 10.74 MB / 0.4982 GB Notification: Performance of matching and sorting (n=755) (initialization): time 0.02052/1.362, allocations: 8.522 MB / 0.8332 GB, free: 2.188 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001438/1.362, allocations: 43.97 kB / 0.8333 GB, free: 2.148 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001888/1.362, allocations: 80 kB / 0.8333 GB, free: 2.07 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002816/1.365, allocations: 0.8496 MB / 0.8342 GB, free: 1.223 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00587/1.371, allocations: 1.349 MB / 0.8355 GB, free: 15.87 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01379/1.384, allocations: 7.661 MB / 0.843 GB, free: 8.066 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004493/1.389, allocations: 327.5 kB / 0.8433 GB, free: 7.746 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001183/1.39, allocations: 311.9 kB / 0.8436 GB, free: 7.441 MB / 0.5138 GB 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.007653/1.398, allocations: 3.475 MB / 0.847 GB, free: 3.953 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001472/1.399, allocations: 409.4 kB / 0.8474 GB, free: 3.551 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01422/1.414, allocations: 5.844 MB / 0.8531 GB, free: 13.67 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.45e-05/1.414, allocations: 40 kB / 0.8531 GB, free: 13.63 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.234e-05/1.414, allocations: 8 kB / 0.8531 GB, free: 13.62 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.373e-05/1.414, allocations: 19.92 kB / 0.8531 GB, free: 13.61 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03511/1.449, allocations: 14.5 MB / 0.8673 GB, free: 15.05 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.407e-05/1.449, allocations: 4 kB / 0.8673 GB, free: 15.04 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003353/1.452, allocations: 0.6748 MB / 0.868 GB, free: 14.37 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002475/1.455, allocations: 0.7017 MB / 0.8687 GB, free: 13.66 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007186/1.455, allocations: 87.97 kB / 0.8687 GB, free: 13.58 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01136/1.467, allocations: 6.71 MB / 0.8753 GB, free: 6.73 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.594e-06/1.467, allocations: 8 kB / 0.8753 GB, free: 6.723 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01718/1.484, allocations: 8.576 MB / 0.8837 GB, free: 14.02 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002671/1.487, allocations: 0.8887 MB / 0.8845 GB, free: 13.11 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001155/1.488, allocations: 76.06 kB / 0.8846 GB, free: 13.04 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002744/1.49, allocations: 179.8 kB / 0.8848 GB, free: 12.86 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008532/1.491, allocations: 262.6 kB / 0.885 GB, free: 12.6 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004986/1.492, allocations: 116 kB / 0.8851 GB, free: 12.48 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.005471/1.497, allocations: 2.334 MB / 0.8874 GB, free: 10.16 MB / 0.5607 GB Notification: Performance of sort global known variables: time 5.01e-07/1.497, allocations: 0 / 0.8874 GB, free: 10.16 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.007498/1.505, allocations: 1.516 MB / 0.8889 GB, free: 8.645 MB / 0.5607 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.02021/1.525, allocations: 9.294 MB / 0.898 GB, free: 15.23 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01411/1.539, allocations: 6.17 MB / 0.904 GB, free: 9.051 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.025e-05/1.539, allocations: 4 kB / 0.904 GB, free: 9.047 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.006141/1.545, allocations: 2.677 MB / 0.9066 GB, free: 6.359 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006543/1.552, allocations: 0.8903 MB / 0.9075 GB, free: 5.488 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3672/1.919, allocations: 51.28 MB / 0.9576 GB, free: 171.8 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008036/1.927, allocations: 5.894 MB / 0.9633 GB, free: 169.6 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.004455/1.931, allocations: 1.86 MB / 0.9651 GB, free: 169.4 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004627/1.936, allocations: 3.105 MB / 0.9682 GB, free: 166.8 MB / 0.5763 GB Notification: Performance of SimCode: time 2.284e-06/1.936, allocations: 0 / 0.9682 GB, free: 166.8 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1649/2.101, allocations: 117 MB / 1.082 GB, free: 52.74 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.18/22.28, allocations: 12.03 kB / 1.082 GB, free: 52.73 MB / 0.5763 GB " [Timeout remaining time 638] (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: 25.290992214009748] Failed to read output from testmodel.py, exit status != 0: 22.426941028999863 22.43706932 21.908054297 Calling exit ...