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.001384/0.001384, 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.47/1.47, allocations: 230.6 MB / 252.7 MB, free: 14.25 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.001527/0.001527, allocations: 209.5 kB / 309.2 MB, free: 3.094 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.04263/0.04263, allocations: 8.913 MB / 374.6 MB, free: 6.562 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.002475/0.002475, allocations: 83.88 kB / 0.4891 GB, free: 44.76 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08024/0.08271, allocations: 55.61 MB / 0.5434 GB, free: 5.047 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.Drive): time 0.003475/0.08619, allocations: 1.995 MB / 0.5454 GB, free: 3.035 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001936/0.08813, allocations: 1.074 MB / 0.5464 GB, free: 1.957 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001096/0.08823, allocations: 4 kB / 0.5464 GB, free: 1.953 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003656/0.0886, allocations: 119.5 kB / 0.5465 GB, free: 1.836 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004281/0.08903, allocations: 155.3 kB / 0.5467 GB, free: 1.684 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002553/0.08928, allocations: 103.6 kB / 0.5468 GB, free: 1.582 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002992/0.08958, allocations: 227.2 kB / 0.547 GB, free: 1.359 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001286/0.08971, allocations: 38 kB / 0.547 GB, free: 1.324 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001453/0.08986, allocations: 99.62 kB / 0.5471 GB, free: 1.227 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001907/0.09005, allocations: 119.5 kB / 0.5473 GB, free: 1.109 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.855e-05/0.09008, allocations: 16 kB / 0.5473 GB, free: 1.094 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001188/0.09019, allocations: 51.98 kB / 0.5473 GB, free: 1.043 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.09e-05/0.09028, allocations: 43.83 kB / 0.5474 GB, free: 1 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 8.404e-05/0.09036, allocations: 67.61 kB / 0.5474 GB, free: 0.9336 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003439/0.0907, allocations: 239 kB / 0.5477 GB, free: 0.6992 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.407e-06/0.09071, allocations: 0 / 0.5477 GB, free: 0.6992 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.09071, allocations: 0 / 0.5477 GB, free: 0.6992 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.621e-06/0.09071, allocations: 8 kB / 0.5477 GB, free: 0.6914 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.0007086/0.09142, allocations: 441.1 kB / 0.5481 GB, free: 236 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.761e-05/0.09146, allocations: 11.98 kB / 0.5481 GB, free: 224 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.565e-05/0.09152, allocations: 46.73 kB / 0.5481 GB, free: 168 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.321e-05/0.09157, allocations: 24.8 kB / 0.5482 GB, free: 144 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000359/0.09193, allocations: 195.1 kB / 0.5483 GB, free: 15.92 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.773e-05/0.09195, allocations: 8.609 kB / 0.5484 GB, free: 15.91 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.262e-05/0.09198, allocations: 15.94 kB / 0.5484 GB, free: 15.9 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000297/0.09228, allocations: 145.4 kB / 0.5485 GB, free: 15.75 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.759e-05/0.09229, allocations: 7.938 kB / 0.5485 GB, free: 15.74 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.528e-05/0.09231, allocations: 8 kB / 0.5485 GB, free: 15.73 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.852e-06/0.09232, allocations: 4 kB / 0.5485 GB, free: 15.73 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001752/0.09249, allocations: 72.59 kB / 0.5486 GB, free: 15.66 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008879/0.09338, allocations: 0.5416 MB / 0.5491 GB, free: 15.06 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002474/0.09363, allocations: 94.61 kB / 0.5492 GB, free: 14.96 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.901e-05/0.09371, allocations: 36.78 kB / 0.5492 GB, free: 14.92 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.388e-05/0.09373, allocations: 8 kB / 0.5493 GB, free: 14.91 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002003/0.09393, allocations: 79.38 kB / 0.5493 GB, free: 14.82 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.463e-06/0.09393, allocations: 3.938 kB / 0.5493 GB, free: 14.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0004074/0.09434, allocations: 161.4 kB / 0.5495 GB, free: 14.66 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.435e-05/0.09438, allocations: 55.34 kB / 0.5495 GB, free: 14.59 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003091/0.09469, allocations: 284.9 kB / 0.5498 GB, free: 14.3 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.087e-05/0.09471, allocations: 25.7 kB / 0.5498 GB, free: 14.27 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000118/0.09483, allocations: 148.2 kB / 0.55 GB, free: 14.12 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.9e-05/0.09487, allocations: 35.69 kB / 0.55 GB, free: 14.08 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.829e-05/0.09493, allocations: 37.72 kB / 0.5501 GB, free: 14.04 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001665/0.09509, allocations: 334.8 kB / 0.5504 GB, free: 13.7 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.452e-05/0.09518, allocations: 27.98 kB / 0.5504 GB, free: 13.68 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00011/0.09529, allocations: 68.27 kB / 0.5505 GB, free: 13.59 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001985/0.09549, allocations: 104.2 kB / 0.5506 GB, free: 13.48 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.09549, allocations: 0 / 0.5506 GB, free: 13.48 MB / 382.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002955/0.09578, allocations: 161.3 kB / 0.5507 GB, free: 13.31 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.531e-05/0.0958, allocations: 7.984 kB / 0.5507 GB, free: 13.3 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.391e-05/0.09581, allocations: 4 kB / 0.5507 GB, free: 13.3 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.397e-05/0.09583, allocations: 0 / 0.5507 GB, free: 13.3 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001527/0.09598, allocations: 35.92 kB / 0.5508 GB, free: 13.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.27e-06/0.09599, allocations: 0 / 0.5508 GB, free: 13.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.731e-05/0.09606, allocations: 4 kB / 0.5508 GB, free: 13.26 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.362e-05/0.09608, allocations: 8 kB / 0.5508 GB, free: 13.25 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.0001405/0.09622, allocations: 147.5 kB / 0.5509 GB, free: 13.1 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.221e-05/0.09625, allocations: 23.86 kB / 0.5509 GB, free: 13.08 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003376/0.09659, allocations: 143.3 kB / 0.5511 GB, free: 12.93 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.09659, allocations: 0 / 0.5511 GB, free: 12.93 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.73e-06/0.0966, allocations: 7.938 kB / 0.5511 GB, free: 12.92 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.0966, allocations: 3.984 kB / 0.5511 GB, free: 12.92 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002433/0.09684, allocations: 208.6 kB / 0.5513 GB, free: 12.67 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.09685, allocations: 3.984 kB / 0.5513 GB, free: 12.67 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001159/0.09696, allocations: 16 kB / 0.5513 GB, free: 12.65 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.09697, allocations: 0 / 0.5513 GB, free: 12.65 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.441e-05/0.09698, allocations: 4 kB / 0.5513 GB, free: 12.65 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.456e-06/0.09698, allocations: 7.984 kB / 0.5513 GB, free: 12.64 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.09698, allocations: 384 / 0.5513 GB, free: 12.64 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003952/0.09738, allocations: 208.8 kB / 0.5515 GB, free: 12.42 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.363e-05/0.09741, allocations: 15.89 kB / 0.5515 GB, free: 12.4 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.161e-05/0.09744, allocations: 8 kB / 0.5515 GB, free: 12.39 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.153e-05/0.09751, allocations: 7.875 kB / 0.5515 GB, free: 12.39 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.081e-05/0.09755, allocations: 7.984 kB / 0.5516 GB, free: 12.38 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.954e-05/0.09757, allocations: 7.984 kB / 0.5516 GB, free: 12.37 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002067/0.09777, allocations: 212.5 kB / 0.5518 GB, free: 12.17 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.09777, allocations: 0 / 0.5518 GB, free: 12.17 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002719/0.09805, allocations: 44 kB / 0.5518 GB, free: 12.12 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.002215/0.1003, allocations: 1.069 MB / 0.5528 GB, free: 11.21 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000266/0.1005, allocations: 83.89 kB / 0.5529 GB, free: 11.13 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.1005, allocations: 0 / 0.5529 GB, free: 11.13 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001011/0.1006, allocations: 43.92 kB / 0.553 GB, free: 11.09 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003243/0.101, allocations: 40.58 kB / 0.553 GB, free: 11.05 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002703/0.1037, allocations: 2.15 MB / 0.5551 GB, free: 8.793 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001321/0.1038, allocations: 132.1 kB / 0.5552 GB, free: 8.645 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.713e-05/0.1039, allocations: 17.42 kB / 0.5552 GB, free: 8.625 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001077/0.104, allocations: 63.41 kB / 0.5553 GB, free: 8.566 MB / 382.1 MB Notification: Performance of SimCode: time 3.91e-07/0.104, allocations: 0 / 0.5553 GB, free: 8.566 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03563/0.1396, allocations: 5.187 MB / 0.5604 GB, free: 3.426 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.22/11.36, allocations: 4 kB / 0.5604 GB, free: 3.422 MB / 382.1 MB " [Timeout remaining time 648] (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 & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.Rotational.Drive_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 HanserModelica_HanserModelica_Rotational_Drive.fmu > HanserModelica_HanserModelica.Rotational.Drive.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.50817654794082] Failed to read output from testmodel.py, exit status != 0: 11.526676042936742 11.748286085 11.654919912 Calling exit ...