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.00113/0.00113, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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 0.8767/0.8767, allocations: 177.2 MB / 199.4 MB, free: 5.941 MB / 186.7 MB " [Timeout remaining time 179] 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.001093/0.001093, allocations: 159.8 kB / 256 MB, free: 13.36 MB / 250.7 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.02184/0.02184, allocations: 6.665 MB / 319 MB, free: 26.78 MB / 266.7 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: Performance of FrontEnd - loaded program: time 2.265e-06/2.265e-06, allocations: 0 / 445.4 MB, free: 37.62 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.271e-05/1.498e-05, allocations: 6.219 kB / 445.4 MB, free: 37.62 MB / 330.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_MTPA): time 0.01383/0.01385, allocations: 23.89 MB / 469.3 MB, free: 13.62 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.01252/0.02637, allocations: 7.823 MB / 477.1 MB, free: 5.773 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004496/0.03086, allocations: 250.8 kB / 477.4 MB, free: 5.527 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007636/0.0385, allocations: 7.825 MB / 485.2 MB, free: 13.68 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005996/0.0445, allocations: 2.798 MB / 488 MB, free: 10.87 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00243/0.04693, allocations: 1.831 MB / 489.8 MB, free: 9.047 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.007268/0.05419, allocations: 10.13 MB / 500 MB, free: 14.88 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01279/0.06698, allocations: 13.78 MB / 0.5017 GB, free: 0.9531 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008993/0.07598, allocations: 7.964 MB / 0.5095 GB, free: 8.977 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005281/0.08126, allocations: 5.181 MB / 0.5145 GB, free: 3.785 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001668/0.08292, allocations: 1.516 MB / 0.516 GB, free: 2.27 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00214/0.08506, allocations: 1.894 MB / 0.5179 GB, free: 384 kB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001557/0.08662, allocations: 2.992 MB / 0.5208 GB, free: 13.38 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003067/0.08969, allocations: 3.836 MB / 0.5245 GB, free: 9.531 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01255/0.1022, allocations: 20.59 MB / 0.5446 GB, free: 4.883 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.603e-06/0.1022, allocations: 4 kB / 0.5446 GB, free: 4.879 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1022, allocations: 8 kB / 0.5446 GB, free: 4.871 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002819/0.1025, allocations: 0 / 0.5446 GB, free: 4.871 MB / 410.7 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.2801/0.3826, allocations: 11.66 MB / 0.556 GB, free: 94.59 MB / 410.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.885e-05/0.3826, allocations: 11.56 kB / 0.556 GB, free: 94.59 MB / 410.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001037/0.3837, allocations: 1.321 MB / 0.5573 GB, free: 93.32 MB / 410.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01307/0.3968, allocations: 5.565 MB / 0.5628 GB, free: 87.82 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005834/0.4026, allocations: 6.268 MB / 0.5689 GB, free: 81.92 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002179/0.4028, allocations: 0.6901 MB / 0.5696 GB, free: 81.24 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008256/0.4036, allocations: 0.9065 MB / 0.5704 GB, free: 80.34 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01353/0.4172, allocations: 15.04 MB / 0.5851 GB, free: 65.26 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001267/0.4173, allocations: 27.89 kB / 0.5852 GB, free: 65.23 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005996/0.4179, allocations: 379.8 kB / 0.5855 GB, free: 64.87 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000249/0.4181, allocations: 0.5151 MB / 0.586 GB, free: 64.36 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01258/0.4307, allocations: 13.55 MB / 0.5993 GB, free: 50.79 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03225/0.463, allocations: 41.83 MB / 0.6401 GB, free: 8.641 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006511/0.4695, allocations: 7.854 MB / 0.6478 GB, free: 1.992 MB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002445/0.4719, allocations: 2.751 MB / 0.6505 GB, free: 15.24 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002307/0.4722, allocations: 90.88 kB / 0.6506 GB, free: 15.15 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.176e-05/0.4722, allocations: 69.52 kB / 0.6506 GB, free: 15.07 MB / 426.8 MB Notification: Performance of pre-optimization done (n=375): time 5.32e-06/0.4722, allocations: 0 / 0.6506 GB, free: 15.07 MB / 426.8 MB Notification: Performance of matching and sorting (n=382): time 0.01877/0.491, allocations: 14.55 MB / 0.6648 GB, free: 0.5977 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.813e-05/0.491, allocations: 90.41 kB / 0.6649 GB, free: 0.4961 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003464/0.4945, allocations: 3.623 MB / 0.6684 GB, free: 12.88 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001462/0.4947, allocations: 85.7 kB / 0.6685 GB, free: 12.79 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001616/0.4963, allocations: 4.081 MB / 0.6725 GB, free: 8.695 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006794/0.4969, allocations: 1.356 MB / 0.6738 GB, free: 7.355 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001046/0.498, allocations: 1.14 MB / 0.675 GB, free: 6.203 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 6.746e-05/0.4981, allocations: 309.1 kB / 0.6752 GB, free: 5.898 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002707/0.5008, allocations: 2.553 MB / 0.6777 GB, free: 3.34 MB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003612/0.5044, allocations: 5.044 MB / 0.6827 GB, free: 13.13 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006629/0.511, allocations: 8.222 MB / 0.6907 GB, free: 3.734 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.501e-05/0.511, allocations: 24 kB / 0.6907 GB, free: 3.711 MB / 458.8 MB Notification: Performance of matching and sorting (n=755) (initialization): time 0.008923/0.52, allocations: 8.495 MB / 0.699 GB, free: 11.19 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.561e-05/0.52, allocations: 46.59 kB / 0.6991 GB, free: 11.14 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.278e-05/0.5201, allocations: 80.84 kB / 0.6991 GB, free: 11.07 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001324/0.5214, allocations: 0.8376 MB / 0.7 GB, free: 10.23 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002317/0.5237, allocations: 1.338 MB / 0.7013 GB, free: 8.891 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006745/0.5305, allocations: 7.387 MB / 0.7085 GB, free: 1.398 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002573/0.533, allocations: 323.5 kB / 0.7088 GB, free: 1.082 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003129/0.5333, allocations: 308 kB / 0.7091 GB, free: 0.7812 MB / 474.8 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.004148/0.5375, allocations: 3.482 MB / 0.7125 GB, free: 13.29 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006148/0.5381, allocations: 417.3 kB / 0.7129 GB, free: 12.88 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00628/0.5444, allocations: 5.813 MB / 0.7186 GB, free: 7.027 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-05/0.5444, allocations: 40 kB / 0.7186 GB, free: 6.988 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.204e-05/0.5444, allocations: 8 kB / 0.7186 GB, free: 6.98 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.159e-05/0.5444, allocations: 19.92 kB / 0.7186 GB, free: 6.961 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0144/0.5588, allocations: 13.9 MB / 0.7322 GB, free: 8.941 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.618e-06/0.5589, allocations: 8.031 kB / 0.7322 GB, free: 8.934 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001336/0.5602, allocations: 0.6747 MB / 0.7329 GB, free: 8.258 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001084/0.5613, allocations: 0.7011 MB / 0.7335 GB, free: 7.555 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001542/0.5614, allocations: 87.97 kB / 0.7336 GB, free: 7.469 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005757/0.5672, allocations: 6.416 MB / 0.7399 GB, free: 0.9375 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.19e-06/0.5672, allocations: 11.94 kB / 0.7399 GB, free: 0.9258 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1666/0.7338, allocations: 8.541 MB / 0.7482 GB, free: 167.1 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001252/0.735, allocations: 0.8247 MB / 0.7491 GB, free: 166.9 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002685/0.7353, allocations: 77.28 kB / 0.7491 GB, free: 166.8 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008845/0.7362, allocations: 176.4 kB / 0.7493 GB, free: 166.8 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003236/0.7365, allocations: 272.1 kB / 0.7496 GB, free: 166.8 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000143/0.7366, allocations: 120.7 kB / 0.7497 GB, free: 166.7 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.002157/0.7388, allocations: 2.328 MB / 0.7519 GB, free: 165.9 MB / 0.4949 GB Notification: Performance of sort global known variables: time 7.1e-08/0.7388, allocations: 0 / 0.7519 GB, free: 165.9 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.003215/0.742, allocations: 1.514 MB / 0.7534 GB, free: 165.7 MB / 0.4949 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.00704/0.7491, allocations: 9.248 MB / 0.7625 GB, free: 161.6 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.005434/0.7545, allocations: 6.167 MB / 0.7685 GB, free: 157.4 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.7545, allocations: 3.969 kB / 0.7685 GB, free: 157.4 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.002129/0.7566, allocations: 2.66 MB / 0.7711 GB, free: 155.1 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002176/0.7588, allocations: 0.9061 MB / 0.772 GB, free: 154.4 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04638/0.8052, allocations: 51.31 MB / 0.8221 GB, free: 102.8 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003122/0.8083, allocations: 5.442 MB / 0.8274 GB, free: 97.3 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.002446/0.8107, allocations: 1.856 MB / 0.8292 GB, free: 95.44 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00208/0.8128, allocations: 3.105 MB / 0.8322 GB, free: 92.33 MB / 0.4949 GB Notification: Performance of SimCode: time 9.72e-07/0.8128, allocations: 0 / 0.8322 GB, free: 92.33 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.257/1.07, allocations: 118.8 MB / 0.9482 GB, free: 160.3 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.26/12.33, allocations: 0.6562 kB / 0.9482 GB, free: 160.3 MB / 0.5105 GB " [Timeout remaining time 648] (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: 14.371964456513524] Failed to read output from testmodel.py, exit status != 0: 12.469401826150715 12.479561514 12.375659792 Calling exit ...