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.001398/0.001398, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.537/1.537, allocations: 230.6 MB / 252.7 MB, free: 14.29 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.001694/0.001694, allocations: 212.1 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.04404/0.04404, allocations: 8.919 MB / 374.6 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.002555/0.002555, allocations: 87.88 kB / 0.4897 GB, free: 44.23 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09479/0.09734, allocations: 55.6 MB / 0.544 GB, free: 4.535 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization2): time 0.02067/0.118, allocations: 14.33 MB / 0.558 GB, free: 6.137 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01224/0.1303, allocations: 5.275 MB / 0.5631 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002942/0.1332, allocations: 119.4 kB / 0.5632 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2252/0.3584, allocations: 1.197 MB / 0.5644 GB, free: 10.12 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005712/0.3641, allocations: 1.58 MB / 0.5659 GB, free: 10.12 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003134/0.3673, allocations: 1.002 MB / 0.5669 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006278/0.3735, allocations: 4.749 MB / 0.5715 GB, free: 10.09 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003866/0.3774, allocations: 1.911 MB / 0.5734 GB, free: 9.844 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004132/0.3815, allocations: 2.171 MB / 0.5755 GB, free: 9.504 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005493/0.387, allocations: 2.44 MB / 0.5779 GB, free: 8.934 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001999/0.389, allocations: 0.569 MB / 0.5785 GB, free: 8.934 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003204/0.3922, allocations: 0.7842 MB / 0.5792 GB, free: 8.871 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001651/0.3939, allocations: 1.298 MB / 0.5805 GB, free: 8.047 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006671/0.4006, allocations: 1.957 MB / 0.5824 GB, free: 6.926 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01199/0.4125, allocations: 7.598 MB / 0.5898 GB, free: 3.738 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.298e-06/0.4125, allocations: 1.188 kB / 0.5898 GB, free: 3.738 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.745e-06/0.4125, allocations: 3.938 kB / 0.5898 GB, free: 3.734 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003025/0.4129, allocations: 0 / 0.5898 GB, free: 3.734 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.01598/0.4288, allocations: 5.034 MB / 0.5948 GB, free: 400 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.487e-05/0.4289, allocations: 13.83 kB / 0.5948 GB, free: 396 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00571/0.4346, allocations: 0.9826 MB / 0.5957 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008152/0.4427, allocations: 2.79 MB / 0.5985 GB, free: 14.01 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004036/0.4431, allocations: 279.7 kB / 0.5987 GB, free: 13.88 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001166/0.4443, allocations: 367.1 kB / 0.5991 GB, free: 13.76 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01102/0.4553, allocations: 4.928 MB / 0.6039 GB, free: 10.77 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.041e-05/0.4554, allocations: 7.734 kB / 0.6039 GB, free: 10.76 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003994/0.4558, allocations: 163.2 kB / 0.604 GB, free: 10.64 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001354/0.456, allocations: 150.8 kB / 0.6042 GB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007742/0.4637, allocations: 4.046 MB / 0.6081 GB, free: 8.477 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02961/0.4933, allocations: 13.29 MB / 0.6211 GB, free: 11.31 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005622/0.4989, allocations: 2.728 MB / 0.6238 GB, free: 8.734 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004015/0.5029, allocations: 1.807 MB / 0.6255 GB, free: 6.941 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008693/0.5116, allocations: 3.653 MB / 0.6291 GB, free: 3.289 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.076e-05/0.5117, allocations: 56.44 kB / 0.6292 GB, free: 3.227 MB / 414.1 MB Notification: Performance of pre-optimization done (n=137): time 4.258e-06/0.5117, allocations: 4 kB / 0.6292 GB, free: 3.223 MB / 414.1 MB Notification: Performance of matching and sorting (n=159): time 0.01514/0.5268, allocations: 6.211 MB / 0.6352 GB, free: 12.98 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.337e-05/0.5269, allocations: 76.59 kB / 0.6353 GB, free: 12.89 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003421/0.5303, allocations: 2.006 MB / 0.6373 GB, free: 10.84 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001818/0.5305, allocations: 49.7 kB / 0.6373 GB, free: 10.79 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001555/0.5321, allocations: 1.809 MB / 0.6391 GB, free: 8.973 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006278/0.5327, allocations: 0.5699 MB / 0.6396 GB, free: 8.41 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007536/0.5334, allocations: 416 kB / 0.64 GB, free: 7.996 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001468/0.5336, allocations: 305.1 kB / 0.6403 GB, free: 7.695 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001728/0.5353, allocations: 0.836 MB / 0.6411 GB, free: 6.855 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002502/0.5378, allocations: 1.629 MB / 0.6427 GB, free: 4.875 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004154/0.542, allocations: 2.617 MB / 0.6453 GB, free: 1.926 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.602e-05/0.542, allocations: 8.812 kB / 0.6453 GB, free: 1.918 MB / 430.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.006397/0.5484, allocations: 3.026 MB / 0.6483 GB, free: 14.88 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.841e-05/0.5484, allocations: 16 kB / 0.6483 GB, free: 14.86 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.898e-05/0.5485, allocations: 28.69 kB / 0.6483 GB, free: 14.84 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001062/0.5495, allocations: 358.2 kB / 0.6486 GB, free: 14.48 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002016/0.5516, allocations: 0.4914 MB / 0.6491 GB, free: 13.98 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0065/0.5581, allocations: 4.957 MB / 0.654 GB, free: 8.832 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002149/0.5602, allocations: 103.8 kB / 0.6541 GB, free: 8.73 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002852/0.5605, allocations: 99.98 kB / 0.6542 GB, free: 8.633 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.002443/0.5629, allocations: 1.136 MB / 0.6553 GB, free: 7.488 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006151/0.5635, allocations: 222.6 kB / 0.6555 GB, free: 7.27 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004931/0.5685, allocations: 2.312 MB / 0.6577 GB, free: 4.934 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.871e-05/0.5685, allocations: 16 kB / 0.6578 GB, free: 4.918 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.57e-05/0.5685, allocations: 4 kB / 0.6578 GB, free: 4.914 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.972e-05/0.5685, allocations: 11.91 kB / 0.6578 GB, free: 4.902 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01108/0.5796, allocations: 4.835 MB / 0.6625 GB, free: 36 kB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-05/0.5796, allocations: 4 kB / 0.6625 GB, free: 32 kB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001354/0.581, allocations: 267.6 kB / 0.6627 GB, free: 15.77 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001044/0.582, allocations: 380.2 kB / 0.6631 GB, free: 15.39 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001474/0.5822, allocations: 35.98 kB / 0.6631 GB, free: 15.36 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008849/0.591, allocations: 6.943 MB / 0.6699 GB, free: 8.121 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.482e-06/0.591, allocations: 4.031 kB / 0.6699 GB, free: 8.117 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007245/0.5983, allocations: 3.421 MB / 0.6733 GB, free: 4.648 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001885/0.6002, allocations: 414.4 kB / 0.6737 GB, free: 4.242 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008896/0.601, allocations: 36 kB / 0.6737 GB, free: 4.207 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001787/0.6028, allocations: 59.91 kB / 0.6738 GB, free: 4.148 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004057/0.6032, allocations: 129 kB / 0.6739 GB, free: 4.02 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001546/0.6034, allocations: 43.98 kB / 0.6739 GB, free: 3.977 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00361/0.607, allocations: 1.322 MB / 0.6752 GB, free: 2.637 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.607, allocations: 4 kB / 0.6752 GB, free: 2.633 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003931/0.6109, allocations: 0.6561 MB / 0.6759 GB, free: 1.977 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.0005534/0.6115, allocations: 170.9 kB / 0.676 GB, free: 1.805 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00517/0.6167, allocations: 2.338 MB / 0.6783 GB, free: 15.44 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.712e-06/0.6167, allocations: 0 / 0.6783 GB, free: 15.44 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002681/0.6193, allocations: 1.363 MB / 0.6796 GB, free: 14.04 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004357/0.6237, allocations: 0.4897 MB / 0.6801 GB, free: 13.55 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01681/0.6405, allocations: 6.551 MB / 0.6865 GB, free: 6.957 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00352/0.644, allocations: 1.982 MB / 0.6884 GB, free: 4.941 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002226/0.6463, allocations: 498.5 kB / 0.6889 GB, free: 4.453 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006348/0.6469, allocations: 155.4 kB / 0.6891 GB, free: 4.301 MB / 478.1 MB Notification: Performance of SimCode: time 1.182e-06/0.6469, allocations: 0 / 0.6891 GB, free: 4.301 MB / 478.1 MB Notification: Performance of Templates: time 0.06872/0.7156, allocations: 34.09 MB / 0.7224 GB, free: 2.625 MB / 0.4981 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: 6.217966929078102] Failed to read output from testmodel.py, exit status != 0: 0.7249024976044893 0.741186491 0.32511134299999994 Calling exit ...