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.002189/0.002189, allocations: 114.3 kB / 18.94 MB, free: 2.957 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.528/1.528, allocations: 230.6 MB / 252.6 MB, free: 8.316 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.001813/0.001813, allocations: 220.6 kB / 309.2 MB, free: 3.156 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.0417/0.0417, allocations: 8.92 MB / 374.6 MB, free: 1.906 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.002693/0.002693, allocations: 91.84 kB / 0.4897 GB, free: 6.809 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3946/0.3973, allocations: 55.59 MB / 0.544 GB, free: 27.1 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization2): time 0.01444/0.4117, allocations: 16.58 MB / 0.5602 GB, free: 15.24 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01138/0.4231, allocations: 5.601 MB / 0.5657 GB, free: 11.14 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003921/0.427, allocations: 114.6 kB / 0.5658 GB, free: 11.1 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003954/0.431, allocations: 1.264 MB / 0.567 GB, free: 10.45 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.006304/0.4373, allocations: 1.604 MB / 0.5686 GB, free: 9.383 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003979/0.4413, allocations: 1.043 MB / 0.5696 GB, free: 8.723 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.009684/0.451, allocations: 4.749 MB / 0.5742 GB, free: 6.254 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005555/0.4565, allocations: 1.993 MB / 0.5762 GB, free: 5.168 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005105/0.4616, allocations: 2.179 MB / 0.5783 GB, free: 4.09 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006245/0.4679, allocations: 2.601 MB / 0.5809 GB, free: 2.82 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002794/0.4707, allocations: 0.571 MB / 0.5814 GB, free: 2.82 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006145/0.4768, allocations: 0.8071 MB / 0.5822 GB, free: 2.738 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004732/0.4815, allocations: 1.3 MB / 0.5835 GB, free: 1.824 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008203/0.4897, allocations: 2.455 MB / 0.5859 GB, free: 44 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01679/0.5065, allocations: 7.572 MB / 0.5933 GB, free: 10.34 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.024e-06/0.5065, allocations: 0 / 0.5933 GB, free: 10.34 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.5065, allocations: 0 / 0.5933 GB, free: 10.34 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003505/0.5069, allocations: 1.156 kB / 0.5933 GB, free: 10.34 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.02026/0.5271, allocations: 5.049 MB / 0.5982 GB, free: 5.371 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.825e-05/0.5272, allocations: 8.031 kB / 0.5982 GB, free: 5.363 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006718/0.5339, allocations: 0.978 MB / 0.5992 GB, free: 4.383 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009411/0.5433, allocations: 2.806 MB / 0.6019 GB, free: 1.535 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003782/0.5437, allocations: 279.8 kB / 0.6022 GB, free: 1.262 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001666/0.5454, allocations: 376.1 kB / 0.6025 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01654/0.5619, allocations: 4.776 MB / 0.6072 GB, free: 12.07 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002142/0.5621, allocations: 4 kB / 0.6072 GB, free: 12.07 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00166/0.5638, allocations: 148 kB / 0.6073 GB, free: 11.93 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002436/0.564, allocations: 163.3 kB / 0.6075 GB, free: 11.77 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01126/0.5753, allocations: 4.05 MB / 0.6114 GB, free: 7.711 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03369/0.609, allocations: 15.14 MB / 0.6262 GB, free: 8.145 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005499/0.6145, allocations: 2.752 MB / 0.6289 GB, free: 5.512 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00381/0.6183, allocations: 1.811 MB / 0.6307 GB, free: 3.703 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009064/0.6274, allocations: 4.076 MB / 0.6347 GB, free: 15.59 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.878e-05/0.6274, allocations: 47.88 kB / 0.6347 GB, free: 15.53 MB / 446.1 MB Notification: Performance of pre-optimization done (n=137): time 3.256e-06/0.6274, allocations: 0 / 0.6347 GB, free: 15.53 MB / 446.1 MB Notification: Performance of matching and sorting (n=159): time 0.01545/0.6429, allocations: 6.233 MB / 0.6408 GB, free: 9.266 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.275e-05/0.6429, allocations: 68.72 kB / 0.6409 GB, free: 9.184 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004567/0.6475, allocations: 2.216 MB / 0.643 GB, free: 6.938 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001684/0.6477, allocations: 53.7 kB / 0.6431 GB, free: 6.879 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001673/0.6493, allocations: 1.799 MB / 0.6448 GB, free: 5.062 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006424/0.65, allocations: 0.5733 MB / 0.6454 GB, free: 4.484 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007399/0.6507, allocations: 408.1 kB / 0.6458 GB, free: 4.078 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001367/0.6508, allocations: 301.1 kB / 0.6461 GB, free: 3.781 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001546/0.6524, allocations: 0.8477 MB / 0.6469 GB, free: 2.93 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002227/0.6546, allocations: 1.601 MB / 0.6485 GB, free: 0.9766 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004059/0.6587, allocations: 2.612 MB / 0.651 GB, free: 14.02 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.811e-05/0.6587, allocations: 8 kB / 0.651 GB, free: 14.01 MB / 462.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.006257/0.665, allocations: 3.049 MB / 0.654 GB, free: 10.94 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.549e-05/0.665, allocations: 16 kB / 0.654 GB, free: 10.93 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.344e-05/0.6651, allocations: 24 kB / 0.654 GB, free: 10.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001176/0.6663, allocations: 354.5 kB / 0.6544 GB, free: 10.55 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001963/0.6682, allocations: 0.4992 MB / 0.6549 GB, free: 10.05 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00644/0.6747, allocations: 5.074 MB / 0.6598 GB, free: 4.754 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002459/0.6771, allocations: 95.88 kB / 0.6599 GB, free: 4.66 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003658/0.6775, allocations: 108 kB / 0.66 GB, free: 4.555 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.00277/0.6803, allocations: 1.131 MB / 0.6611 GB, free: 3.414 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007696/0.681, allocations: 258.3 kB / 0.6614 GB, free: 3.16 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004949/0.686, allocations: 2.321 MB / 0.6636 GB, free: 0.8125 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.58e-05/0.686, allocations: 19.94 kB / 0.6636 GB, free: 0.793 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.744e-05/0.686, allocations: 4 kB / 0.6636 GB, free: 0.7891 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.11e-05/0.686, allocations: 7.969 kB / 0.6637 GB, free: 0.7812 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01288/0.6989, allocations: 5.653 MB / 0.6692 GB, free: 11.04 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.745e-06/0.6989, allocations: 0 / 0.6692 GB, free: 11.04 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001255/0.7002, allocations: 267.6 kB / 0.6694 GB, free: 10.78 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009909/0.7012, allocations: 370.4 kB / 0.6698 GB, free: 10.41 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001326/0.7013, allocations: 39.98 kB / 0.6698 GB, free: 10.37 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008431/0.7097, allocations: 7.102 MB / 0.6768 GB, free: 2.926 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.468e-06/0.7097, allocations: 4.031 kB / 0.6768 GB, free: 2.922 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006654/0.7164, allocations: 3.441 MB / 0.6801 GB, free: 15.43 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001641/0.718, allocations: 450.2 kB / 0.6806 GB, free: 14.99 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007988/0.7188, allocations: 32 kB / 0.6806 GB, free: 14.96 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001652/0.7205, allocations: 63.95 kB / 0.6806 GB, free: 14.9 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003175/0.7208, allocations: 121.1 kB / 0.6808 GB, free: 14.78 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001169/0.7209, allocations: 47.92 kB / 0.6808 GB, free: 14.73 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.00348/0.7244, allocations: 1.496 MB / 0.6823 GB, free: 13.22 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.7244, allocations: 0 / 0.6823 GB, free: 13.22 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003567/0.728, allocations: 0.6523 MB / 0.6829 GB, free: 12.57 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.0004757/0.7284, allocations: 170.8 kB / 0.6831 GB, free: 12.39 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.00491/0.7334, allocations: 2.342 MB / 0.6854 GB, free: 10.03 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.68e-06/0.7334, allocations: 0 / 0.6854 GB, free: 10.03 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002622/0.736, allocations: 1.37 MB / 0.6867 GB, free: 8.621 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004133/0.7401, allocations: 0.5821 MB / 0.6873 GB, free: 8.043 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01639/0.7565, allocations: 6.589 MB / 0.6937 GB, free: 1.398 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2907/1.047, allocations: 2.525 MB / 0.6962 GB, free: 118.2 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003837/1.051, allocations: 0.5168 MB / 0.6967 GB, free: 118.2 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007793/1.052, allocations: 160.7 kB / 0.6968 GB, free: 118.2 MB / 494.1 MB Notification: Performance of SimCode: time 1.352e-06/1.052, allocations: 0.9062 kB / 0.6968 GB, free: 118.2 MB / 494.1 MB Notification: Performance of Templates: time 0.1148/1.167, allocations: 33.04 MB / 0.7291 GB, free: 108.9 MB / 494.1 MB " [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 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.970197790069506] Failed to read output from testmodel.py, exit status != 0: 1.1776258500758559 1.18822218 0.679043182 Calling exit ...