Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.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.001405/0.001405, allocations: 97.88 kB / 19.73 MB, free: 2.117 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.392/1.392, allocations: 230.6 MB / 253.5 MB, free: 14.27 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.00154/0.00154, allocations: 210.3 kB / 310 MB, free: 3.035 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.03989/0.03989, allocations: 8.925 MB / 375.4 MB, free: 6.574 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_Slip2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip2",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Slip2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip2",fmuType="cs",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.002373/0.002373, allocations: 79.88 kB / 0.4899 GB, free: 44.71 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07824/0.08061, allocations: 55.62 MB / 0.5443 GB, free: 4.996 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip2): time 0.2189/0.2996, allocations: 21.94 MB / 0.5657 GB, free: 9.293 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01396/0.3135, allocations: 7.747 MB / 0.5732 GB, free: 9.184 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00464/0.3182, allocations: 202.7 kB / 0.5734 GB, free: 9.184 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01316/0.3313, allocations: 5.725 MB / 0.579 GB, free: 8.234 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008047/0.3394, allocations: 2.79 MB / 0.5818 GB, free: 7.004 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00445/0.3438, allocations: 1.612 MB / 0.5833 GB, free: 6.23 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.009165/0.353, allocations: 7.39 MB / 0.5905 GB, free: 2.68 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01622/0.3692, allocations: 9.134 MB / 0.5995 GB, free: 13.67 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007437/0.3766, allocations: 3.85 MB / 0.6032 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008434/0.3851, allocations: 4.307 MB / 0.6074 GB, free: 9.004 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002989/0.3881, allocations: 1.073 MB / 0.6085 GB, free: 9.004 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005179/0.3932, allocations: 1.459 MB / 0.6099 GB, free: 8.812 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003675/0.3969, allocations: 2.153 MB / 0.612 GB, free: 7.07 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00723/0.4041, allocations: 3.21 MB / 0.6151 GB, free: 4.887 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01905/0.4232, allocations: 14.57 MB / 0.6294 GB, free: 6.512 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.223e-06/0.4232, allocations: 0 / 0.6294 GB, free: 6.512 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.4232, allocations: 0 / 0.6294 GB, free: 6.512 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003664/0.4236, allocations: 0 / 0.6294 GB, free: 6.512 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1800 * Number of variables: 1800 Notification: Performance of Generate backend data structure: time 0.02526/0.4488, allocations: 8.896 MB / 0.6381 GB, free: 13.54 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.897e-05/0.4489, allocations: 15.98 kB / 0.6381 GB, free: 13.52 MB / 430.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0002153/0.4491, allocations: 193 kB / 0.6383 GB, free: 13.33 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002641/0.4517, allocations: 1.045 MB / 0.6393 GB, free: 12.28 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02484/0.4766, allocations: 4.425 MB / 0.6436 GB, free: 7.844 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01037/0.4869, allocations: 4.633 MB / 0.6481 GB, free: 3.16 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004654/0.4874, allocations: 489.1 kB / 0.6486 GB, free: 2.68 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00218/0.4896, allocations: 0.6249 MB / 0.6492 GB, free: 2.055 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02376/0.5133, allocations: 10.5 MB / 0.6595 GB, free: 7.457 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001998/0.5135, allocations: 15.91 kB / 0.6595 GB, free: 7.441 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001188/0.5147, allocations: 264 kB / 0.6597 GB, free: 7.184 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004488/0.5152, allocations: 429.6 kB / 0.6601 GB, free: 6.762 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02036/0.5355, allocations: 9.911 MB / 0.6698 GB, free: 12.83 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05702/0.5926, allocations: 30.81 MB / 0.6999 GB, free: 13.2 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01449/0.6071, allocations: 6.731 MB / 0.7065 GB, free: 7.176 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003841/0.6109, allocations: 2.125 MB / 0.7085 GB, free: 5.051 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003005/0.6112, allocations: 74.31 kB / 0.7086 GB, free: 4.977 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.31e-05/0.6113, allocations: 68.92 kB / 0.7087 GB, free: 4.898 MB / 494.1 MB Notification: Performance of pre-optimization done (n=301): time 5.451e-06/0.6113, allocations: 0 / 0.7087 GB, free: 4.898 MB / 494.1 MB Notification: Performance of matching and sorting (n=359): time 0.03947/0.6507, allocations: 16.37 MB / 0.7247 GB, free: 4.445 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02063/0.6714, allocations: 12.03 MB / 0.7364 GB, free: 8.133 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00467/0.676, allocations: 3.033 MB / 0.7394 GB, free: 5.082 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0005674/0.6766, allocations: 81.7 kB / 0.7395 GB, free: 4.996 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002431/0.679, allocations: 2.967 MB / 0.7424 GB, free: 2 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001676/0.6807, allocations: 1.282 MB / 0.7436 GB, free: 0.707 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001757/0.6825, allocations: 1.009 MB / 0.7446 GB, free: 15.69 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.000131/0.6826, allocations: 301.1 kB / 0.7449 GB, free: 15.39 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003787/0.6864, allocations: 2.356 MB / 0.7472 GB, free: 13.03 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005368/0.6918, allocations: 4.114 MB / 0.7512 GB, free: 8.121 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01024/0.702, allocations: 6.799 MB / 0.7578 GB, free: 0.5273 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.428e-05/0.7021, allocations: 16 kB / 0.7579 GB, free: 0.5117 MB / 0.5294 GB Notification: Performance of matching and sorting (n=654) (initialization): time 0.01534/0.7174, allocations: 7.939 MB / 0.7656 GB, free: 8.539 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 6.617e-05/0.7175, allocations: 28 kB / 0.7656 GB, free: 8.512 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.593e-05/0.7176, allocations: 56 kB / 0.7657 GB, free: 8.457 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003771/0.7213, allocations: 1.309 MB / 0.767 GB, free: 7.141 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004453/0.7258, allocations: 1.127 MB / 0.7681 GB, free: 6.012 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2327/0.9585, allocations: 12.46 MB / 0.7802 GB, free: 164.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004016/0.9625, allocations: 299.4 kB / 0.7805 GB, free: 164.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009648/0.9635, allocations: 257.6 kB / 0.7808 GB, free: 164.2 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 250 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (584): * Single equations (assignments): 582 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(8,28,65.6%), (8,28,64.1%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00462/0.9681, allocations: 2.375 MB / 0.7831 GB, free: 163.9 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001128/0.9692, allocations: 360.5 kB / 0.7834 GB, free: 163.9 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01222/0.9814, allocations: 6.126 MB / 0.7894 GB, free: 161.5 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-05/0.9815, allocations: 36.38 kB / 0.7894 GB, free: 161.5 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.736e-05/0.9815, allocations: 7.25 kB / 0.7895 GB, free: 161.5 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.262e-05/0.9816, allocations: 18.38 kB / 0.7895 GB, free: 161.5 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03015/1.012, allocations: 16.63 MB / 0.8057 GB, free: 154 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.736e-05/1.012, allocations: 9.219 kB / 0.8057 GB, free: 154 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002387/1.014, allocations: 0.5545 MB / 0.8063 GB, free: 154 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003645/1.018, allocations: 1.324 MB / 0.8076 GB, free: 153.7 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004854/1.018, allocations: 80.48 kB / 0.8076 GB, free: 153.7 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01555/1.034, allocations: 12.78 MB / 0.8201 GB, free: 146.6 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0155/1.049, allocations: 11.8 MB / 0.8316 GB, free: 139.9 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01233/1.062, allocations: 8.534 MB / 0.84 GB, free: 132.3 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001992/1.064, allocations: 0.7591 MB / 0.8407 GB, free: 131.6 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008473/1.065, allocations: 68 kB / 0.8408 GB, free: 131.5 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002181/1.067, allocations: 166.6 kB / 0.8409 GB, free: 131.3 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006028/1.067, allocations: 278.6 kB / 0.8412 GB, free: 131.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002558/1.068, allocations: 108 kB / 0.8413 GB, free: 130.9 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.002933/1.07, allocations: 2.024 MB / 0.8433 GB, free: 128.9 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/1.07, allocations: 0 / 0.8433 GB, free: 128.9 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004715/1.075, allocations: 1.363 MB / 0.8446 GB, free: 127.6 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 2 ($STATESET1.x,mechanicalPowerSensor.relSpeedSensor.phi_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (305): * Single equations (assignments): 303 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(8,20,62.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(9,42)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01132/1.087, allocations: 9.23 MB / 0.8536 GB, free: 118.2 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.009192/1.096, allocations: 6.062 MB / 0.8595 GB, free: 112.1 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.069e-05/1.096, allocations: 0 / 0.8595 GB, free: 112.1 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004841/1.101, allocations: 2.998 MB / 0.8625 GB, free: 109.1 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004061/1.105, allocations: 0.6709 MB / 0.8631 GB, free: 108.5 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05975/1.164, allocations: 43.71 MB / 0.9058 GB, free: 62.8 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003142/1.168, allocations: 3.789 MB / 0.9095 GB, free: 58.97 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003083/1.171, allocations: 1.37 MB / 0.9108 GB, free: 57.59 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002395/1.173, allocations: 2.303 MB / 0.9131 GB, free: 55.29 MB / 0.545 GB Notification: Performance of SimCode: time 8.82e-07/1.173, allocations: 0 / 0.9131 GB, free: 55.29 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4053/1.578, allocations: 109 MB / 1.02 GB, free: 186.5 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.93/22.5, allocations: 5.969 kB / 1.02 GB, free: 186.5 MB / 0.5762 GB " [Timeout remaining time 637] (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip2_fmu --startTime=0 --stopTime=30 --stepSize=0.001 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip2.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 34.02962693700101] Failed to read output from testmodel.py, exit status != 0: 22.739622978959233 22.763047651 22.335815015 Calling exit ...