Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.Rotational.Drive.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.001931/0.001931, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.448/1.448, allocations: 230.6 MB / 252.7 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.001545/0.001545, allocations: 213.4 kB / 309.2 MB, free: 3.062 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.04132/0.04132, allocations: 8.928 MB / 374.6 MB, free: 6.578 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.Rotational.Drive,fileNamePrefix="HanserModelica_HanserModelica_Rotational_Drive",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Rotational.Drive,fileNamePrefix="HanserModelica_HanserModelica_Rotational_Drive",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.002454/0.002454, allocations: 83.88 kB / 0.4891 GB, free: 44.79 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08405/0.0865, allocations: 55.61 MB / 0.5434 GB, free: 5.074 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.Drive): time 0.003578/0.09008, allocations: 1.999 MB / 0.5454 GB, free: 3.059 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001846/0.09192, allocations: 1.06 MB / 0.5464 GB, free: 1.992 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.93e-05/0.09202, allocations: 11.88 kB / 0.5464 GB, free: 1.98 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003385/0.09236, allocations: 123.5 kB / 0.5465 GB, free: 1.859 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003754/0.09274, allocations: 159.3 kB / 0.5467 GB, free: 1.703 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002295/0.09297, allocations: 99.69 kB / 0.5468 GB, free: 1.605 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002835/0.09325, allocations: 227.1 kB / 0.547 GB, free: 1.383 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001233/0.09337, allocations: 38.02 kB / 0.547 GB, free: 1.348 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001283/0.0935, allocations: 95.61 kB / 0.5471 GB, free: 1.254 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001822/0.09368, allocations: 119.6 kB / 0.5472 GB, free: 1.137 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.149e-05/0.09372, allocations: 15.98 kB / 0.5473 GB, free: 1.121 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000111/0.09383, allocations: 51.94 kB / 0.5473 GB, free: 1.07 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.331e-05/0.0939, allocations: 51.83 kB / 0.5474 GB, free: 1.02 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 8.368e-05/0.09398, allocations: 67.59 kB / 0.5474 GB, free: 0.9531 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003396/0.09432, allocations: 239 kB / 0.5477 GB, free: 0.7188 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.09433, allocations: 0 / 0.5477 GB, free: 0.7188 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.09433, allocations: 0 / 0.5477 GB, free: 0.7188 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.913e-06/0.09434, allocations: 0 / 0.5477 GB, free: 0.7188 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0007428/0.09508, allocations: 451 kB / 0.5481 GB, free: 256 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.98e-05/0.09512, allocations: 15.98 kB / 0.5481 GB, free: 240 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.261e-05/0.09517, allocations: 38.73 kB / 0.5481 GB, free: 192 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.962e-05/0.09522, allocations: 24.8 kB / 0.5482 GB, free: 168 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003705/0.09559, allocations: 193.1 kB / 0.5483 GB, free: 15.95 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.082e-05/0.09561, allocations: 14.61 kB / 0.5484 GB, free: 15.93 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.699e-05/0.09565, allocations: 12 kB / 0.5484 GB, free: 15.92 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003115/0.09596, allocations: 145.4 kB / 0.5485 GB, free: 15.77 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.492e-05/0.09598, allocations: 0 / 0.5485 GB, free: 15.77 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.669e-05/0.09599, allocations: 4 kB / 0.5485 GB, free: 15.77 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/0.096, allocations: 4 kB / 0.5485 GB, free: 15.76 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001856/0.09618, allocations: 80.52 kB / 0.5486 GB, free: 15.68 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008699/0.09705, allocations: 0.5494 MB / 0.5491 GB, free: 15.08 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002512/0.09731, allocations: 94.61 kB / 0.5492 GB, free: 14.98 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.233e-05/0.09739, allocations: 36.78 kB / 0.5493 GB, free: 14.94 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.656e-05/0.0974, allocations: 0 / 0.5493 GB, free: 14.94 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001948/0.0976, allocations: 83.38 kB / 0.5493 GB, free: 14.85 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.282e-06/0.0976, allocations: 0 / 0.5493 GB, free: 14.85 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0004039/0.098, allocations: 161.4 kB / 0.5495 GB, free: 14.68 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.545e-05/0.09805, allocations: 51.41 kB / 0.5495 GB, free: 14.62 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003208/0.09837, allocations: 292.9 kB / 0.5498 GB, free: 14.32 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.24e-05/0.09839, allocations: 25.7 kB / 0.5498 GB, free: 14.29 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001366/0.09853, allocations: 152.2 kB / 0.55 GB, free: 14.14 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.876e-05/0.09857, allocations: 39.67 kB / 0.55 GB, free: 14.1 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.274e-05/0.09863, allocations: 33.7 kB / 0.5501 GB, free: 14.06 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001562/0.09879, allocations: 326.8 kB / 0.5504 GB, free: 13.73 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.726e-05/0.09887, allocations: 31.98 kB / 0.5504 GB, free: 13.7 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000107/0.09898, allocations: 68.27 kB / 0.5505 GB, free: 13.62 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001928/0.09917, allocations: 104.2 kB / 0.5506 GB, free: 13.5 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.09918, allocations: 4 kB / 0.5506 GB, free: 13.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002864/0.09946, allocations: 157.3 kB / 0.5507 GB, free: 13.34 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.699e-05/0.09948, allocations: 8 kB / 0.5507 GB, free: 13.33 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.09949, allocations: 0 / 0.5507 GB, free: 13.33 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.511e-05/0.09951, allocations: 7.938 kB / 0.5507 GB, free: 13.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001462/0.09966, allocations: 27.98 kB / 0.5508 GB, free: 13.29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.004e-06/0.09966, allocations: 8.125 kB / 0.5508 GB, free: 13.29 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.508e-05/0.09974, allocations: 11.89 kB / 0.5508 GB, free: 13.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.619e-05/0.09976, allocations: 8 kB / 0.5508 GB, free: 13.27 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.combiTimeTable.nextTimeEvent,$whenCondition1,combiTimeTable.nextTimeEventScaled,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001359/0.09989, allocations: 137.8 kB / 0.5509 GB, free: 13.12 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3e-05/0.09992, allocations: 15.91 kB / 0.5509 GB, free: 13.11 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003099/0.1002, allocations: 155.2 kB / 0.5511 GB, free: 12.95 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.1002, allocations: 0 / 0.5511 GB, free: 12.95 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.1002, allocations: 3.938 kB / 0.5511 GB, free: 12.94 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.324e-06/0.1002, allocations: 4 kB / 0.5511 GB, free: 12.94 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002276/0.1005, allocations: 200.6 kB / 0.5513 GB, free: 12.7 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.1005, allocations: 4 kB / 0.5513 GB, free: 12.7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001154/0.1006, allocations: 23.98 kB / 0.5513 GB, free: 12.67 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.1006, allocations: 0 / 0.5513 GB, free: 12.67 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.357e-05/0.1006, allocations: 7.938 kB / 0.5513 GB, free: 12.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.492e-06/0.1006, allocations: 0 / 0.5513 GB, free: 12.66 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.1006, allocations: 0 / 0.5513 GB, free: 12.66 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003878/0.101, allocations: 200.9 kB / 0.5515 GB, free: 12.45 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.244e-05/0.101, allocations: 16.31 kB / 0.5515 GB, free: 12.43 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.29e-05/0.1011, allocations: 11.92 kB / 0.5515 GB, free: 12.42 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.268e-05/0.1011, allocations: 7.938 kB / 0.5515 GB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.409e-05/0.1012, allocations: 8.047 kB / 0.5515 GB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.881e-05/0.1012, allocations: 11.94 kB / 0.5516 GB, free: 12.39 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000227/0.1014, allocations: 216.5 kB / 0.5518 GB, free: 12.19 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1014, allocations: 0 / 0.5518 GB, free: 12.19 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002688/0.1017, allocations: 39.89 kB / 0.5518 GB, free: 12.15 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (inertia.w,load.phi) * Number of discrete variables: 3 ($whenCondition1,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002288/0.104, allocations: 1.078 MB / 0.5529 GB, free: 11.23 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000249/0.1042, allocations: 88.03 kB / 0.5529 GB, free: 11.15 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.1042, allocations: 8 kB / 0.5529 GB, free: 11.14 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 9.658e-05/0.1043, allocations: 35.98 kB / 0.553 GB, free: 11.11 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003261/0.1047, allocations: 37.2 kB / 0.553 GB, free: 11.07 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002701/0.1074, allocations: 2.141 MB / 0.5551 GB, free: 8.816 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001344/0.1075, allocations: 132.1 kB / 0.5552 GB, free: 8.668 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.808e-05/0.1076, allocations: 13.42 kB / 0.5552 GB, free: 8.652 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001056/0.1077, allocations: 75.41 kB / 0.5553 GB, free: 8.582 MB / 382.1 MB Notification: Performance of SimCode: time 4.2e-07/0.1077, allocations: 0 / 0.5553 GB, free: 8.582 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03404/0.1417, allocations: 5.175 MB / 0.5604 GB, free: 3.457 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.03/11.17, allocations: 8 kB / 0.5604 GB, free: 3.449 MB / 382.1 MB " [Timeout remaining time 649] (rm -f HanserModelica_HanserModelica.Rotational.Drive.pipe ; mkfifo HanserModelica_HanserModelica.Rotational.Drive.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Rotational.Drive.pipe >> ../files/HanserModelica_HanserModelica.Rotational.Drive.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Rotational_Drive_fmu --startTime=0 --stopTime=10 --stepSize=0.001 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Rotational_Drive.fmu > HanserModelica_HanserModelica.Rotational.Drive.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.179477947764099] Failed to read output from testmodel.py, exit status != 0: 11.337250135838985 11.563600196 11.466766499 Calling exit ...