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.001702/0.001702, allocations: 102.1 kB / 19.7 MB, free: 2.254 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.454/1.454, allocations: 230.6 MB / 253.4 MB, free: 8.277 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.001742/0.001742, allocations: 210 kB / 310 MB, free: 3.129 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.04045/0.04045, allocations: 8.918 MB / 375.3 MB, free: 1.883 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.002891/0.002891, allocations: 87.88 kB / 0.4905 GB, free: 6.797 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3121/0.315, allocations: 55.6 MB / 0.5448 GB, free: 27.08 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization3): time 0.01457/0.3296, allocations: 16.58 MB / 0.561 GB, free: 15.21 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.009924/0.3395, allocations: 5.6 MB / 0.5664 GB, free: 11.11 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003811/0.3433, allocations: 112.7 kB / 0.5665 GB, free: 11.07 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004416/0.3477, allocations: 1.266 MB / 0.5678 GB, free: 10.41 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.006256/0.354, allocations: 1.606 MB / 0.5693 GB, free: 9.352 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003716/0.3577, allocations: 1.05 MB / 0.5704 GB, free: 8.688 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.008004/0.3657, allocations: 4.751 MB / 0.575 GB, free: 6.215 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005641/0.3714, allocations: 1.993 MB / 0.5769 GB, free: 5.129 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005274/0.3766, allocations: 2.174 MB / 0.5791 GB, free: 4.055 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00615/0.3828, allocations: 2.603 MB / 0.5816 GB, free: 2.785 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00272/0.3855, allocations: 0.5708 MB / 0.5822 GB, free: 2.785 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00435/0.3899, allocations: 0.808 MB / 0.583 GB, free: 2.703 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002983/0.3928, allocations: 1.304 MB / 0.5842 GB, free: 1.812 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006674/0.3995, allocations: 2.452 MB / 0.5866 GB, free: 36 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01488/0.4144, allocations: 7.564 MB / 0.594 GB, free: 10.34 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.041e-05/0.4144, allocations: 0 / 0.594 GB, free: 10.34 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.4144, allocations: 0 / 0.594 GB, free: 10.34 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003379/0.4147, allocations: 0 / 0.594 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.02029/0.435, allocations: 5.054 MB / 0.599 GB, free: 5.363 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.927e-05/0.4351, allocations: 11.97 kB / 0.599 GB, free: 5.352 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006727/0.4418, allocations: 0.9741 MB / 0.5999 GB, free: 4.375 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00915/0.451, allocations: 2.81 MB / 0.6027 GB, free: 1.523 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004294/0.4514, allocations: 287.7 kB / 0.6029 GB, free: 1.242 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001716/0.4531, allocations: 368.1 kB / 0.6033 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01559/0.4687, allocations: 4.776 MB / 0.6079 GB, free: 12.06 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001932/0.4689, allocations: 0 / 0.6079 GB, free: 12.06 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001308/0.4702, allocations: 152 kB / 0.6081 GB, free: 11.91 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002175/0.4704, allocations: 155.3 kB / 0.6082 GB, free: 11.76 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01137/0.4818, allocations: 4.058 MB / 0.6122 GB, free: 7.699 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03675/0.5185, allocations: 15.14 MB / 0.627 GB, free: 8.133 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006285/0.5248, allocations: 2.744 MB / 0.6297 GB, free: 5.508 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004183/0.529, allocations: 1.815 MB / 0.6314 GB, free: 3.695 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01049/0.5395, allocations: 4.076 MB / 0.6354 GB, free: 15.57 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.371e-05/0.5396, allocations: 43.88 kB / 0.6355 GB, free: 15.52 MB / 446.1 MB Notification: Performance of pre-optimization done (n=137): time 5.791e-06/0.5396, allocations: 4 kB / 0.6355 GB, free: 15.52 MB / 446.1 MB Notification: Performance of matching and sorting (n=159): time 0.01625/0.5558, allocations: 6.235 MB / 0.6416 GB, free: 9.254 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.03e-05/0.5559, allocations: 68.72 kB / 0.6416 GB, free: 9.172 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00508/0.561, allocations: 2.216 MB / 0.6438 GB, free: 6.926 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003355/0.5613, allocations: 49.7 kB / 0.6438 GB, free: 6.871 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001841/0.5631, allocations: 1.803 MB / 0.6456 GB, free: 5.051 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008502/0.564, allocations: 0.5733 MB / 0.6461 GB, free: 4.473 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001251/0.5652, allocations: 408.1 kB / 0.6465 GB, free: 4.066 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001426/0.5654, allocations: 301.1 kB / 0.6468 GB, free: 3.77 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001835/0.5672, allocations: 0.8438 MB / 0.6476 GB, free: 2.922 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002449/0.5697, allocations: 1.605 MB / 0.6492 GB, free: 0.9648 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004382/0.574, allocations: 2.608 MB / 0.6518 GB, free: 14.01 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.072e-05/0.5741, allocations: 8 kB / 0.6518 GB, free: 14 MB / 462.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.006591/0.5807, allocations: 3.049 MB / 0.6547 GB, free: 10.93 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.386e-05/0.5807, allocations: 16 kB / 0.6548 GB, free: 10.92 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-05/0.5808, allocations: 24.75 kB / 0.6548 GB, free: 10.89 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001073/0.5818, allocations: 357.4 kB / 0.6551 GB, free: 10.54 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00199/0.5838, allocations: 0.4952 MB / 0.6556 GB, free: 10.04 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006578/0.5904, allocations: 5.07 MB / 0.6606 GB, free: 4.75 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002572/0.593, allocations: 99.94 kB / 0.6607 GB, free: 4.652 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004424/0.5934, allocations: 104 kB / 0.6608 GB, free: 4.551 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.002996/0.5964, allocations: 1.131 MB / 0.6619 GB, free: 3.41 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009099/0.5973, allocations: 254.3 kB / 0.6621 GB, free: 3.16 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005635/0.603, allocations: 2.321 MB / 0.6644 GB, free: 0.8125 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.948e-05/0.603, allocations: 20 kB / 0.6644 GB, free: 0.793 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.23e-05/0.603, allocations: 4 kB / 0.6644 GB, free: 0.7891 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.38e-05/0.603, allocations: 7.969 kB / 0.6644 GB, free: 0.7812 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01504/0.6181, allocations: 5.653 MB / 0.6699 GB, free: 11.04 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.028e-05/0.6181, allocations: 4 kB / 0.6699 GB, free: 11.04 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00138/0.6195, allocations: 275.8 kB / 0.6702 GB, free: 10.77 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001065/0.6205, allocations: 358.9 kB / 0.6705 GB, free: 10.41 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000226/0.6208, allocations: 47.86 kB / 0.6706 GB, free: 10.36 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008604/0.6294, allocations: 7.095 MB / 0.6775 GB, free: 2.926 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.312e-06/0.6294, allocations: 4.031 kB / 0.6775 GB, free: 2.922 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007092/0.6365, allocations: 3.441 MB / 0.6809 GB, free: 15.43 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001857/0.6383, allocations: 450.6 kB / 0.6813 GB, free: 14.99 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008631/0.6392, allocations: 39.92 kB / 0.6813 GB, free: 14.95 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001715/0.6409, allocations: 63.97 kB / 0.6814 GB, free: 14.89 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003733/0.6413, allocations: 121.1 kB / 0.6815 GB, free: 14.77 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001661/0.6414, allocations: 47.92 kB / 0.6816 GB, free: 14.72 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003612/0.645, allocations: 1.492 MB / 0.683 GB, free: 13.21 MB / 494.1 MB Notification: Performance of sort global known variables: time 8e-08/0.645, allocations: 0 / 0.683 GB, free: 13.21 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003956/0.649, allocations: 0.6562 MB / 0.6837 GB, free: 12.56 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.0005324/0.6495, allocations: 162.9 kB / 0.6838 GB, free: 12.39 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.005081/0.6546, allocations: 2.348 MB / 0.6861 GB, free: 10.02 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.884e-06/0.6546, allocations: 2 kB / 0.6861 GB, free: 10.02 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002684/0.6573, allocations: 1.374 MB / 0.6874 GB, free: 8.609 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004239/0.6615, allocations: 0.5862 MB / 0.688 GB, free: 8.027 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01662/0.6782, allocations: 6.557 MB / 0.6944 GB, free: 1.41 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2541/0.9323, allocations: 2.461 MB / 0.6968 GB, free: 118.4 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009766/0.9332, allocations: 179.1 kB / 0.697 GB, free: 118.3 MB / 494.1 MB Notification: Performance of SimCode: time 1.412e-06/0.9332, allocations: 4.625 kB / 0.697 GB, free: 118.3 MB / 494.1 MB Notification: Performance of Templates: time 0.1171/1.05, allocations: 101.5 MB / 0.7961 GB, free: 43.34 MB / 494.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: 14.01008113916032] Failed to read output from testmodel.py, exit status != 0: 1.0613501069601625 1.072167313 0.654764094 Calling exit ...