Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.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.001446/0.001446, allocations: 79.5 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.409/1.409, allocations: 177.2 MB / 200.1 MB, free: 8.312 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.001692/0.001692, allocations: 165.8 kB / 256.6 MB, free: 4.27 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.03932/0.03932, allocations: 6.66 MB / 319.6 MB, free: 5.355 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.SMEE_Synchronization2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2999,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2") translateModel(HanserModelica.SynchronousMachines.SMEE_Synchronization2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2999,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2") [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.002931/0.002931, allocations: 87.86 kB / 446.5 MB, free: 10.36 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1111, allocations: 55.57 MB / 0.4903 GB, free: 2.68 MB / 414.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization2): time 0.01938/0.1305, allocations: 14.32 MB / 0.5043 GB, free: 4.285 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.2518/0.3823, allocations: 5.269 MB / 0.5094 GB, free: 40.73 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002901/0.3852, allocations: 115.8 kB / 0.5095 GB, free: 40.73 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003565/0.3888, allocations: 1.213 MB / 0.5107 GB, free: 40.73 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005465/0.3942, allocations: 1.577 MB / 0.5122 GB, free: 40.7 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003264/0.3975, allocations: 1.007 MB / 0.5132 GB, free: 40.69 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.006939/0.4044, allocations: 4.75 MB / 0.5179 GB, free: 39.99 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002712/0.4071, allocations: 1.905 MB / 0.5197 GB, free: 39.19 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003588/0.4107, allocations: 2.175 MB / 0.5218 GB, free: 38.17 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004454/0.4152, allocations: 2.439 MB / 0.5242 GB, free: 37.19 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001074/0.4163, allocations: 0.567 MB / 0.5248 GB, free: 37.19 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002407/0.4187, allocations: 0.7881 MB / 0.5256 GB, free: 37.13 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009039/0.4196, allocations: 1.292 MB / 0.5268 GB, free: 36.3 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002612/0.4222, allocations: 1.949 MB / 0.5287 GB, free: 35.19 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007871/0.4301, allocations: 7.6 MB / 0.5361 GB, free: 32.6 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.132e-06/0.4301, allocations: 0 / 0.5361 GB, free: 32.6 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.4301, allocations: 0 / 0.5361 GB, free: 32.6 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002078/0.4303, allocations: 0 / 0.5361 GB, free: 32.6 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 965 * Number of variables: 965 Notification: Performance of Generate backend data structure: time 0.02046/0.4507, allocations: 5.035 MB / 0.5411 GB, free: 29.94 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.672e-05/0.4508, allocations: 13.83 kB / 0.5411 GB, free: 29.94 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009297/0.4601, allocations: 0.9781 MB / 0.542 GB, free: 29.64 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01005/0.4701, allocations: 2.8 MB / 0.5448 GB, free: 28.11 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003746/0.4705, allocations: 277.7 kB / 0.545 GB, free: 27.99 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001707/0.4722, allocations: 368.5 kB / 0.5454 GB, free: 27.87 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01456/0.4868, allocations: 4.935 MB / 0.5502 GB, free: 25.72 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001274/0.4869, allocations: 11.14 kB / 0.5502 GB, free: 25.71 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005135/0.4874, allocations: 154.2 kB / 0.5504 GB, free: 25.59 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001968/0.4876, allocations: 155.1 kB / 0.5505 GB, free: 25.58 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01251/0.5001, allocations: 4.041 MB / 0.5544 GB, free: 24.02 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03956/0.5397, allocations: 13.29 MB / 0.5674 GB, free: 16.2 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008568/0.5482, allocations: 2.741 MB / 0.5701 GB, free: 15.11 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003618/0.5519, allocations: 1.804 MB / 0.5719 GB, free: 14.54 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007143/0.559, allocations: 3.669 MB / 0.5754 GB, free: 12.23 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.418e-05/0.559, allocations: 50.25 kB / 0.5755 GB, free: 12.18 MB / 430.1 MB Notification: Performance of pre-optimization done (n=137): time 4.429e-06/0.559, allocations: 10.38 kB / 0.5755 GB, free: 12.18 MB / 430.1 MB Notification: Performance of matching and sorting (n=159): time 0.01284/0.5719, allocations: 6.208 MB / 0.5816 GB, free: 8.641 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.7e-05/0.5719, allocations: 71.78 kB / 0.5816 GB, free: 8.57 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00276/0.5747, allocations: 2.007 MB / 0.5836 GB, free: 7.438 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001673/0.5749, allocations: 51.98 kB / 0.5836 GB, free: 7.387 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008606/0.5757, allocations: 1.809 MB / 0.5854 GB, free: 5.801 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003841/0.5761, allocations: 0.5734 MB / 0.586 GB, free: 5.305 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005086/0.5766, allocations: 407 kB / 0.5864 GB, free: 5.066 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.685e-05/0.5767, allocations: 307 kB / 0.5866 GB, free: 4.766 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001127/0.5778, allocations: 0.8416 MB / 0.5875 GB, free: 4.32 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001389/0.5792, allocations: 1.633 MB / 0.5891 GB, free: 2.844 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002614/0.5818, allocations: 2.615 MB / 0.5916 GB, free: 0.8398 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.207e-05/0.5818, allocations: 5.969 kB / 0.5916 GB, free: 0.8398 MB / 430.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.005063/0.5869, allocations: 3.036 MB / 0.5946 GB, free: 14.19 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.314e-05/0.5869, allocations: 16 kB / 0.5946 GB, free: 14.18 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.327e-05/0.5869, allocations: 27.94 kB / 0.5946 GB, free: 14.15 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009577/0.5879, allocations: 347.9 kB / 0.595 GB, free: 13.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001822/0.5897, allocations: 0.4914 MB / 0.5954 GB, free: 13.31 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005901/0.5956, allocations: 4.952 MB / 0.6003 GB, free: 8.164 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002037/0.5976, allocations: 107.9 kB / 0.6004 GB, free: 8.059 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002221/0.5979, allocations: 103.9 kB / 0.6005 GB, free: 7.957 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 111 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (261): * Single equations (assignments): 258 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,13,100.0%), (1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002269/0.6001, allocations: 1.133 MB / 0.6016 GB, free: 6.812 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000528/0.6007, allocations: 226.6 kB / 0.6018 GB, free: 6.59 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004496/0.6052, allocations: 2.304 MB / 0.6041 GB, free: 4.262 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.672e-05/0.6052, allocations: 20 kB / 0.6041 GB, free: 4.242 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.748e-06/0.6052, allocations: 4 kB / 0.6041 GB, free: 4.238 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.918e-05/0.6052, allocations: 11.91 kB / 0.6041 GB, free: 4.227 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009622/0.6148, allocations: 4.841 MB / 0.6088 GB, free: 15.35 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.162e-06/0.6148, allocations: 0 / 0.6088 GB, free: 15.35 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001258/0.6161, allocations: 263.7 kB / 0.6091 GB, free: 15.09 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009801/0.6171, allocations: 370.3 kB / 0.6094 GB, free: 14.72 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001083/0.6172, allocations: 35.98 kB / 0.6095 GB, free: 14.69 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008047/0.6252, allocations: 6.95 MB / 0.6162 GB, free: 7.449 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.165e-06/0.6252, allocations: 12.03 kB / 0.6163 GB, free: 7.438 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006211/0.6314, allocations: 3.426 MB / 0.6196 GB, free: 3.965 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001345/0.6328, allocations: 410.4 kB / 0.62 GB, free: 3.562 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003947/0.6332, allocations: 28 kB / 0.62 GB, free: 3.535 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001115/0.6343, allocations: 63.95 kB / 0.6201 GB, free: 3.473 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002975/0.6346, allocations: 125 kB / 0.6202 GB, free: 3.348 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001173/0.6347, allocations: 48.36 kB / 0.6202 GB, free: 3.301 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002194/0.6369, allocations: 1.315 MB / 0.6215 GB, free: 1.965 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6369, allocations: 0 / 0.6215 GB, free: 1.965 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002694/0.6396, allocations: 0.6561 MB / 0.6222 GB, free: 1.309 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (smee.inertiaRotor.w,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.stator.stray.Phi.re,smee.stator.stray.Phi.im,constantTorque.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (130): * Single equations (assignments): 127 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,12,100.0%), (1,8,100.0%), (1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003672/0.64, allocations: 177.8 kB / 0.6223 GB, free: 1.129 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004245/0.6442, allocations: 2.343 MB / 0.6246 GB, free: 14.76 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.559e-06/0.6442, allocations: 0 / 0.6246 GB, free: 14.76 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002505/0.6467, allocations: 1.371 MB / 0.626 GB, free: 13.36 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003028/0.6498, allocations: 488.6 kB / 0.6264 GB, free: 12.88 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01328/0.663, allocations: 6.546 MB / 0.6328 GB, free: 6.289 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002566/0.6656, allocations: 1.986 MB / 0.6348 GB, free: 4.27 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001799/0.6674, allocations: 0.4907 MB / 0.6352 GB, free: 3.777 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004357/0.6678, allocations: 148.5 kB / 0.6354 GB, free: 3.629 MB / 478.1 MB Notification: Performance of SimCode: time 8.12e-07/0.6678, allocations: 0 / 0.6354 GB, free: 3.629 MB / 478.1 MB Notification: Performance of Templates: time 0.05744/0.7253, allocations: 29.74 MB / 0.6644 GB, free: 6.309 MB / 0.4981 GB " [Timeout remaining time 659] make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.makefile [Timeout 660] (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2 -abortSlowSimulation -alarm=480 -s ida -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.931652621016838] Failed to read output from testmodel.py, exit status != 0: 0.7368783119600266 0.751811176 0.31830228299999996 Calling exit ...