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.001349/0.001349, 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.45/1.45, allocations: 230.6 MB / 253.4 MB, free: 8.285 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.00166/0.00166, allocations: 212.3 kB / 310 MB, free: 3.121 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.04016/0.04016, allocations: 8.919 MB / 375.3 MB, free: 1.871 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.002475/0.002475, allocations: 87.88 kB / 0.4905 GB, free: 6.809 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3241/0.3266, allocations: 55.6 MB / 0.5448 GB, free: 27.08 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization1): time 0.01348/0.3401, allocations: 16.56 MB / 0.5609 GB, free: 15.23 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.009862/0.35, allocations: 5.592 MB / 0.5664 GB, free: 11.13 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003458/0.3534, allocations: 120 kB / 0.5665 GB, free: 11.09 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003745/0.3572, allocations: 1.26 MB / 0.5677 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.00562/0.3628, allocations: 1.609 MB / 0.5693 GB, free: 9.371 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003124/0.3659, allocations: 1.043 MB / 0.5703 GB, free: 8.711 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007225/0.3731, allocations: 4.753 MB / 0.575 GB, free: 6.238 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004108/0.3772, allocations: 1.994 MB / 0.5769 GB, free: 5.152 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004306/0.3815, allocations: 2.179 MB / 0.579 GB, free: 4.074 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005279/0.3868, allocations: 2.596 MB / 0.5816 GB, free: 2.809 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001811/0.3886, allocations: 0.571 MB / 0.5821 GB, free: 2.809 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003011/0.3916, allocations: 0.8066 MB / 0.5829 GB, free: 2.727 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001377/0.393, allocations: 1.306 MB / 0.5842 GB, free: 1.84 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004585/0.3976, allocations: 2.452 MB / 0.5866 GB, free: 64 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01135/0.409, allocations: 7.571 MB / 0.594 GB, free: 10.36 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.855e-06/0.409, allocations: 0 / 0.594 GB, free: 10.36 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.409, allocations: 4 kB / 0.594 GB, free: 10.35 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002603/0.4092, allocations: 1.125 kB / 0.594 GB, free: 10.35 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.0159/0.4251, allocations: 5.043 MB / 0.5989 GB, free: 5.379 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.4252, allocations: 8.031 kB / 0.5989 GB, free: 5.371 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005365/0.4305, allocations: 0.9858 MB / 0.5999 GB, free: 4.383 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007137/0.4377, allocations: 2.81 MB / 0.6026 GB, free: 1.531 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002498/0.4379, allocations: 279.8 kB / 0.6029 GB, free: 1.258 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008571/0.4388, allocations: 372.1 kB / 0.6032 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009255/0.448, allocations: 4.78 MB / 0.6079 GB, free: 12.07 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.283e-05/0.4481, allocations: 0 / 0.6079 GB, free: 12.07 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003667/0.4485, allocations: 151.9 kB / 0.6081 GB, free: 11.92 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001634/0.4486, allocations: 163.3 kB / 0.6082 GB, free: 11.76 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007862/0.4565, allocations: 4.054 MB / 0.6122 GB, free: 7.703 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02776/0.4843, allocations: 15.13 MB / 0.6269 GB, free: 8.145 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005034/0.4893, allocations: 2.756 MB / 0.6296 GB, free: 5.508 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003552/0.4928, allocations: 1.815 MB / 0.6314 GB, free: 3.695 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008573/0.5014, allocations: 4.076 MB / 0.6354 GB, free: 15.57 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.118e-05/0.5015, allocations: 47.88 kB / 0.6354 GB, free: 15.52 MB / 446.1 MB Notification: Performance of pre-optimization done (n=137): time 3.437e-06/0.5015, allocations: 0 / 0.6354 GB, free: 15.52 MB / 446.1 MB Notification: Performance of matching and sorting (n=159): time 0.01423/0.5157, allocations: 6.227 MB / 0.6415 GB, free: 9.262 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.652e-05/0.5158, allocations: 68.72 kB / 0.6416 GB, free: 9.18 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004066/0.5198, allocations: 2.213 MB / 0.6437 GB, free: 6.938 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001667/0.52, allocations: 57.7 kB / 0.6438 GB, free: 6.875 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001585/0.5216, allocations: 1.791 MB / 0.6456 GB, free: 5.066 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006192/0.5222, allocations: 0.5772 MB / 0.6461 GB, free: 4.484 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006796/0.5229, allocations: 412.1 kB / 0.6465 GB, free: 4.074 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001521/0.523, allocations: 301.1 kB / 0.6468 GB, free: 3.777 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001492/0.5245, allocations: 0.8399 MB / 0.6476 GB, free: 2.934 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002174/0.5267, allocations: 1.601 MB / 0.6492 GB, free: 0.9805 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003744/0.5304, allocations: 2.616 MB / 0.6517 GB, free: 14.02 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.796e-05/0.5305, allocations: 8 kB / 0.6517 GB, free: 14.01 MB / 462.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.005769/0.5362, allocations: 3.05 MB / 0.6547 GB, free: 10.94 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.198e-05/0.5363, allocations: 22.03 kB / 0.6547 GB, free: 10.92 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.847e-05/0.5363, allocations: 27.94 kB / 0.6548 GB, free: 10.89 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009736/0.5373, allocations: 338.3 kB / 0.6551 GB, free: 10.55 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001996/0.5393, allocations: 0.507 MB / 0.6556 GB, free: 10.05 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006035/0.5453, allocations: 5.066 MB / 0.6605 GB, free: 4.758 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002447/0.5478, allocations: 103.9 kB / 0.6606 GB, free: 4.656 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003295/0.5481, allocations: 108 kB / 0.6607 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.002768/0.5509, allocations: 1.131 MB / 0.6618 GB, free: 3.41 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007615/0.5516, allocations: 254.3 kB / 0.6621 GB, free: 3.16 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004768/0.5564, allocations: 2.325 MB / 0.6644 GB, free: 0.8086 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.555e-05/0.5564, allocations: 12 kB / 0.6644 GB, free: 0.7969 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.125e-05/0.5564, allocations: 8 kB / 0.6644 GB, free: 0.7891 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.862e-05/0.5564, allocations: 7.969 kB / 0.6644 GB, free: 0.7812 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01068/0.5671, allocations: 5.646 MB / 0.6699 GB, free: 11.05 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.875e-06/0.5671, allocations: 8.125 kB / 0.6699 GB, free: 11.04 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001192/0.5683, allocations: 263.7 kB / 0.6701 GB, free: 10.78 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009519/0.5693, allocations: 370.2 kB / 0.6705 GB, free: 10.41 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001168/0.5694, allocations: 39.98 kB / 0.6705 GB, free: 10.37 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007811/0.5772, allocations: 7.1 MB / 0.6775 GB, free: 2.934 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/0.5772, allocations: 4.031 kB / 0.6775 GB, free: 2.93 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005999/0.5832, allocations: 3.437 MB / 0.6808 GB, free: 15.45 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001455/0.5847, allocations: 454.1 kB / 0.6813 GB, free: 15 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003003/0.585, allocations: 32 kB / 0.6813 GB, free: 14.97 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001029/0.586, allocations: 67.95 kB / 0.6814 GB, free: 14.91 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002951/0.5863, allocations: 117.1 kB / 0.6815 GB, free: 14.79 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.493e-05/0.5864, allocations: 43.98 kB / 0.6815 GB, free: 14.75 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002419/0.5888, allocations: 1.504 MB / 0.683 GB, free: 13.23 MB / 494.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5888, allocations: 0 / 0.683 GB, free: 13.23 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.00257/0.5914, allocations: 0.6523 MB / 0.6836 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.0003691/0.5917, allocations: 166.9 kB / 0.6838 GB, free: 12.4 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.004156/0.5959, allocations: 2.334 MB / 0.6861 GB, free: 10.04 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.5959, allocations: 4.312 kB / 0.6861 GB, free: 10.04 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00226/0.5982, allocations: 1.362 MB / 0.6874 GB, free: 8.641 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002745/0.6009, allocations: 0.6025 MB / 0.688 GB, free: 8.043 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01235/0.6133, allocations: 6.557 MB / 0.6944 GB, free: 1.426 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2566/0.8699, allocations: 2.462 MB / 0.6968 GB, free: 118.3 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001004/0.8709, allocations: 180.3 kB / 0.697 GB, free: 118.3 MB / 494.1 MB Notification: Performance of SimCode: time 1.313e-06/0.8709, allocations: 2.25 kB / 0.697 GB, free: 118.3 MB / 494.1 MB Notification: Performance of Templates: time 0.1062/0.977, allocations: 101.5 MB / 0.7961 GB, free: 43.33 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: 13.659455376211554] Failed to read output from testmodel.py, exit status != 0: 0.9865429848432541 0.995623725 0.58422611 Calling exit ...