Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.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.001488/0.001488, allocations: 113 kB / 18.94 MB, free: 2.934 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.525/1.525, allocations: 230.6 MB / 252.6 MB, free: 8.328 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.002459/0.002459, allocations: 217.4 kB / 309.2 MB, free: 3.172 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.04102/0.04102, allocations: 8.919 MB / 374.6 MB, free: 1.93 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_Synchronization1,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2999,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1") translateModel(HanserModelica.SynchronousMachines.SMEE_Synchronization1,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2999,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1") [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.002629/0.002629, allocations: 83.88 kB / 0.4897 GB, free: 6.859 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4038/0.4065, allocations: 55.61 MB / 0.544 GB, free: 27.09 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization1): time 0.01497/0.4214, allocations: 16.57 MB / 0.5602 GB, free: 15.23 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0114/0.4328, allocations: 5.593 MB / 0.5656 GB, free: 11.14 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004586/0.4374, allocations: 120.1 kB / 0.5658 GB, free: 11.09 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004842/0.4423, allocations: 1.26 MB / 0.567 GB, free: 10.44 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.007465/0.4497, allocations: 1.603 MB / 0.5686 GB, free: 9.383 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003599/0.4533, allocations: 1.041 MB / 0.5696 GB, free: 8.723 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00826/0.4616, allocations: 4.756 MB / 0.5742 GB, free: 6.246 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00385/0.4654, allocations: 1.998 MB / 0.5762 GB, free: 5.156 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004826/0.4703, allocations: 2.171 MB / 0.5783 GB, free: 4.086 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006171/0.4764, allocations: 2.597 MB / 0.5808 GB, free: 2.82 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002209/0.4786, allocations: 0.5718 MB / 0.5814 GB, free: 2.82 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003763/0.4824, allocations: 0.8051 MB / 0.5822 GB, free: 2.738 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001841/0.4842, allocations: 1.307 MB / 0.5834 GB, free: 1.863 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005489/0.4897, allocations: 2.456 MB / 0.5858 GB, free: 84 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01492/0.5047, allocations: 7.571 MB / 0.5932 GB, free: 10.38 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.802e-06/0.5047, allocations: 0 / 0.5932 GB, free: 10.38 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.945e-06/0.5047, allocations: 0 / 0.5932 GB, free: 10.38 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003103/0.505, allocations: 1.094 kB / 0.5932 GB, free: 10.38 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.01947/0.5244, allocations: 5.043 MB / 0.5982 GB, free: 5.445 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.121e-05/0.5245, allocations: 12.03 kB / 0.5982 GB, free: 5.434 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007516/0.532, allocations: 0.978 MB / 0.5991 GB, free: 4.453 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009438/0.5415, allocations: 2.813 MB / 0.6019 GB, free: 1.598 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003491/0.5418, allocations: 279.8 kB / 0.6021 GB, free: 1.324 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001437/0.5432, allocations: 376 kB / 0.6025 GB, free: 0.957 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01132/0.5546, allocations: 4.772 MB / 0.6072 GB, free: 12.14 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.615e-05/0.5546, allocations: 11.98 kB / 0.6072 GB, free: 12.13 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003881/0.555, allocations: 147.9 kB / 0.6073 GB, free: 11.98 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000187/0.5552, allocations: 159.3 kB / 0.6075 GB, free: 11.83 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009133/0.5644, allocations: 4.05 MB / 0.6114 GB, free: 7.773 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02978/0.5941, allocations: 15.13 MB / 0.6262 GB, free: 8.211 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005205/0.5993, allocations: 2.748 MB / 0.6289 GB, free: 5.582 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003722/0.6031, allocations: 1.815 MB / 0.6307 GB, free: 3.77 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009231/0.6123, allocations: 4.076 MB / 0.6346 GB, free: 15.65 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.648e-05/0.6124, allocations: 51.88 kB / 0.6347 GB, free: 15.59 MB / 446.1 MB Notification: Performance of pre-optimization done (n=137): time 4.609e-06/0.6124, allocations: 0 / 0.6347 GB, free: 15.59 MB / 446.1 MB Notification: Performance of matching and sorting (n=159): time 0.01485/0.6272, allocations: 6.229 MB / 0.6408 GB, free: 9.328 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.08e-05/0.6273, allocations: 72.7 kB / 0.6408 GB, free: 9.242 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003769/0.631, allocations: 2.209 MB / 0.643 GB, free: 7.004 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002068/0.6313, allocations: 53.7 kB / 0.643 GB, free: 6.945 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001528/0.6328, allocations: 1.795 MB / 0.6448 GB, free: 5.133 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006188/0.6334, allocations: 0.5772 MB / 0.6454 GB, free: 4.551 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006444/0.634, allocations: 412.1 kB / 0.6458 GB, free: 4.141 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001409/0.6342, allocations: 305.1 kB / 0.646 GB, free: 3.84 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001483/0.6357, allocations: 0.836 MB / 0.6469 GB, free: 3 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002093/0.6378, allocations: 1.601 MB / 0.6484 GB, free: 1.047 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003745/0.6415, allocations: 2.616 MB / 0.651 GB, free: 14.09 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.366e-05/0.6415, allocations: 11.94 kB / 0.651 GB, free: 14.07 MB / 462.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.005809/0.6473, allocations: 3.053 MB / 0.654 GB, free: 11 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.072e-05/0.6474, allocations: 19.94 kB / 0.654 GB, free: 10.98 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.883e-05/0.6474, allocations: 24 kB / 0.654 GB, free: 10.96 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001/0.6484, allocations: 342.9 kB / 0.6543 GB, free: 10.62 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001887/0.6503, allocations: 0.4953 MB / 0.6548 GB, free: 10.12 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00615/0.6564, allocations: 5.079 MB / 0.6598 GB, free: 4.82 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002243/0.6587, allocations: 99.88 kB / 0.6599 GB, free: 4.723 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002743/0.659, allocations: 108 kB / 0.66 GB, free: 4.617 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.002377/0.6613, allocations: 1.126 MB / 0.6611 GB, free: 3.48 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006107/0.6619, allocations: 254.3 kB / 0.6613 GB, free: 3.23 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004609/0.6666, allocations: 2.317 MB / 0.6636 GB, free: 0.8867 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-05/0.6666, allocations: 16 kB / 0.6636 GB, free: 0.8711 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.818e-06/0.6666, allocations: 4 kB / 0.6636 GB, free: 0.8672 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.694e-05/0.6666, allocations: 7.969 kB / 0.6636 GB, free: 0.8594 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01153/0.6781, allocations: 5.649 MB / 0.6691 GB, free: 11.12 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.017e-05/0.6781, allocations: 7.984 kB / 0.6691 GB, free: 11.11 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001269/0.6794, allocations: 267.8 kB / 0.6694 GB, free: 10.85 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001081/0.6805, allocations: 374.3 kB / 0.6698 GB, free: 10.48 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000155/0.6806, allocations: 35.98 kB / 0.6698 GB, free: 10.44 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008648/0.6893, allocations: 7.102 MB / 0.6767 GB, free: 3 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.6893, allocations: 0 / 0.6767 GB, free: 3 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0068/0.6961, allocations: 3.449 MB / 0.6801 GB, free: 15.51 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001675/0.6978, allocations: 442.2 kB / 0.6805 GB, free: 15.07 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008206/0.6986, allocations: 39.94 kB / 0.6806 GB, free: 15.04 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001662/0.7003, allocations: 59.95 kB / 0.6806 GB, free: 14.98 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003761/0.7006, allocations: 125.1 kB / 0.6807 GB, free: 14.85 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001405/0.7008, allocations: 43.98 kB / 0.6808 GB, free: 14.81 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003569/0.7043, allocations: 1.492 MB / 0.6822 GB, free: 13.3 MB / 494.1 MB Notification: Performance of sort global known variables: time 7e-08/0.7043, allocations: 0 / 0.6822 GB, free: 13.3 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003702/0.708, allocations: 0.6601 MB / 0.6829 GB, free: 12.64 MB / 494.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.0004918/0.7085, allocations: 176.5 kB / 0.683 GB, free: 12.46 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.005003/0.7135, allocations: 2.341 MB / 0.6853 GB, free: 10.1 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/0.7135, allocations: 0 / 0.6853 GB, free: 10.1 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002622/0.7162, allocations: 1.367 MB / 0.6867 GB, free: 8.695 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0047/0.7209, allocations: 0.5838 MB / 0.6872 GB, free: 8.113 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01605/0.7369, allocations: 6.589 MB / 0.6937 GB, free: 1.469 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2839/1.021, allocations: 2.522 MB / 0.6961 GB, free: 118.1 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.002329/1.023, allocations: 0.5187 MB / 0.6966 GB, free: 118.1 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000523/1.024, allocations: 158.7 kB / 0.6968 GB, free: 118.1 MB / 494.1 MB Notification: Performance of SimCode: time 1.783e-06/1.024, allocations: 0.9062 kB / 0.6968 GB, free: 118.1 MB / 494.1 MB Notification: Performance of Templates: time 0.06616/1.09, allocations: 33.03 MB / 0.729 GB, free: 108.9 MB / 494.1 MB " [Timeout remaining time 659] make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.makefile [Timeout 660] (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.833557700039819] Failed to read output from testmodel.py, exit status != 0: 1.0994532690383494 1.108825832 0.601558809 Calling exit ...