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.00161/0.00161, allocations: 104.4 kB / 19.7 MB, free: 2.125 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.505/1.505, allocations: 230.6 MB / 253.4 MB, free: 14.3 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.001663/0.001663, allocations: 206.5 kB / 310 MB, free: 3.145 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.04249/0.04249, allocations: 8.924 MB / 375.3 MB, free: 6.59 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.002557/0.002557, allocations: 79.88 kB / 0.4904 GB, free: 44.24 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09529/0.09784, allocations: 55.62 MB / 0.5447 GB, free: 4.52 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization2): time 0.01896/0.1168, allocations: 14.3 MB / 0.5587 GB, free: 6.148 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01174/0.1285, allocations: 5.286 MB / 0.5638 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003224/0.1318, allocations: 119.3 kB / 0.564 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2304/0.3622, allocations: 1.204 MB / 0.5651 GB, free: 10.15 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005437/0.3676, allocations: 1.571 MB / 0.5667 GB, free: 10.15 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002754/0.3704, allocations: 1.007 MB / 0.5676 GB, free: 10.14 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005715/0.3761, allocations: 4.747 MB / 0.5723 GB, free: 10.12 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003044/0.3791, allocations: 1.905 MB / 0.5741 GB, free: 9.871 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00384/0.383, allocations: 2.176 MB / 0.5763 GB, free: 9.527 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005563/0.3885, allocations: 2.44 MB / 0.5787 GB, free: 8.945 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001598/0.3901, allocations: 0.5681 MB / 0.5792 GB, free: 8.945 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002811/0.3929, allocations: 0.7863 MB / 0.58 GB, free: 8.883 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001254/0.3942, allocations: 1.297 MB / 0.5812 GB, free: 8.059 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003832/0.398, allocations: 1.946 MB / 0.5831 GB, free: 6.941 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00971/0.4077, allocations: 7.604 MB / 0.5906 GB, free: 3.727 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.261e-06/0.4077, allocations: 1.375 kB / 0.5906 GB, free: 3.727 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.4077, allocations: 0.5 kB / 0.5906 GB, free: 3.727 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002517/0.408, allocations: 0.625 kB / 0.5906 GB, free: 3.727 MB / 382.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.01478/0.4228, allocations: 5.032 MB / 0.5955 GB, free: 392 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.266e-05/0.4228, allocations: 14.89 kB / 0.5955 GB, free: 388 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005496/0.4283, allocations: 0.9821 MB / 0.5965 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007685/0.436, allocations: 2.8 MB / 0.5992 GB, free: 13.99 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003754/0.4364, allocations: 273.4 kB / 0.5995 GB, free: 13.87 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00132/0.4377, allocations: 375.4 kB / 0.5998 GB, free: 13.75 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009706/0.4474, allocations: 4.93 MB / 0.6046 GB, free: 10.75 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.492e-05/0.4475, allocations: 6.328 kB / 0.6046 GB, free: 10.74 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003595/0.4478, allocations: 154 kB / 0.6048 GB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001354/0.448, allocations: 158.4 kB / 0.6049 GB, free: 10.61 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007711/0.4557, allocations: 4.039 MB / 0.6089 GB, free: 8.469 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02841/0.4841, allocations: 13.29 MB / 0.6219 GB, free: 11.28 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005373/0.4895, allocations: 2.724 MB / 0.6245 GB, free: 8.707 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003808/0.4933, allocations: 1.816 MB / 0.6263 GB, free: 6.902 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008485/0.5018, allocations: 3.651 MB / 0.6298 GB, free: 3.258 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.487e-05/0.5018, allocations: 51.81 kB / 0.6299 GB, free: 3.199 MB / 414.1 MB Notification: Performance of pre-optimization done (n=137): time 3.757e-06/0.5018, allocations: 0 / 0.6299 GB, free: 3.199 MB / 414.1 MB Notification: Performance of matching and sorting (n=159): time 0.01476/0.5166, allocations: 6.225 MB / 0.636 GB, free: 12.95 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.266e-05/0.5167, allocations: 72.66 kB / 0.636 GB, free: 12.86 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003674/0.5203, allocations: 2.006 MB / 0.638 GB, free: 10.81 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002957/0.5206, allocations: 53.7 kB / 0.6381 GB, free: 10.75 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00157/0.5222, allocations: 1.808 MB / 0.6398 GB, free: 8.938 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007153/0.5229, allocations: 0.5714 MB / 0.6404 GB, free: 8.375 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006766/0.5236, allocations: 412 kB / 0.6408 GB, free: 7.965 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001414/0.5237, allocations: 305.1 kB / 0.6411 GB, free: 7.664 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001605/0.5253, allocations: 0.8359 MB / 0.6419 GB, free: 6.824 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002245/0.5276, allocations: 1.633 MB / 0.6435 GB, free: 4.84 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003941/0.5315, allocations: 2.609 MB / 0.646 GB, free: 1.898 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.239e-05/0.5315, allocations: 12 kB / 0.646 GB, free: 1.887 MB / 430.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.005843/0.5374, allocations: 3.03 MB / 0.649 GB, free: 14.84 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.979e-05/0.5374, allocations: 16.94 kB / 0.649 GB, free: 14.82 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.008e-05/0.5375, allocations: 31.88 kB / 0.649 GB, free: 14.79 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009821/0.5385, allocations: 344 kB / 0.6494 GB, free: 14.45 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001901/0.5404, allocations: 0.4964 MB / 0.6499 GB, free: 13.95 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006213/0.5466, allocations: 4.959 MB / 0.6547 GB, free: 8.801 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002275/0.5488, allocations: 107.8 kB / 0.6548 GB, free: 8.695 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003176/0.5492, allocations: 104 kB / 0.6549 GB, free: 8.594 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.002353/0.5515, allocations: 1.126 MB / 0.656 GB, free: 7.457 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005819/0.5521, allocations: 226.6 kB / 0.6562 GB, free: 7.234 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004431/0.5565, allocations: 2.307 MB / 0.6585 GB, free: 4.906 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.462e-05/0.5565, allocations: 16 kB / 0.6585 GB, free: 4.891 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.388e-05/0.5566, allocations: 8 kB / 0.6585 GB, free: 4.883 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.862e-05/0.5566, allocations: 15.95 kB / 0.6585 GB, free: 4.867 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00998/0.5666, allocations: 4.843 MB / 0.6632 GB, free: 15.99 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.484e-06/0.5666, allocations: 4.188 kB / 0.6632 GB, free: 15.98 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001233/0.5678, allocations: 263.6 kB / 0.6635 GB, free: 15.73 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001027/0.5688, allocations: 366.3 kB / 0.6638 GB, free: 15.36 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001313/0.569, allocations: 43.98 kB / 0.6639 GB, free: 15.32 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008125/0.5771, allocations: 6.949 MB / 0.6707 GB, free: 8.082 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.5771, allocations: 0 / 0.6707 GB, free: 8.082 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006477/0.5836, allocations: 3.428 MB / 0.674 GB, free: 4.605 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001625/0.5852, allocations: 414.4 kB / 0.6744 GB, free: 4.199 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004282/0.5856, allocations: 28.38 kB / 0.6744 GB, free: 4.172 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001065/0.5867, allocations: 67.95 kB / 0.6745 GB, free: 4.105 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003213/0.587, allocations: 117.1 kB / 0.6746 GB, free: 3.988 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001034/0.5871, allocations: 47.98 kB / 0.6747 GB, free: 3.941 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002324/0.5894, allocations: 1.319 MB / 0.6759 GB, free: 2.602 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5894, allocations: 0 / 0.6759 GB, free: 2.602 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002572/0.592, allocations: 0.6561 MB / 0.6766 GB, free: 1.945 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.000365/0.5924, allocations: 176.2 kB / 0.6768 GB, free: 1.77 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004453/0.5968, allocations: 2.34 MB / 0.679 GB, free: 15.41 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.899e-06/0.5968, allocations: 0 / 0.679 GB, free: 15.41 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002511/0.5993, allocations: 1.371 MB / 0.6804 GB, free: 14 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002975/0.6023, allocations: 481.9 kB / 0.6808 GB, free: 13.53 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01433/0.6166, allocations: 6.528 MB / 0.6872 GB, free: 6.953 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002649/0.6193, allocations: 1.922 MB / 0.6891 GB, free: 5 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009867/0.6203, allocations: 175.3 kB / 0.6893 GB, free: 4.828 MB / 478.1 MB Notification: Performance of SimCode: time 1.503e-06/0.6203, allocations: 3.938 kB / 0.6893 GB, free: 4.824 MB / 478.1 MB Notification: Performance of Templates: time 0.3734/0.9937, allocations: 101 MB / 0.7879 GB, free: 181.4 MB / 0.545 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 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 13.342921344097704] Failed to read output from testmodel.py, exit status != 0: 1.0024063549935818 1.016782159 0.606315146 Calling exit ...