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.001453/0.001453, 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.486/1.486, allocations: 230.6 MB / 253.4 MB, free: 14.28 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.001621/0.001621, allocations: 207.7 kB / 310 MB, free: 3.098 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.04096/0.04096, allocations: 8.921 MB / 375.3 MB, free: 6.586 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.002577/0.002577, allocations: 83.88 kB / 0.4904 GB, free: 44.24 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09659/0.09916, allocations: 55.62 MB / 0.5447 GB, free: 4.527 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization1): time 0.01893/0.1181, allocations: 14.31 MB / 0.5587 GB, free: 6.152 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01236/0.1305, allocations: 5.279 MB / 0.5638 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003524/0.134, allocations: 115.4 kB / 0.5639 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.245/0.3789, allocations: 1.196 MB / 0.5651 GB, free: 10.12 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004836/0.3838, allocations: 1.574 MB / 0.5666 GB, free: 10.12 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002531/0.3863, allocations: 1.014 MB / 0.5676 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005373/0.3917, allocations: 4.745 MB / 0.5723 GB, free: 10.08 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003174/0.3948, allocations: 1.906 MB / 0.5741 GB, free: 9.836 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00363/0.3985, allocations: 2.172 MB / 0.5762 GB, free: 9.492 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005285/0.4038, allocations: 2.436 MB / 0.5786 GB, free: 8.918 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00203/0.4058, allocations: 0.5686 MB / 0.5792 GB, free: 8.918 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003192/0.409, allocations: 0.7906 MB / 0.5799 GB, free: 8.852 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001437/0.4104, allocations: 1.303 MB / 0.5812 GB, free: 8.023 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00422/0.4146, allocations: 1.943 MB / 0.5831 GB, free: 6.91 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009569/0.4242, allocations: 7.599 MB / 0.5905 GB, free: 3.703 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.4242, allocations: 4.906 kB / 0.5905 GB, free: 3.703 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.4242, allocations: 0.9375 kB / 0.5905 GB, free: 3.703 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002604/0.4245, allocations: 3.938 kB / 0.5905 GB, free: 3.699 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.0148/0.4393, allocations: 5.041 MB / 0.5955 GB, free: 356 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.608e-05/0.4393, allocations: 13.14 kB / 0.5955 GB, free: 352 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005815/0.4451, allocations: 0.9784 MB / 0.5964 GB, free: 15.88 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00787/0.453, allocations: 2.795 MB / 0.5992 GB, free: 13.96 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003407/0.4533, allocations: 281.6 kB / 0.5994 GB, free: 13.84 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001619/0.455, allocations: 365.8 kB / 0.5998 GB, free: 13.72 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01533/0.4703, allocations: 4.937 MB / 0.6046 GB, free: 10.72 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001139/0.4704, allocations: 3.953 kB / 0.6046 GB, free: 10.71 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005964/0.471, allocations: 149.5 kB / 0.6047 GB, free: 10.6 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001763/0.4712, allocations: 158.9 kB / 0.6049 GB, free: 10.58 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009361/0.4805, allocations: 4.045 MB / 0.6088 GB, free: 8.438 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03081/0.5113, allocations: 13.28 MB / 0.6218 GB, free: 11.31 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005686/0.517, allocations: 2.723 MB / 0.6245 GB, free: 8.738 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003865/0.5209, allocations: 1.814 MB / 0.6262 GB, free: 6.938 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008826/0.5297, allocations: 3.654 MB / 0.6298 GB, free: 3.285 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.552e-05/0.5298, allocations: 48.75 kB / 0.6299 GB, free: 3.23 MB / 414.1 MB Notification: Performance of pre-optimization done (n=137): time 4.469e-06/0.5298, allocations: 4 kB / 0.6299 GB, free: 3.227 MB / 414.1 MB Notification: Performance of matching and sorting (n=159): time 0.01573/0.5455, allocations: 6.223 MB / 0.6359 GB, free: 12.97 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.409e-05/0.5456, allocations: 72.66 kB / 0.636 GB, free: 12.89 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003787/0.5494, allocations: 2.002 MB / 0.638 GB, free: 10.84 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003279/0.5497, allocations: 49.7 kB / 0.638 GB, free: 10.79 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001619/0.5513, allocations: 1.813 MB / 0.6398 GB, free: 8.969 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008129/0.5521, allocations: 0.5724 MB / 0.6403 GB, free: 8.406 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007089/0.5529, allocations: 412 kB / 0.6407 GB, free: 7.996 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001483/0.553, allocations: 301.1 kB / 0.641 GB, free: 7.699 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001562/0.5546, allocations: 0.8515 MB / 0.6419 GB, free: 6.844 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002269/0.5568, allocations: 1.626 MB / 0.6434 GB, free: 4.867 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003988/0.5608, allocations: 2.616 MB / 0.646 GB, free: 1.918 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.912e-05/0.5608, allocations: 4 kB / 0.646 GB, free: 1.914 MB / 430.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.005973/0.5668, allocations: 3.027 MB / 0.649 GB, free: 14.87 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.433e-05/0.5669, allocations: 16 kB / 0.649 GB, free: 14.86 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.381e-05/0.5669, allocations: 27.94 kB / 0.649 GB, free: 14.83 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001015/0.5679, allocations: 351 kB / 0.6493 GB, free: 14.48 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001891/0.5698, allocations: 0.4953 MB / 0.6498 GB, free: 13.98 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006208/0.576, allocations: 4.95 MB / 0.6547 GB, free: 8.836 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002373/0.5784, allocations: 103.9 kB / 0.6548 GB, free: 8.734 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00033/0.5787, allocations: 108 kB / 0.6549 GB, free: 8.629 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.002719/0.5814, allocations: 1.137 MB / 0.656 GB, free: 7.484 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006566/0.5821, allocations: 226.6 kB / 0.6562 GB, free: 7.262 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004687/0.5868, allocations: 2.313 MB / 0.6584 GB, free: 4.93 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.738e-05/0.5868, allocations: 16 kB / 0.6585 GB, free: 4.914 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.253e-05/0.5868, allocations: 4 kB / 0.6585 GB, free: 4.91 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.835e-05/0.5868, allocations: 12.09 kB / 0.6585 GB, free: 4.898 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01047/0.5973, allocations: 4.836 MB / 0.6632 GB, free: 32 kB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.428e-06/0.5973, allocations: 7.938 kB / 0.6632 GB, free: 24 kB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001252/0.5986, allocations: 263.7 kB / 0.6635 GB, free: 15.77 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001021/0.5996, allocations: 369.3 kB / 0.6638 GB, free: 15.4 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000148/0.5997, allocations: 39.98 kB / 0.6638 GB, free: 15.36 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008554/0.6083, allocations: 6.95 MB / 0.6706 GB, free: 8.117 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.594e-06/0.6083, allocations: 0 / 0.6706 GB, free: 8.117 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006746/0.615, allocations: 3.424 MB / 0.674 GB, free: 4.645 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001872/0.6169, allocations: 418.5 kB / 0.6744 GB, free: 4.234 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005434/0.6174, allocations: 36 kB / 0.6744 GB, free: 4.199 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001206/0.6187, allocations: 63.95 kB / 0.6745 GB, free: 4.137 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003316/0.619, allocations: 121.1 kB / 0.6746 GB, free: 4.016 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000102/0.6191, allocations: 39.98 kB / 0.6746 GB, free: 3.977 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002473/0.6216, allocations: 1.315 MB / 0.6759 GB, free: 2.641 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6216, allocations: 4 kB / 0.6759 GB, free: 2.637 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00334/0.6249, allocations: 0.66 MB / 0.6766 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.0004822/0.6254, allocations: 170.4 kB / 0.6767 GB, free: 1.805 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004755/0.6301, allocations: 2.34 MB / 0.679 GB, free: 15.44 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.64e-06/0.6301, allocations: 6 kB / 0.679 GB, free: 15.43 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002464/0.6326, allocations: 1.366 MB / 0.6803 GB, free: 14.03 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002858/0.6355, allocations: 490.3 kB / 0.6808 GB, free: 13.55 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01385/0.6493, allocations: 6.536 MB / 0.6872 GB, free: 6.973 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002568/0.6519, allocations: 1.922 MB / 0.6891 GB, free: 5.02 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000886/0.6528, allocations: 171.4 kB / 0.6892 GB, free: 4.852 MB / 478.1 MB Notification: Performance of SimCode: time 1.363e-06/0.6528, allocations: 4 kB / 0.6892 GB, free: 4.848 MB / 478.1 MB Notification: Performance of Templates: time 0.3692/1.022, allocations: 101 MB / 0.7878 GB, free: 181.1 MB / 0.545 GB " [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.35005861474201] Failed to read output from testmodel.py, exit status != 0: 1.0309949880465865 1.043445941 0.616570016 Calling exit ...