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.001492/0.001492, allocations: 77.86 kB / 19.76 MB, free: 2.031 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.39/1.39, allocations: 177.2 MB / 200.1 MB, free: 8.332 MB / 190.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.002434/0.002434, allocations: 163.9 kB / 256.6 MB, free: 4.285 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.04095/0.04095, allocations: 6.663 MB / 319.6 MB, free: 5.367 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: translateModel(HanserModelica.SynchronousMachines.SMR_MTPA,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA") translateModel(HanserModelica.SynchronousMachines.SMR_MTPA,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA") [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.002659/0.002659, allocations: 83.88 kB / 446.5 MB, free: 10.38 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1125, allocations: 55.57 MB / 0.4903 GB, free: 2.707 MB / 414.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_MTPA): time 0.2611/0.3735, allocations: 23.86 MB / 0.5136 GB, free: 40.67 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01832/0.3919, allocations: 7.822 MB / 0.5212 GB, free: 39.26 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007524/0.3994, allocations: 248.2 kB / 0.5214 GB, free: 39.18 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01784/0.4172, allocations: 7.802 MB / 0.5291 GB, free: 35.23 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009981/0.4272, allocations: 2.736 MB / 0.5317 GB, free: 33.56 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005596/0.4328, allocations: 1.813 MB / 0.5335 GB, free: 32.47 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01199/0.4448, allocations: 9.821 MB / 0.5431 GB, free: 27.41 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01929/0.4641, allocations: 13.73 MB / 0.5565 GB, free: 19.74 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007554/0.4716, allocations: 5.398 MB / 0.5618 GB, free: 17.09 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01026/0.4819, allocations: 5.77 MB / 0.5674 GB, free: 14.32 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004709/0.4866, allocations: 1.515 MB / 0.5689 GB, free: 14.32 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007405/0.494, allocations: 1.879 MB / 0.5707 GB, free: 14.2 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004901/0.4989, allocations: 2.944 MB / 0.5736 GB, free: 12.13 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01106/0.51, allocations: 4.45 MB / 0.5779 GB, free: 9.434 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02442/0.5344, allocations: 20.42 MB / 0.5979 GB, free: 12.82 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.5344, allocations: 0 / 0.5979 GB, free: 12.82 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.5344, allocations: 0 / 0.5979 GB, free: 12.82 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0006156/0.535, allocations: 3.938 kB / 0.5979 GB, free: 12.82 MB / 446.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.04042/0.5754, allocations: 11.76 MB / 0.6094 GB, free: 2.539 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.917e-05/0.5755, allocations: 11.97 kB / 0.6094 GB, free: 2.527 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03294/0.6084, allocations: 5.562 MB / 0.6148 GB, free: 12.95 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01566/0.6241, allocations: 6.265 MB / 0.6209 GB, free: 6.621 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008514/0.6249, allocations: 0.6904 MB / 0.6216 GB, free: 5.93 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004011/0.6289, allocations: 0.9139 MB / 0.6225 GB, free: 5.016 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04515/0.6741, allocations: 15.04 MB / 0.6372 GB, free: 5.898 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000367/0.6745, allocations: 11.95 kB / 0.6372 GB, free: 5.887 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003401/0.6779, allocations: 380.8 kB / 0.6376 GB, free: 5.516 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006642/0.6785, allocations: 0.5113 MB / 0.6381 GB, free: 5.004 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03784/0.7164, allocations: 13.56 MB / 0.6513 GB, free: 7.434 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08854/0.8049, allocations: 40.51 MB / 0.6909 GB, free: 13.89 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01545/0.8203, allocations: 7.852 MB / 0.6985 GB, free: 7.242 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005225/0.8256, allocations: 2.749 MB / 0.7012 GB, free: 4.496 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000376/0.826, allocations: 94.88 kB / 0.7013 GB, free: 4.402 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.918e-05/0.826, allocations: 73.52 kB / 0.7014 GB, free: 4.32 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=375): time 6.412e-06/0.826, allocations: 0 / 0.7014 GB, free: 4.32 MB / 0.5294 GB Notification: Performance of matching and sorting (n=382): time 0.03557/0.8616, allocations: 14.53 MB / 0.7156 GB, free: 5.719 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.455e-05/0.8617, allocations: 90.41 kB / 0.7156 GB, free: 5.617 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006786/0.8685, allocations: 3.447 MB / 0.719 GB, free: 2.164 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0007622/0.8693, allocations: 89.7 kB / 0.7191 GB, free: 2.07 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.2461/1.115, allocations: 4.091 MB / 0.7231 GB, free: 150 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002027/1.117, allocations: 1.374 MB / 0.7244 GB, free: 149.2 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002498/1.12, allocations: 1.156 MB / 0.7256 GB, free: 149.1 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 6.159e-05/1.12, allocations: 303 kB / 0.7259 GB, free: 148.8 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00475/1.125, allocations: 2.551 MB / 0.7283 GB, free: 148.6 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005218/1.13, allocations: 5.032 MB / 0.7333 GB, free: 144.5 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01216/1.142, allocations: 8.224 MB / 0.7413 GB, free: 138.8 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001395/1.142, allocations: 25.06 kB / 0.7413 GB, free: 138.8 MB / 0.545 GB Notification: Performance of matching and sorting (n=755) (initialization): time 0.01512/1.157, allocations: 8.488 MB / 0.7496 GB, free: 135.4 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 8.781e-05/1.157, allocations: 42.34 kB / 0.7496 GB, free: 135.4 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001758/1.158, allocations: 81.28 kB / 0.7497 GB, free: 135.4 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002183/1.16, allocations: 0.8359 MB / 0.7505 GB, free: 135.2 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005005/1.165, allocations: 1.341 MB / 0.7518 GB, free: 135.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009263/1.174, allocations: 7.332 MB / 0.759 GB, free: 131 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004602/1.179, allocations: 324.5 kB / 0.7593 GB, free: 130.9 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001198/1.18, allocations: 305.6 kB / 0.7596 GB, free: 130.8 MB / 0.545 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.008267/1.188, allocations: 3.483 MB / 0.763 GB, free: 129.1 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009963/1.189, allocations: 395.8 kB / 0.7634 GB, free: 128.9 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009855/1.199, allocations: 5.821 MB / 0.7691 GB, free: 126.6 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.503e-05/1.199, allocations: 43.5 kB / 0.7691 GB, free: 126.5 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.705e-05/1.199, allocations: 7.844 kB / 0.7691 GB, free: 126.5 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.067e-05/1.199, allocations: 20.67 kB / 0.7691 GB, free: 126.5 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02603/1.225, allocations: 12.61 MB / 0.7815 GB, free: 121.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.05e-05/1.225, allocations: 8.438 kB / 0.7815 GB, free: 121.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002969/1.228, allocations: 0.6738 MB / 0.7821 GB, free: 121.4 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0022/1.23, allocations: 0.6962 MB / 0.7828 GB, free: 121.3 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006931/1.231, allocations: 87.39 kB / 0.7829 GB, free: 121.2 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008058/1.239, allocations: 6.373 MB / 0.7891 GB, free: 117.6 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.422e-06/1.239, allocations: 11.81 kB / 0.7891 GB, free: 117.6 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01166/1.251, allocations: 8.54 MB / 0.7975 GB, free: 113.8 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002522/1.253, allocations: 0.7992 MB / 0.7982 GB, free: 113.4 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005792/1.254, allocations: 78.33 kB / 0.7983 GB, free: 113.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001758/1.256, allocations: 173.9 kB / 0.7985 GB, free: 113.3 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005052/1.256, allocations: 276.4 kB / 0.7987 GB, free: 113.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002221/1.256, allocations: 119.1 kB / 0.7989 GB, free: 113.2 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003751/1.26, allocations: 2.208 MB / 0.801 GB, free: 112.4 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.9e-07/1.26, allocations: 3.938 kB / 0.801 GB, free: 112.4 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007/1.267, allocations: 1.506 MB / 0.8025 GB, free: 112.3 MB / 0.545 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.0009028/1.268, allocations: 260.3 kB / 0.8027 GB, free: 112.1 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01001/1.278, allocations: 6.168 MB / 0.8088 GB, free: 106.8 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.323e-05/1.278, allocations: 2.719 kB / 0.8088 GB, free: 106.8 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004857/1.283, allocations: 2.671 MB / 0.8114 GB, free: 104.5 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005573/1.288, allocations: 0.8328 MB / 0.8122 GB, free: 103.8 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02845/1.317, allocations: 15.64 MB / 0.8275 GB, free: 89.5 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00594/1.323, allocations: 5.444 MB / 0.8328 GB, free: 84.09 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004302/1.327, allocations: 1.835 MB / 0.8346 GB, free: 82.25 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009171/1.328, allocations: 344.4 kB / 0.8349 GB, free: 81.91 MB / 0.545 GB Notification: Performance of SimCode: time 1.442e-06/1.328, allocations: 0 / 0.8349 GB, free: 81.91 MB / 0.545 GB Notification: Performance of Templates: time 0.0868/1.415, allocations: 52.99 MB / 0.8866 GB, free: 29.56 MB / 0.545 GB " [Timeout remaining time 659] make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.makefile [Timeout 660] (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 & ./HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA -abortSlowSimulation -alarm=480 -s ida -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 7.850505331065506] Failed to read output from testmodel.py, exit status != 0: 1.4249071639496833 1.43473946 0.897759154 Calling exit ...