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.00131/0.00131, allocations: 114.3 kB / 18.94 MB, free: 2.957 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.483/1.483, allocations: 230.6 MB / 252.6 MB, free: 8.301 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.001754/0.001754, allocations: 216.2 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.04339/0.04339, allocations: 8.916 MB / 374.6 MB, free: 1.91 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Slip2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip2",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.00286/0.00286, allocations: 79.88 kB / 0.4893 GB, free: 7.312 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3077/0.3105, allocations: 55.6 MB / 0.5435 GB, free: 26.78 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip2): time 0.02066/0.3312, allocations: 25.65 MB / 0.5686 GB, free: 8.316 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01925/0.3504, allocations: 8.154 MB / 0.5766 GB, free: 2.445 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008511/0.359, allocations: 205.6 kB / 0.5768 GB, free: 2.383 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01624/0.3752, allocations: 6.195 MB / 0.5828 GB, free: 14.72 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01118/0.3864, allocations: 2.861 MB / 0.5856 GB, free: 12.95 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005666/0.392, allocations: 1.676 MB / 0.5872 GB, free: 11.66 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01193/0.404, allocations: 7.394 MB / 0.5945 GB, free: 7.117 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01768/0.4216, allocations: 9.125 MB / 0.6034 GB, free: 15.65 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008128/0.4298, allocations: 3.845 MB / 0.6071 GB, free: 11.8 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008721/0.4385, allocations: 4.306 MB / 0.6113 GB, free: 7.477 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002996/0.4415, allocations: 1.074 MB / 0.6124 GB, free: 6.402 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004553/0.446, allocations: 1.464 MB / 0.6138 GB, free: 4.938 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002797/0.4488, allocations: 2.159 MB / 0.6159 GB, free: 2.773 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00615/0.455, allocations: 4.113 MB / 0.6199 GB, free: 14.64 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01704/0.472, allocations: 14.5 MB / 0.6341 GB, free: 104 kB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.472, allocations: 4 kB / 0.6341 GB, free: 100 kB / 430.1 MB Notification: Performance of FrontEnd: time 1.644e-06/0.472, allocations: 0 / 0.6341 GB, free: 100 kB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002848/0.4723, allocations: 3.938 kB / 0.6341 GB, free: 96 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.02799/0.5003, allocations: 8.905 MB / 0.6428 GB, free: 7.113 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.176e-05/0.5004, allocations: 8.031 kB / 0.6428 GB, free: 7.105 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003264/0.5036, allocations: 1.041 MB / 0.6438 GB, free: 6.055 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02542/0.529, allocations: 4.421 MB / 0.6481 GB, free: 1.625 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01107/0.5401, allocations: 4.625 MB / 0.6527 GB, free: 12.94 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004696/0.5406, allocations: 493.1 kB / 0.6531 GB, free: 12.46 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001986/0.5426, allocations: 0.6327 MB / 0.6537 GB, free: 11.82 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02254/0.5651, allocations: 10.38 MB / 0.6639 GB, free: 1.371 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002075/0.5653, allocations: 15.94 kB / 0.6639 GB, free: 1.355 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001251/0.5666, allocations: 264 kB / 0.6641 GB, free: 1.098 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004545/0.567, allocations: 417.7 kB / 0.6645 GB, free: 0.6875 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02256/0.5896, allocations: 9.911 MB / 0.6742 GB, free: 6.762 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2711/0.8607, allocations: 33.51 MB / 0.7069 GB, free: 96.73 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01193/0.8726, allocations: 6.775 MB / 0.7136 GB, free: 96.53 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00289/0.8755, allocations: 2.118 MB / 0.7156 GB, free: 96.5 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002675/0.8757, allocations: 91.92 kB / 0.7157 GB, free: 96.49 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.813e-05/0.8758, allocations: 63.09 kB / 0.7158 GB, free: 96.45 MB / 494.1 MB Notification: Performance of pre-optimization done (n=295): time 4.779e-06/0.8758, allocations: 0 / 0.7158 GB, free: 96.45 MB / 494.1 MB Notification: Performance of matching and sorting (n=301): time 0.02079/0.8966, allocations: 10.82 MB / 0.7263 GB, free: 92.29 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.745e-05/0.8966, allocations: 87.48 kB / 0.7264 GB, free: 92.22 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004633/0.9013, allocations: 3.033 MB / 0.7294 GB, free: 91.09 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004121/0.9017, allocations: 75.08 kB / 0.7295 GB, free: 91.02 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001607/0.9033, allocations: 2.976 MB / 0.7324 GB, free: 89.14 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009377/0.9042, allocations: 1.078 MB / 0.7334 GB, free: 88.31 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001236/0.9055, allocations: 0.9224 MB / 0.7343 GB, free: 87.87 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.277e-05/0.9055, allocations: 303.9 kB / 0.7346 GB, free: 87.57 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002899/0.9084, allocations: 2.029 MB / 0.7366 GB, free: 86.8 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003998/0.9124, allocations: 3.732 MB / 0.7402 GB, free: 83.82 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006282/0.9187, allocations: 6.06 MB / 0.7462 GB, free: 79.57 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.162e-05/0.9187, allocations: 15.75 kB / 0.7462 GB, free: 79.57 MB / 494.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.009974/0.9287, allocations: 6.647 MB / 0.7527 GB, free: 76.88 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.15e-05/0.9287, allocations: 30 kB / 0.7527 GB, free: 76.88 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.583e-05/0.9288, allocations: 52.44 kB / 0.7527 GB, free: 76.88 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001553/0.9304, allocations: 0.6653 MB / 0.7534 GB, free: 76.75 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003374/0.9337, allocations: 1.078 MB / 0.7544 GB, free: 76.63 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007618/0.9414, allocations: 6.138 MB / 0.7604 GB, free: 72.45 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004523/0.9459, allocations: 276.8 kB / 0.7607 GB, free: 72.31 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007028/0.9466, allocations: 239.4 kB / 0.7609 GB, free: 72.26 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.004526/0.9511, allocations: 2.313 MB / 0.7632 GB, free: 70.73 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001002/0.9521, allocations: 335.3 kB / 0.7635 GB, free: 70.55 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006483/0.9586, allocations: 4.611 MB / 0.768 GB, free: 67.12 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.735e-05/0.9586, allocations: 28 kB / 0.768 GB, free: 67.1 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.066e-05/0.9586, allocations: 8 kB / 0.768 GB, free: 67.09 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-05/0.9587, allocations: 15.94 kB / 0.7681 GB, free: 67.07 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0159/0.9745, allocations: 11.1 MB / 0.7789 GB, free: 55.88 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-05/0.9746, allocations: 4 kB / 0.7789 GB, free: 55.87 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001917/0.9765, allocations: 0.535 MB / 0.7794 GB, free: 55.34 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001372/0.9779, allocations: 0.5693 MB / 0.78 GB, free: 54.77 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001744/0.978, allocations: 67.98 kB / 0.78 GB, free: 54.7 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005947/0.984, allocations: 5.367 MB / 0.7853 GB, free: 49.24 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/0.984, allocations: 4 kB / 0.7853 GB, free: 49.23 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008804/0.9928, allocations: 6.596 MB / 0.7917 GB, free: 42.48 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002059/0.9948, allocations: 0.6694 MB / 0.7924 GB, free: 41.8 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007796/0.9956, allocations: 59.94 kB / 0.7924 GB, free: 41.75 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001662/0.9973, allocations: 143.8 kB / 0.7926 GB, free: 41.61 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003777/0.9977, allocations: 225.9 kB / 0.7928 GB, free: 41.38 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000155/0.9978, allocations: 91.92 kB / 0.7929 GB, free: 41.29 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002809/1.001, allocations: 2.021 MB / 0.7949 GB, free: 39.27 MB / 494.1 MB Notification: Performance of sort global known variables: time 8e-08/1.001, allocations: 0 / 0.7949 GB, free: 39.27 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004361/1.005, allocations: 1.176 MB / 0.796 GB, free: 38.09 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.008444/1.013, allocations: 7.272 MB / 0.8031 GB, free: 30.65 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.006949/1.02, allocations: 4.84 MB / 0.8078 GB, free: 25.79 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.405e-06/1.02, allocations: 4.375 kB / 0.8078 GB, free: 25.78 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003111/1.023, allocations: 2.11 MB / 0.8099 GB, free: 23.66 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003141/1.027, allocations: 0.6483 MB / 0.8105 GB, free: 23.03 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05812/1.085, allocations: 39.08 MB / 0.8487 GB, free: 13.93 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005081/1.09, allocations: 4.158 MB / 0.8528 GB, free: 9.738 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.00371/1.094, allocations: 1.322 MB / 0.854 GB, free: 8.414 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003491/1.097, allocations: 2.26 MB / 0.8563 GB, free: 6.152 MB / 0.5137 GB Notification: Performance of SimCode: time 1.503e-06/1.097, allocations: 0 / 0.8563 GB, free: 6.152 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3884/1.485, allocations: 93.57 MB / 0.9476 GB, free: 170.9 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.46/20.95, allocations: 9.5 kB / 0.9476 GB, free: 170.9 MB / 0.5606 GB " [Timeout remaining time 639] (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: 28.05314806383103] Failed to read output from testmodel.py, exit status != 0: 21.112270461162552 21.130197285 20.654340277 Calling exit ...