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.001327/0.001327, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.403/1.403, allocations: 230.6 MB / 252.7 MB, free: 8.074 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.001588/0.001588, allocations: 214.3 kB / 309.2 MB, free: 2.938 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.04112/0.04112, allocations: 8.923 MB / 374.6 MB, free: 1.707 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: "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Synchronization3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Synchronization3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization3",fmuType="me",version="2.0",platforms={"static"}) [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.002535/0.002535, allocations: 83.88 kB / 0.4892 GB, free: 7.156 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2572/0.2597, allocations: 55.6 MB / 0.5435 GB, free: 26.63 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization3): time 0.01232/0.2721, allocations: 14.31 MB / 0.5575 GB, free: 17.16 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00902/0.2811, allocations: 5.282 MB / 0.5626 GB, free: 13.41 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002815/0.2839, allocations: 118.2 kB / 0.5627 GB, free: 13.37 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00338/0.2873, allocations: 1.206 MB / 0.5639 GB, free: 12.77 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004969/0.2923, allocations: 1.579 MB / 0.5654 GB, free: 11.73 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002947/0.2952, allocations: 1.004 MB / 0.5664 GB, free: 11.11 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0059/0.3011, allocations: 4.76 MB / 0.5711 GB, free: 8.633 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00395/0.305, allocations: 1.9 MB / 0.5729 GB, free: 7.637 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003812/0.3089, allocations: 2.179 MB / 0.5751 GB, free: 6.562 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004619/0.3135, allocations: 2.436 MB / 0.5774 GB, free: 5.48 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001751/0.3152, allocations: 0.5729 MB / 0.578 GB, free: 5.477 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002966/0.3182, allocations: 0.7853 MB / 0.5788 GB, free: 5.406 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002012/0.3202, allocations: 1.296 MB / 0.58 GB, free: 4.566 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004505/0.3247, allocations: 1.945 MB / 0.5819 GB, free: 3.375 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01007/0.3348, allocations: 7.597 MB / 0.5893 GB, free: 13.68 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.151e-06/0.3348, allocations: 0 / 0.5893 GB, free: 13.68 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3348, allocations: 0 / 0.5893 GB, free: 13.68 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002669/0.3351, allocations: 0 / 0.5893 GB, free: 13.68 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.01639/0.3514, allocations: 5.044 MB / 0.5943 GB, free: 8.723 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.095e-05/0.3515, allocations: 8.031 kB / 0.5943 GB, free: 8.715 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001891/0.3534, allocations: 0.5531 MB / 0.5948 GB, free: 8.152 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006446/0.3598, allocations: 0.9858 MB / 0.5958 GB, free: 7.164 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007619/0.3675, allocations: 2.786 MB / 0.5985 GB, free: 4.336 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003568/0.3678, allocations: 287.8 kB / 0.5988 GB, free: 4.055 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001444/0.3693, allocations: 375.9 kB / 0.5991 GB, free: 3.688 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01324/0.3825, allocations: 4.931 MB / 0.604 GB, free: 14.68 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001486/0.3826, allocations: 0 / 0.604 GB, free: 14.68 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001028/0.3837, allocations: 148 kB / 0.6041 GB, free: 14.53 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002068/0.3839, allocations: 155.4 kB / 0.6042 GB, free: 14.38 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00966/0.3935, allocations: 4.046 MB / 0.6082 GB, free: 10.33 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02996/0.4235, allocations: 13.81 MB / 0.6217 GB, free: 12.09 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005876/0.4294, allocations: 2.737 MB / 0.6244 GB, free: 9.465 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004159/0.4335, allocations: 1.803 MB / 0.6261 GB, free: 7.664 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009897/0.4434, allocations: 3.701 MB / 0.6297 GB, free: 3.922 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.059e-05/0.4435, allocations: 47.88 kB / 0.6298 GB, free: 3.867 MB / 430.1 MB Notification: Performance of pre-optimization done (n=137): time 3.927e-06/0.4435, allocations: 0 / 0.6298 GB, free: 3.867 MB / 430.1 MB Notification: Performance of matching and sorting (n=159): time 0.0162/0.4597, allocations: 6.242 MB / 0.6359 GB, free: 13.59 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.432e-05/0.4598, allocations: 68.72 kB / 0.6359 GB, free: 13.5 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005203/0.465, allocations: 2.251 MB / 0.6381 GB, free: 11.22 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002759/0.4653, allocations: 49.7 kB / 0.6382 GB, free: 11.17 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001835/0.4671, allocations: 1.806 MB / 0.6399 GB, free: 9.348 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008453/0.468, allocations: 0.5655 MB / 0.6405 GB, free: 8.777 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009395/0.4689, allocations: 412.1 kB / 0.6409 GB, free: 8.367 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001653/0.4691, allocations: 305.1 kB / 0.6412 GB, free: 8.066 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001755/0.4708, allocations: 0.8399 MB / 0.642 GB, free: 7.223 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002491/0.4733, allocations: 1.627 MB / 0.6436 GB, free: 5.242 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004488/0.4778, allocations: 2.616 MB / 0.6461 GB, free: 2.285 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-05/0.4778, allocations: 8 kB / 0.6462 GB, free: 2.277 MB / 446.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.007164/0.485, allocations: 3.049 MB / 0.6491 GB, free: 15.21 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.828e-05/0.4851, allocations: 16 kB / 0.6491 GB, free: 15.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.821e-05/0.4851, allocations: 24 kB / 0.6492 GB, free: 15.17 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001076/0.4862, allocations: 358.7 kB / 0.6495 GB, free: 14.81 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002023/0.4882, allocations: 0.4914 MB / 0.65 GB, free: 14.32 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006908/0.4951, allocations: 5.022 MB / 0.6549 GB, free: 9.074 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002485/0.4976, allocations: 103.9 kB / 0.655 GB, free: 8.973 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004454/0.498, allocations: 104 kB / 0.6551 GB, free: 8.871 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.002944/0.501, allocations: 1.13 MB / 0.6562 GB, free: 7.73 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008126/0.5018, allocations: 254.4 kB / 0.6564 GB, free: 7.48 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005451/0.5072, allocations: 2.321 MB / 0.6587 GB, free: 5.133 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.328e-05/0.5073, allocations: 16 kB / 0.6587 GB, free: 5.117 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.719e-05/0.5073, allocations: 8 kB / 0.6587 GB, free: 5.109 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.156e-05/0.5073, allocations: 7.969 kB / 0.6587 GB, free: 5.102 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01329/0.5206, allocations: 5.287 MB / 0.6639 GB, free: 15.72 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.101e-05/0.5206, allocations: 4 kB / 0.6639 GB, free: 15.72 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00131/0.5219, allocations: 267.6 kB / 0.6642 GB, free: 15.46 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001073/0.523, allocations: 376 kB / 0.6645 GB, free: 15.08 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001917/0.5232, allocations: 35.98 kB / 0.6646 GB, free: 15.05 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008878/0.5321, allocations: 7.032 MB / 0.6714 GB, free: 7.68 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.382e-06/0.5321, allocations: 4.406 kB / 0.6714 GB, free: 7.676 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007245/0.5393, allocations: 3.437 MB / 0.6748 GB, free: 4.195 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001832/0.5411, allocations: 442.4 kB / 0.6752 GB, free: 3.762 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008179/0.542, allocations: 35.98 kB / 0.6752 GB, free: 3.727 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001641/0.5436, allocations: 67.91 kB / 0.6753 GB, free: 3.66 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000438/0.544, allocations: 125 kB / 0.6754 GB, free: 3.535 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001542/0.5442, allocations: 43.98 kB / 0.6755 GB, free: 3.492 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003919/0.5481, allocations: 1.492 MB / 0.6769 GB, free: 1.984 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.5481, allocations: 0 / 0.6769 GB, free: 1.984 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003705/0.5518, allocations: 0.66 MB / 0.6776 GB, free: 1.324 MB / 478.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.007855/0.5597, allocations: 4.067 MB / 0.6815 GB, free: 13.2 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.005143/0.5648, allocations: 2.338 MB / 0.6838 GB, free: 10.84 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/0.5648, allocations: 4.062 kB / 0.6838 GB, free: 10.83 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002742/0.5676, allocations: 1.369 MB / 0.6852 GB, free: 9.426 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004067/0.5716, allocations: 0.5829 MB / 0.6857 GB, free: 8.848 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2443/0.816, allocations: 23.77 MB / 0.7089 GB, free: 115.9 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002248/0.8182, allocations: 1.975 MB / 0.7109 GB, free: 115.3 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001821/0.82, allocations: 0.5172 MB / 0.7114 GB, free: 115.3 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001661/0.8217, allocations: 1.371 MB / 0.7127 GB, free: 114.2 MB / 494.1 MB Notification: Performance of SimCode: time 1.102e-06/0.8217, allocations: 0.6875 kB / 0.7127 GB, free: 114.2 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1084/0.9301, allocations: 61.79 MB / 0.7731 GB, free: 68.77 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.66/14.59, allocations: 15.12 kB / 0.7731 GB, free: 68.75 MB / 494.1 MB " [Timeout remaining time 645] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization3_fmu --startTime=0 --stopTime=0.3 --stepSize=0.000100033 --timeout=50 --tolerance=1e-08 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization3.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 17.485326647758484] Failed to read output from testmodel.py, exit status != 0: 14.736003561876714 14.745322225 14.408030723 Calling exit ...