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.0007647/0.0007647, allocations: 80.44 kB / 19.17 MB, free: 0.7344 MB / 13.93 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 0.8745/0.8745, allocations: 177.1 MB / 199.4 MB, free: 5.926 MB / 186.7 MB " [Timeout remaining time 179] 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.0009858/0.0009858, allocations: 156.6 kB / 256 MB, free: 13.33 MB / 250.7 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.0219/0.0219, allocations: 6.67 MB / 319 MB, free: 26.77 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.603e-06/1.603e-06, allocations: 3.938 kB / 445.4 MB, free: 37.58 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.92e-05/2.08e-05, allocations: 2.281 kB / 445.4 MB, free: 37.58 MB / 330.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip2): time 0.01237/0.01239, allocations: 22.01 MB / 467.5 MB, free: 15.46 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.01058/0.02297, allocations: 7.776 MB / 475.2 MB, free: 7.66 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003658/0.02663, allocations: 207 kB / 475.4 MB, free: 7.457 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006598/0.03323, allocations: 6.025 MB / 481.5 MB, free: 1.418 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005889/0.03912, allocations: 2.832 MB / 484.3 MB, free: 14.57 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002826/0.04194, allocations: 1.617 MB / 485.9 MB, free: 12.96 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.006993/0.04894, allocations: 7.637 MB / 493.5 MB, free: 5.293 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0109/0.05984, allocations: 9.011 MB / 0.4908 GB, free: 12.15 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008797/0.06864, allocations: 5.655 MB / 0.4963 GB, free: 6.488 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005409/0.07404, allocations: 3.613 MB / 0.4998 GB, free: 2.867 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002124/0.07617, allocations: 1.07 MB / 0.5009 GB, free: 1.797 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003177/0.07934, allocations: 1.46 MB / 0.5023 GB, free: 344 kB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001997/0.08134, allocations: 2.186 MB / 0.5044 GB, free: 14.14 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00496/0.0863, allocations: 2.764 MB / 0.5071 GB, free: 11.37 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01431/0.1006, allocations: 14.7 MB / 0.5215 GB, free: 12.62 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.161e-06/0.1006, allocations: 4 kB / 0.5215 GB, free: 12.62 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.1006, allocations: 0 / 0.5215 GB, free: 12.62 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003731/0.101, allocations: 0 / 0.5215 GB, free: 12.62 MB / 394.7 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.01719/0.1182, allocations: 8.814 MB / 0.5301 GB, free: 3.734 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.899e-05/0.1182, allocations: 12.03 kB / 0.5301 GB, free: 3.723 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002556/0.1208, allocations: 1.048 MB / 0.5311 GB, free: 2.664 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01351/0.1343, allocations: 4.417 MB / 0.5355 GB, free: 14.24 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008209/0.1425, allocations: 4.625 MB / 0.54 GB, free: 9.555 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003391/0.1428, allocations: 493.1 kB / 0.5404 GB, free: 9.07 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001844/0.1447, allocations: 0.6249 MB / 0.5411 GB, free: 8.445 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01711/0.1618, allocations: 10.49 MB / 0.5513 GB, free: 13.86 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001387/0.1619, allocations: 11.94 kB / 0.5513 GB, free: 13.85 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008356/0.1628, allocations: 268 kB / 0.5516 GB, free: 13.59 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002904/0.1631, allocations: 413.7 kB / 0.552 GB, free: 13.18 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0157/0.1787, allocations: 9.86 MB / 0.5616 GB, free: 3.301 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.204/0.3828, allocations: 30.78 MB / 0.5916 GB, free: 94.15 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007443/0.3902, allocations: 6.706 MB / 0.5982 GB, free: 88.36 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002065/0.3923, allocations: 2.111 MB / 0.6003 GB, free: 86.25 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001864/0.3925, allocations: 74.27 kB / 0.6003 GB, free: 86.17 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.109e-05/0.3925, allocations: 60.89 kB / 0.6004 GB, free: 86.1 MB / 426.7 MB Notification: Performance of pre-optimization done (n=295): time 4.789e-06/0.3925, allocations: 7.828 kB / 0.6004 GB, free: 86.1 MB / 426.7 MB Notification: Performance of matching and sorting (n=301): time 0.01301/0.4055, allocations: 10.82 MB / 0.611 GB, free: 75.5 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.742e-05/0.4056, allocations: 81.78 kB / 0.611 GB, free: 75.4 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003008/0.4086, allocations: 3.14 MB / 0.6141 GB, free: 72.32 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000252/0.4088, allocations: 73.7 kB / 0.6142 GB, free: 72.25 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008845/0.4097, allocations: 2.956 MB / 0.6171 GB, free: 69.62 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005446/0.4103, allocations: 1.068 MB / 0.6181 GB, free: 68.57 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008552/0.4111, allocations: 0.9138 MB / 0.619 GB, free: 67.64 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 2.948e-05/0.4111, allocations: 301.1 kB / 0.6193 GB, free: 67.35 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001931/0.4131, allocations: 2.031 MB / 0.6213 GB, free: 65.31 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002349/0.4154, allocations: 3.755 MB / 0.6249 GB, free: 60.76 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004575/0.42, allocations: 6.059 MB / 0.6308 GB, free: 53.9 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.454e-05/0.42, allocations: 16 kB / 0.6309 GB, free: 53.88 MB / 426.7 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.006712/0.4268, allocations: 6.647 MB / 0.6374 GB, free: 47.2 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.032e-05/0.4268, allocations: 30.66 kB / 0.6374 GB, free: 47.17 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.852e-05/0.4269, allocations: 56 kB / 0.6374 GB, free: 47.12 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001039/0.4279, allocations: 0.6704 MB / 0.6381 GB, free: 46.45 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002004/0.4299, allocations: 1.076 MB / 0.6391 GB, free: 45.37 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005228/0.4351, allocations: 6.027 MB / 0.645 GB, free: 39.22 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003116/0.4382, allocations: 275.6 kB / 0.6453 GB, free: 38.95 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005501/0.4388, allocations: 236 kB / 0.6455 GB, free: 38.72 MB / 426.7 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.003242/0.442, allocations: 2.312 MB / 0.6478 GB, free: 36.4 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006383/0.4427, allocations: 341.8 kB / 0.6481 GB, free: 36.06 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004767/0.4474, allocations: 4.618 MB / 0.6526 GB, free: 31.39 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.263e-05/0.4475, allocations: 28 kB / 0.6526 GB, free: 31.36 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.186e-06/0.4475, allocations: 12 kB / 0.6526 GB, free: 31.35 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.552e-05/0.4475, allocations: 15.94 kB / 0.6527 GB, free: 31.34 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01143/0.4589, allocations: 10.57 MB / 0.663 GB, free: 20.67 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.046e-05/0.4589, allocations: 4.062 kB / 0.663 GB, free: 20.66 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001058/0.46, allocations: 0.5383 MB / 0.6635 GB, free: 20.12 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008847/0.4609, allocations: 0.5615 MB / 0.6641 GB, free: 19.56 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001509/0.461, allocations: 67.97 kB / 0.6641 GB, free: 19.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003952/0.465, allocations: 5.26 MB / 0.6693 GB, free: 14.12 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.483e-06/0.465, allocations: 8 kB / 0.6693 GB, free: 14.12 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006261/0.4712, allocations: 6.585 MB / 0.6757 GB, free: 7.367 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001561/0.4728, allocations: 0.6616 MB / 0.6763 GB, free: 6.703 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004051/0.4732, allocations: 64 kB / 0.6764 GB, free: 6.641 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009991/0.4742, allocations: 143.9 kB / 0.6765 GB, free: 6.5 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002976/0.4745, allocations: 225.8 kB / 0.6768 GB, free: 6.277 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001082/0.4746, allocations: 87.98 kB / 0.6768 GB, free: 6.191 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002277/0.4769, allocations: 2.021 MB / 0.6788 GB, free: 4.168 MB / 426.7 MB Notification: Performance of sort global known variables: time 1e-07/0.4769, allocations: 0 / 0.6788 GB, free: 4.168 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003628/0.4805, allocations: 1.176 MB / 0.68 GB, free: 2.992 MB / 426.7 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.007111/0.4876, allocations: 7.29 MB / 0.6871 GB, free: 11.54 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006121/0.4937, allocations: 4.823 MB / 0.6918 GB, free: 6.688 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.606e-06/0.4937, allocations: 0 / 0.6918 GB, free: 6.688 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002575/0.4963, allocations: 2.107 MB / 0.6939 GB, free: 4.566 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002448/0.4988, allocations: 0.6466 MB / 0.6945 GB, free: 3.938 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05797/0.5567, allocations: 39.08 MB / 0.7327 GB, free: 10.82 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004182/0.5609, allocations: 3.652 MB / 0.7362 GB, free: 7.125 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.002647/0.5636, allocations: 1.326 MB / 0.7375 GB, free: 5.797 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003021/0.5666, allocations: 2.265 MB / 0.7397 GB, free: 3.531 MB / 490.7 MB Notification: Performance of SimCode: time 1.453e-06/0.5666, allocations: 0 / 0.7397 GB, free: 3.531 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2576/0.8242, allocations: 91.43 MB / 0.829 GB, free: 89.52 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.26/11.08, allocations: 7.188 kB / 0.829 GB, free: 89.51 MB / 490.7 MB " [Timeout remaining time 649] (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: 15.02961932681501] Failed to read output from testmodel.py, exit status != 0: 11.206477359868586 11.213796591 11.111326391 Calling exit ...