Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1.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.001354/0.001354, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.477/1.477, allocations: 230.6 MB / 252.7 MB, free: 8.293 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.001609/0.001609, allocations: 206 kB / 309.2 MB, free: 3.152 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.04259/0.04259, allocations: 8.926 MB / 374.6 MB, free: 1.898 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_Slip1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Slip1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip1",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.004047/0.004047, allocations: 79.88 kB / 0.4892 GB, free: 7.332 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2895/0.2936, allocations: 55.6 MB / 0.5435 GB, free: 26.81 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip1): time 0.01995/0.3135, allocations: 25.63 MB / 0.5685 GB, free: 8.371 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01397/0.3275, allocations: 8.15 MB / 0.5765 GB, free: 2.508 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005274/0.3327, allocations: 198.5 kB / 0.5767 GB, free: 2.449 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01551/0.3483, allocations: 6.209 MB / 0.5828 GB, free: 14.78 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01022/0.3585, allocations: 2.867 MB / 0.5856 GB, free: 12.98 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006332/0.3648, allocations: 1.667 MB / 0.5872 GB, free: 11.67 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0123/0.3771, allocations: 7.405 MB / 0.5944 GB, free: 7.121 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01873/0.3958, allocations: 9.119 MB / 0.6033 GB, free: 15.66 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007881/0.4037, allocations: 3.841 MB / 0.6071 GB, free: 11.81 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008995/0.4127, allocations: 4.31 MB / 0.6113 GB, free: 7.484 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003948/0.4167, allocations: 1.07 MB / 0.6123 GB, free: 6.414 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00565/0.4223, allocations: 1.461 MB / 0.6138 GB, free: 4.953 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003701/0.426, allocations: 2.151 MB / 0.6159 GB, free: 2.797 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008352/0.4344, allocations: 4.113 MB / 0.6199 GB, free: 14.66 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02042/0.4548, allocations: 14.5 MB / 0.634 GB, free: 120 kB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.4548, allocations: 0 / 0.634 GB, free: 120 kB / 430.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.4548, allocations: 4 kB / 0.634 GB, free: 116 kB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003523/0.4551, allocations: 0 / 0.634 GB, free: 116 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.03035/0.4855, allocations: 8.901 MB / 0.6427 GB, free: 7.137 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.593e-05/0.4856, allocations: 12.03 kB / 0.6427 GB, free: 7.125 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004858/0.4904, allocations: 1.048 MB / 0.6438 GB, free: 6.066 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02729/0.5177, allocations: 4.413 MB / 0.6481 GB, free: 1.645 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01139/0.5291, allocations: 4.636 MB / 0.6526 GB, free: 12.95 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00046/0.5296, allocations: 489.1 kB / 0.6531 GB, free: 12.47 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002047/0.5316, allocations: 0.6249 MB / 0.6537 GB, free: 11.85 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02436/0.556, allocations: 10.39 MB / 0.6638 GB, free: 1.383 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003361/0.5563, allocations: 15.89 kB / 0.6638 GB, free: 1.367 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002108/0.5584, allocations: 264 kB / 0.6641 GB, free: 1.109 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005076/0.5589, allocations: 421.7 kB / 0.6645 GB, free: 0.6953 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02744/0.5863, allocations: 9.904 MB / 0.6742 GB, free: 6.773 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2873/0.8737, allocations: 33.52 MB / 0.7069 GB, free: 96.75 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01224/0.8859, allocations: 6.773 MB / 0.7135 GB, free: 96.55 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003187/0.8891, allocations: 2.114 MB / 0.7156 GB, free: 96.52 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002958/0.8894, allocations: 90.95 kB / 0.7157 GB, free: 96.52 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.916e-05/0.8894, allocations: 67 kB / 0.7157 GB, free: 96.47 MB / 494.1 MB Notification: Performance of pre-optimization done (n=295): time 4.519e-06/0.8894, allocations: 1.781 kB / 0.7157 GB, free: 96.47 MB / 494.1 MB Notification: Performance of matching and sorting (n=301): time 0.02129/0.9107, allocations: 10.82 MB / 0.7263 GB, free: 92.33 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.198e-05/0.9108, allocations: 86.22 kB / 0.7264 GB, free: 92.26 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004911/0.9157, allocations: 3.036 MB / 0.7293 GB, free: 91.13 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003538/0.9161, allocations: 71.98 kB / 0.7294 GB, free: 91.06 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001427/0.9175, allocations: 2.977 MB / 0.7323 GB, free: 89.18 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00101/0.9185, allocations: 1.082 MB / 0.7334 GB, free: 88.35 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001574/0.9201, allocations: 0.9185 MB / 0.7343 GB, free: 87.91 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.081e-05/0.9201, allocations: 301.1 kB / 0.7346 GB, free: 87.61 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003153/0.9233, allocations: 2.034 MB / 0.7365 GB, free: 86.84 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003795/0.9271, allocations: 3.731 MB / 0.7402 GB, free: 83.85 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006998/0.9341, allocations: 6.06 MB / 0.7461 GB, free: 79.6 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.29e-05/0.9341, allocations: 15.62 kB / 0.7461 GB, free: 79.6 MB / 494.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01128/0.9454, allocations: 6.649 MB / 0.7526 GB, free: 76.91 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.142e-05/0.9455, allocations: 26.34 kB / 0.7526 GB, free: 76.91 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.877e-05/0.9456, allocations: 57.72 kB / 0.7527 GB, free: 76.91 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001762/0.9473, allocations: 0.6652 MB / 0.7533 GB, free: 76.78 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003717/0.9511, allocations: 1.079 MB / 0.7544 GB, free: 76.66 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007621/0.9587, allocations: 6.136 MB / 0.7604 GB, free: 72.47 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00369/0.9624, allocations: 280.9 kB / 0.7607 GB, free: 72.32 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006531/0.963, allocations: 230.7 kB / 0.7609 GB, free: 72.28 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 251 * 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 (560): * Single equations (assignments): 559 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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,28,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003796/0.9668, allocations: 2.315 MB / 0.7631 GB, free: 70.75 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009203/0.9677, allocations: 339.5 kB / 0.7635 GB, free: 70.57 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007043/0.9748, allocations: 4.61 MB / 0.768 GB, free: 67.11 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.038e-05/0.9748, allocations: 35.98 kB / 0.768 GB, free: 67.07 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.924e-05/0.9748, allocations: 7.938 kB / 0.768 GB, free: 67.07 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.778e-05/0.9748, allocations: 11.95 kB / 0.768 GB, free: 67.05 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01778/0.9926, allocations: 11.1 MB / 0.7789 GB, free: 55.86 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.508e-05/0.9926, allocations: 4 kB / 0.7789 GB, free: 55.86 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002048/0.9947, allocations: 0.5388 MB / 0.7794 GB, free: 55.32 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001437/0.9961, allocations: 0.5693 MB / 0.7799 GB, free: 54.75 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002657/0.9964, allocations: 67.97 kB / 0.78 GB, free: 54.68 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006123/1.003, allocations: 5.354 MB / 0.7852 GB, free: 49.22 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.23e-06/1.003, allocations: 7.938 kB / 0.7852 GB, free: 49.21 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009219/1.012, allocations: 6.596 MB / 0.7917 GB, free: 42.46 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001904/1.014, allocations: 0.6693 MB / 0.7923 GB, free: 41.79 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008132/1.014, allocations: 59.98 kB / 0.7924 GB, free: 41.73 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001989/1.016, allocations: 147.9 kB / 0.7925 GB, free: 41.58 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000417/1.017, allocations: 221.9 kB / 0.7928 GB, free: 41.36 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002022/1.017, allocations: 91.97 kB / 0.7928 GB, free: 41.27 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003437/1.02, allocations: 2.021 MB / 0.7948 GB, free: 39.25 MB / 494.1 MB Notification: Performance of sort global known variables: time 4.11e-07/1.02, allocations: 0 / 0.7948 GB, free: 39.25 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.00497/1.025, allocations: 1.176 MB / 0.796 GB, free: 38.07 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 2 (smee.short.port_p.reference.gamma,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 (291): * Single equations (assignments): 290 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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,26,62.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.009313/1.035, allocations: 7.276 MB / 0.8031 GB, free: 30.63 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007243/1.042, allocations: 4.832 MB / 0.8078 GB, free: 25.77 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.963e-06/1.042, allocations: 0 / 0.8078 GB, free: 25.77 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003168/1.045, allocations: 2.118 MB / 0.8099 GB, free: 23.64 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003813/1.049, allocations: 0.6604 MB / 0.8105 GB, free: 23 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06699/1.116, allocations: 39.07 MB / 0.8486 GB, free: 13.91 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007147/1.123, allocations: 4.154 MB / 0.8527 GB, free: 9.723 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004405/1.128, allocations: 1.326 MB / 0.854 GB, free: 8.395 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004286/1.132, allocations: 2.257 MB / 0.8562 GB, free: 6.137 MB / 0.5137 GB Notification: Performance of SimCode: time 9.62e-07/1.132, allocations: 0 / 0.8562 GB, free: 6.137 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3944/1.526, allocations: 93.59 MB / 0.9476 GB, free: 170.4 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.62/21.14, allocations: 0 / 0.9476 GB, free: 170.4 MB / 0.5606 GB " [Timeout remaining time 639] (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip1_fmu --startTime=0 --stopTime=30 --stepSize=0.001 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip1.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip1.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 28.154669258976355] Failed to read output from testmodel.py, exit status != 0: 21.306873947149143 21.323599438 20.864873312 Calling exit ...