Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.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.001758/0.001758, allocations: 116.1 kB / 17.17 MB, free: 6 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.554/1.554, allocations: 230.6 MB / 250.5 MB, free: 9.227 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.001755/0.001755, allocations: 228.6 kB / 306.7 MB, free: 4.309 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.04242/0.04242, allocations: 8.904 MB / 371.7 MB, free: 3.441 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_Slip4,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip4",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Slip4,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip4",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.002675/0.002675, allocations: 79.88 kB / 496.5 MB, free: 9.793 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2844/0.2871, allocations: 55.56 MB / 0.5391 GB, free: 26.64 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip4): time 0.02004/0.3071, allocations: 25.57 MB / 0.5641 GB, free: 8.207 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01506/0.3222, allocations: 8.138 MB / 0.572 GB, free: 2.34 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005494/0.3277, allocations: 205.6 kB / 0.5722 GB, free: 2.277 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01458/0.3422, allocations: 6.175 MB / 0.5783 GB, free: 14.63 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009859/0.3521, allocations: 2.787 MB / 0.581 GB, free: 12.89 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00552/0.3576, allocations: 1.642 MB / 0.5826 GB, free: 11.87 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0133/0.3709, allocations: 7.346 MB / 0.5898 GB, free: 7.535 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01901/0.3899, allocations: 10.14 MB / 0.5997 GB, free: 15.93 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007129/0.3971, allocations: 3.81 MB / 0.6034 GB, free: 12.11 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008037/0.4051, allocations: 4.29 MB / 0.6076 GB, free: 7.805 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003228/0.4083, allocations: 1.07 MB / 0.6086 GB, free: 6.734 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004982/0.4133, allocations: 1.464 MB / 0.61 GB, free: 5.27 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003747/0.417, allocations: 2.147 MB / 0.6121 GB, free: 3.117 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008046/0.4251, allocations: 4.12 MB / 0.6162 GB, free: 14.98 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02034/0.4454, allocations: 14.5 MB / 0.6303 GB, free: 448 kB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.865e-06/0.4454, allocations: 4 kB / 0.6303 GB, free: 444 kB / 430.1 MB Notification: Performance of FrontEnd: time 2.205e-06/0.4454, allocations: 0 / 0.6303 GB, free: 444 kB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004111/0.4459, allocations: 0 / 0.6303 GB, free: 444 kB / 430.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.02918/0.475, allocations: 8.98 MB / 0.6391 GB, free: 7.355 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.567e-05/0.4751, allocations: 8.031 kB / 0.6391 GB, free: 7.348 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0002395/0.4753, allocations: 193 kB / 0.6393 GB, free: 7.156 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003738/0.4791, allocations: 1.056 MB / 0.6403 GB, free: 6.09 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02707/0.5061, allocations: 4.413 MB / 0.6446 GB, free: 1.668 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01107/0.5172, allocations: 4.642 MB / 0.6492 GB, free: 12.96 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000617/0.5178, allocations: 493 kB / 0.6496 GB, free: 12.48 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002665/0.5205, allocations: 0.6366 MB / 0.6503 GB, free: 11.84 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02666/0.5471, allocations: 10.39 MB / 0.6604 GB, free: 1.375 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003608/0.5475, allocations: 19.88 kB / 0.6604 GB, free: 1.355 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002195/0.5497, allocations: 264 kB / 0.6607 GB, free: 1.098 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000524/0.5502, allocations: 417.7 kB / 0.6611 GB, free: 0.6875 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02262/0.5728, allocations: 9.911 MB / 0.6708 GB, free: 6.762 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2817/0.8545, allocations: 37.2 MB / 0.7071 GB, free: 93.47 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01527/0.8698, allocations: 20.52 MB / 0.7271 GB, free: 76.23 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003667/0.8734, allocations: 2.124 MB / 0.7292 GB, free: 76.18 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003253/0.8738, allocations: 330.6 kB / 0.7295 GB, free: 75.88 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.569e-05/0.8738, allocations: 62.53 kB / 0.7296 GB, free: 75.82 MB / 494.1 MB Notification: Performance of pre-optimization done (n=301): time 4.889e-06/0.8738, allocations: 0 / 0.7296 GB, free: 75.82 MB / 494.1 MB Notification: Performance of matching and sorting (n=359): time 0.03878/0.9126, allocations: 16.53 MB / 0.7457 GB, free: 69.51 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.01752/0.9301, allocations: 12.45 MB / 0.7579 GB, free: 62.17 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004162/0.9343, allocations: 3.029 MB / 0.7608 GB, free: 60.96 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005029/0.9348, allocations: 84.39 kB / 0.7609 GB, free: 60.88 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00136/0.9361, allocations: 2.964 MB / 0.7638 GB, free: 58.64 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009973/0.9371, allocations: 1.295 MB / 0.7651 GB, free: 57.52 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001312/0.9384, allocations: 1.002 MB / 0.766 GB, free: 56.94 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 3.79e-05/0.9385, allocations: 309 kB / 0.7663 GB, free: 56.64 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002795/0.9413, allocations: 2.355 MB / 0.7686 GB, free: 55.37 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003417/0.9447, allocations: 4.086 MB / 0.7726 GB, free: 51.8 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006626/0.9513, allocations: 6.801 MB / 0.7793 GB, free: 46.67 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.489e-05/0.9513, allocations: 15.5 kB / 0.7793 GB, free: 46.67 MB / 494.1 MB Notification: Performance of matching and sorting (n=654) (initialization): time 0.01234/0.9637, allocations: 7.932 MB / 0.787 GB, free: 40.42 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.05e-05/0.9637, allocations: 32.22 kB / 0.7871 GB, free: 40.39 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.816e-05/0.9638, allocations: 52 kB / 0.7871 GB, free: 40.34 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003379/0.9672, allocations: 1.317 MB / 0.7884 GB, free: 39.02 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004099/0.9713, allocations: 1.127 MB / 0.7895 GB, free: 37.89 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.015/0.9863, allocations: 12.86 MB / 0.8021 GB, free: 24.75 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004296/0.9906, allocations: 307.5 kB / 0.8023 GB, free: 24.45 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000733/0.9913, allocations: 255.9 kB / 0.8026 GB, free: 24.2 MB / 494.1 MB 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.003801/0.9951, allocations: 2.379 MB / 0.8049 GB, free: 21.81 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009258/0.996, allocations: 353.7 kB / 0.8053 GB, free: 21.46 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009365/1.005, allocations: 6.134 MB / 0.8112 GB, free: 15.29 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.226e-05/1.005, allocations: 43.78 kB / 0.8113 GB, free: 15.25 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.178e-05/1.005, allocations: 4 kB / 0.8113 GB, free: 15.24 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.811e-05/1.005, allocations: 19.88 kB / 0.8113 GB, free: 15.22 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0263/1.032, allocations: 17.57 MB / 0.8285 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.013e-05/1.032, allocations: 11.94 kB / 0.8285 GB, free: 13.47 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002344/1.034, allocations: 0.55 MB / 0.829 GB, free: 12.92 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003937/1.038, allocations: 1.329 MB / 0.8303 GB, free: 11.59 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003526/1.038, allocations: 83.97 kB / 0.8304 GB, free: 11.5 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02057/1.059, allocations: 13.19 MB / 0.8433 GB, free: 14.04 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02156/1.081, allocations: 12.17 MB / 0.8552 GB, free: 1.562 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01604/1.097, allocations: 8.534 MB / 0.8635 GB, free: 8.871 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00234/1.099, allocations: 0.8227 MB / 0.8643 GB, free: 8.027 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005843/1.1, allocations: 72.11 kB / 0.8644 GB, free: 7.957 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001883/1.101, allocations: 167.8 kB / 0.8645 GB, free: 7.793 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006919/1.102, allocations: 266.8 kB / 0.8648 GB, free: 7.531 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002393/1.102, allocations: 107.9 kB / 0.8649 GB, free: 7.426 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003382/1.106, allocations: 2.021 MB / 0.8669 GB, free: 5.402 MB / 0.5294 GB Notification: Performance of sort global known variables: time 9.1e-08/1.106, allocations: 0 / 0.8669 GB, free: 5.402 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005048/1.111, allocations: 1.363 MB / 0.8682 GB, free: 4.039 MB / 0.5294 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.01527/1.126, allocations: 9.238 MB / 0.8772 GB, free: 10.64 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01152/1.138, allocations: 6.059 MB / 0.8831 GB, free: 4.551 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 7.725e-06/1.138, allocations: 0 / 0.8831 GB, free: 4.551 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.006238/1.144, allocations: 3.011 MB / 0.8861 GB, free: 1.516 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003781/1.148, allocations: 0.6733 MB / 0.8867 GB, free: 0.8594 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2866/1.434, allocations: 43.61 MB / 0.9293 GB, free: 170 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006411/1.441, allocations: 4.295 MB / 0.9335 GB, free: 168.3 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.004531/1.445, allocations: 1.366 MB / 0.9348 GB, free: 168.3 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003593/1.449, allocations: 2.305 MB / 0.9371 GB, free: 166.4 MB / 0.5606 GB Notification: Performance of SimCode: time 1.222e-06/1.449, allocations: 0 / 0.9371 GB, free: 166.4 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1453/1.594, allocations: 105.5 MB / 1.04 GB, free: 74.83 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.26/21.85, allocations: 10.66 kB / 1.04 GB, free: 74.82 MB / 0.5606 GB " [Timeout remaining time 638] (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip4_fmu --startTime=0 --stopTime=30 --stepSize=0.001 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip4.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 27.265930496971123] Failed to read output from testmodel.py, exit status != 0: 22.057111538015306 22.065875428 21.618016075 Calling exit ...