Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.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.001456/0.001456, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.825/1.825, allocations: 230.6 MB / 252.6 MB, free: 8.281 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.002033/0.002033, allocations: 222 kB / 309.2 MB, free: 3.125 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.04171/0.04171, allocations: 8.907 MB / 374.6 MB, free: 1.891 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_Synchronization3,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2999,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3") translateModel(HanserModelica.SynchronousMachines.SMEE_Synchronization3,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2999,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3") [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.003433/0.003433, allocations: 81.72 kB / 0.4897 GB, free: 4.281 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1496/0.153, allocations: 55.62 MB / 0.544 GB, free: 4.504 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization3): time 0.02202/0.175, allocations: 16.57 MB / 0.5602 GB, free: 3.855 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01202/0.1871, allocations: 5.598 MB / 0.5657 GB, free: 14.24 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003057/0.1901, allocations: 115.4 kB / 0.5658 GB, free: 14.12 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005188/0.1953, allocations: 1.255 MB / 0.567 GB, free: 12.86 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/SynchronousMachines/SMEE_Synchronization1.mo:18:3-19:30:writable] Warning: Conditional component 'ir' is used in a non-connect context. Notification: Performance of NFTyping.typeBindings: time 0.005881/0.2012, allocations: 1.612 MB / 0.5686 GB, free: 11.24 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003315/0.2045, allocations: 1.05 MB / 0.5696 GB, free: 10.19 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00781/0.2123, allocations: 4.754 MB / 0.5743 GB, free: 5.422 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004304/0.2166, allocations: 1.991 MB / 0.5762 GB, free: 3.363 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004004/0.2206, allocations: 2.165 MB / 0.5783 GB, free: 1.191 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005311/0.2259, allocations: 2.604 MB / 0.5809 GB, free: 14.57 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002041/0.228, allocations: 0.5742 MB / 0.5814 GB, free: 14 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003208/0.2312, allocations: 0.8043 MB / 0.5822 GB, free: 13.2 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002259/0.2334, allocations: 1.305 MB / 0.5835 GB, free: 11.89 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006038/0.2395, allocations: 2.454 MB / 0.5859 GB, free: 9.426 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01161/0.2511, allocations: 7.572 MB / 0.5933 GB, free: 1.828 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.264e-06/0.2511, allocations: 0 / 0.5933 GB, free: 1.828 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2511, allocations: 0 / 0.5933 GB, free: 1.828 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002011/0.2513, allocations: 0 / 0.5933 GB, free: 1.828 MB / 398.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.01393/0.2652, allocations: 5.054 MB / 0.5982 GB, free: 12.71 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.278e-05/0.2653, allocations: 8.031 kB / 0.5982 GB, free: 12.7 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005412/0.2707, allocations: 0.978 MB / 0.5992 GB, free: 11.72 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006948/0.2776, allocations: 2.802 MB / 0.6019 GB, free: 8.879 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002864/0.2779, allocations: 283.8 kB / 0.6022 GB, free: 8.602 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008265/0.2787, allocations: 380 kB / 0.6025 GB, free: 8.23 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009631/0.2884, allocations: 4.772 MB / 0.6072 GB, free: 3.414 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.893e-05/0.2885, allocations: 11.92 kB / 0.6072 GB, free: 3.402 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003581/0.2888, allocations: 148 kB / 0.6074 GB, free: 3.258 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001658/0.289, allocations: 151.4 kB / 0.6075 GB, free: 3.109 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007901/0.2969, allocations: 4.058 MB / 0.6115 GB, free: 15.05 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03088/0.3278, allocations: 15.14 MB / 0.6262 GB, free: 15.48 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005514/0.3333, allocations: 2.757 MB / 0.6289 GB, free: 12.84 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003857/0.3371, allocations: 1.803 MB / 0.6307 GB, free: 11.04 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008655/0.3458, allocations: 4.083 MB / 0.6347 GB, free: 6.922 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.132e-05/0.3458, allocations: 51.81 kB / 0.6347 GB, free: 6.863 MB / 446.1 MB Notification: Performance of pre-optimization done (n=137): time 2.945e-06/0.3458, allocations: 0 / 0.6347 GB, free: 6.863 MB / 446.1 MB Notification: Performance of matching and sorting (n=159): time 0.01424/0.3601, allocations: 6.222 MB / 0.6408 GB, free: 0.6016 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.437e-05/0.3602, allocations: 68.72 kB / 0.6409 GB, free: 0.5195 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003826/0.364, allocations: 2.216 MB / 0.643 GB, free: 14.27 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002124/0.3642, allocations: 53.7 kB / 0.6431 GB, free: 14.21 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001566/0.3658, allocations: 1.803 MB / 0.6448 GB, free: 12.39 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006302/0.3664, allocations: 0.5694 MB / 0.6454 GB, free: 11.82 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006741/0.3671, allocations: 412.1 kB / 0.6458 GB, free: 11.41 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001407/0.3672, allocations: 305.1 kB / 0.6461 GB, free: 11.11 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001538/0.3687, allocations: 0.8399 MB / 0.6469 GB, free: 10.26 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002215/0.371, allocations: 1.601 MB / 0.6485 GB, free: 8.309 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003946/0.3749, allocations: 2.612 MB / 0.651 GB, free: 5.355 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.68e-05/0.3749, allocations: 8 kB / 0.651 GB, free: 5.348 MB / 462.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.005909/0.3808, allocations: 3.053 MB / 0.654 GB, free: 2.277 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.585e-05/0.3809, allocations: 16 kB / 0.654 GB, free: 2.262 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.656e-05/0.3809, allocations: 28.03 kB / 0.6541 GB, free: 2.234 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009892/0.3819, allocations: 346.3 kB / 0.6544 GB, free: 1.887 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001865/0.3838, allocations: 0.4953 MB / 0.6549 GB, free: 1.391 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2404/0.6242, allocations: 5.061 MB / 0.6598 GB, free: 94.43 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001992/0.6262, allocations: 100.9 kB / 0.6599 GB, free: 94.43 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001879/0.6264, allocations: 107.6 kB / 0.66 GB, free: 94.42 MB / 462.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.001978/0.6283, allocations: 1.128 MB / 0.6611 GB, free: 94.12 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004593/0.6288, allocations: 248.6 kB / 0.6613 GB, free: 94.12 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004373/0.6332, allocations: 2.326 MB / 0.6636 GB, free: 93.16 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.365e-05/0.6332, allocations: 15.59 kB / 0.6636 GB, free: 93.16 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.818e-05/0.6332, allocations: 8.188 kB / 0.6636 GB, free: 93.16 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.012e-05/0.6332, allocations: 7.594 kB / 0.6636 GB, free: 93.16 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008897/0.6421, allocations: 5.644 MB / 0.6692 GB, free: 90.69 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.734e-06/0.6421, allocations: 2.094 kB / 0.6692 GB, free: 90.69 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001157/0.6433, allocations: 272.7 kB / 0.6694 GB, free: 90.67 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008442/0.6441, allocations: 365.2 kB / 0.6698 GB, free: 90.55 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.517e-05/0.6442, allocations: 43.22 kB / 0.6698 GB, free: 90.52 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005577/0.6498, allocations: 7.093 MB / 0.6767 GB, free: 84.89 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.6498, allocations: 4.766 kB / 0.6767 GB, free: 84.89 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004558/0.6544, allocations: 3.454 MB / 0.6801 GB, free: 83.41 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009379/0.6553, allocations: 446.9 kB / 0.6805 GB, free: 83.27 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003511/0.6557, allocations: 27.88 kB / 0.6806 GB, free: 83.25 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00103/0.6567, allocations: 69.97 kB / 0.6806 GB, free: 83.23 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000214/0.6569, allocations: 123.7 kB / 0.6808 GB, free: 83.21 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.366e-05/0.657, allocations: 47.36 kB / 0.6808 GB, free: 83.2 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001866/0.6589, allocations: 1.494 MB / 0.6823 GB, free: 82.61 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.6589, allocations: 0 / 0.6823 GB, free: 82.61 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002298/0.6612, allocations: 0.6549 MB / 0.6829 GB, free: 82.55 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.0002848/0.6614, allocations: 169 kB / 0.6831 GB, free: 82.42 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003342/0.6648, allocations: 2.335 MB / 0.6853 GB, free: 81.41 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.6648, allocations: 3.656 kB / 0.6853 GB, free: 81.41 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001734/0.6665, allocations: 1.374 MB / 0.6867 GB, free: 80.67 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002313/0.6688, allocations: 0.583 MB / 0.6873 GB, free: 80.48 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009298/0.6781, allocations: 6.586 MB / 0.6937 GB, free: 75.66 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001588/0.6797, allocations: 2.535 MB / 0.6962 GB, free: 73.1 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001509/0.6812, allocations: 0.5161 MB / 0.6967 GB, free: 72.58 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003785/0.6816, allocations: 160.3 kB / 0.6968 GB, free: 72.42 MB / 462.1 MB Notification: Performance of SimCode: time 1.332e-06/0.6816, allocations: 0 / 0.6968 GB, free: 72.42 MB / 462.1 MB Notification: Performance of Templates: time 0.04702/0.7286, allocations: 33.02 MB / 0.7291 GB, free: 39.8 MB / 462.1 MB " [Timeout remaining time 659] make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.makefile [Timeout 660] (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 7.107629995793104] Failed to read output from testmodel.py, exit status != 0: 0.7382035010959953 0.745841172 0.49229115199999995 Calling exit ...