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.001387/0.001387, allocations: 107.4 kB / 16.45 MB, free: 6.508 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.488/1.488, allocations: 230.6 MB / 249.8 MB, free: 9.207 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.001602/0.001602, allocations: 217.2 kB / 306 MB, free: 4.293 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.04247/0.04247, allocations: 8.917 MB / 371 MB, free: 3.426 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.002424/0.002424, allocations: 83.88 kB / 495.7 MB, free: 9.852 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2982/0.3006, allocations: 55.55 MB / 0.5383 GB, free: 26.66 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.Drive): time 0.00303/0.3036, allocations: 2.073 MB / 0.5404 GB, free: 25.22 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001573/0.3052, allocations: 1.137 MB / 0.5415 GB, free: 24.45 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001171/0.3053, allocations: 7.25 kB / 0.5415 GB, free: 24.44 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003478/0.3057, allocations: 120.9 kB / 0.5416 GB, free: 24.41 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003415/0.306, allocations: 153.5 kB / 0.5418 GB, free: 24.34 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002057/0.3062, allocations: 102 kB / 0.5418 GB, free: 24.28 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002329/0.3065, allocations: 227.9 kB / 0.5421 GB, free: 24.18 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000128/0.3066, allocations: 34.12 kB / 0.5421 GB, free: 24.16 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001238/0.3067, allocations: 101 kB / 0.5422 GB, free: 24.12 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001474/0.3069, allocations: 124.6 kB / 0.5423 GB, free: 24.08 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.414e-05/0.3069, allocations: 9.531 kB / 0.5423 GB, free: 24.08 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001025/0.307, allocations: 54.72 kB / 0.5424 GB, free: 24.06 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.56e-05/0.307, allocations: 46.72 kB / 0.5424 GB, free: 24.04 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.439e-05/0.3071, allocations: 88.67 kB / 0.5425 GB, free: 23.98 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002623/0.3074, allocations: 234.1 kB / 0.5427 GB, free: 23.88 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.3074, allocations: 3.344 kB / 0.5427 GB, free: 23.88 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.3074, allocations: 4 kB / 0.5427 GB, free: 23.88 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.932e-06/0.3074, allocations: 0 / 0.5427 GB, free: 23.88 MB / 382.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.0005861/0.308, allocations: 0.5164 MB / 0.5432 GB, free: 23.4 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.295e-05/0.308, allocations: 12.39 kB / 0.5433 GB, free: 23.4 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.121e-05/0.308, allocations: 37.72 kB / 0.5433 GB, free: 23.36 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.517e-05/0.3081, allocations: 29.14 kB / 0.5433 GB, free: 23.34 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000265/0.3084, allocations: 255 kB / 0.5436 GB, free: 23.1 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.103e-05/0.3084, allocations: 11.83 kB / 0.5436 GB, free: 23.09 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.068e-05/0.3084, allocations: 17.25 kB / 0.5436 GB, free: 23.08 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002613/0.3087, allocations: 138.8 kB / 0.5437 GB, free: 23 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.597e-05/0.3087, allocations: 7.203 kB / 0.5437 GB, free: 23 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.421e-05/0.3087, allocations: 4 kB / 0.5437 GB, free: 23 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.3087, allocations: 3.031 kB / 0.5437 GB, free: 23 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001449/0.3088, allocations: 81.64 kB / 0.5438 GB, free: 22.96 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006257/0.3095, allocations: 0.6167 MB / 0.5444 GB, free: 22.45 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000213/0.3097, allocations: 92.28 kB / 0.5445 GB, free: 22.39 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.959e-05/0.3097, allocations: 35.5 kB / 0.5445 GB, free: 22.38 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.527e-05/0.3098, allocations: 4 kB / 0.5445 GB, free: 22.38 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001553/0.3099, allocations: 80.36 kB / 0.5446 GB, free: 22.32 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.452e-06/0.3099, allocations: 3.938 kB / 0.5446 GB, free: 22.31 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003515/0.3103, allocations: 151 kB / 0.5448 GB, free: 22.24 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.597e-05/0.3103, allocations: 55.34 kB / 0.5448 GB, free: 22.17 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002122/0.3105, allocations: 278.7 kB / 0.5451 GB, free: 22.02 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.386e-05/0.3105, allocations: 32.28 kB / 0.5451 GB, free: 21.99 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.312e-05/0.3106, allocations: 148.5 kB / 0.5453 GB, free: 21.86 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.479e-05/0.3106, allocations: 45.67 kB / 0.5453 GB, free: 21.82 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.439e-05/0.3107, allocations: 30.58 kB / 0.5453 GB, free: 21.8 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.297e-05/0.3107, allocations: 336.7 kB / 0.5456 GB, free: 21.47 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.478e-05/0.3108, allocations: 30.59 kB / 0.5457 GB, free: 21.46 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.88e-05/0.3109, allocations: 65.27 kB / 0.5457 GB, free: 21.41 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001449/0.311, allocations: 105.8 kB / 0.5458 GB, free: 21.33 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.311, allocations: 7.25 kB / 0.5458 GB, free: 21.33 MB / 382.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002202/0.3112, allocations: 147.6 kB / 0.546 GB, free: 21.25 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.327e-05/0.3113, allocations: 6.438 kB / 0.546 GB, free: 21.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.509e-06/0.3113, allocations: 0 / 0.546 GB, free: 21.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.363e-05/0.3113, allocations: 3.062 kB / 0.546 GB, free: 21.25 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001319/0.3114, allocations: 29.17 kB / 0.546 GB, free: 21.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.551e-06/0.3114, allocations: 3.281 kB / 0.546 GB, free: 21.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.04e-05/0.3115, allocations: 18.86 kB / 0.546 GB, free: 21.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.088e-05/0.3115, allocations: 9.297 kB / 0.5461 GB, free: 21.23 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 8.447e-05/0.3116, allocations: 141.3 kB / 0.5462 GB, free: 21.1 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.518e-05/0.3116, allocations: 25.33 kB / 0.5462 GB, free: 21.09 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.25e-05/0.3116, allocations: 23.36 kB / 0.5462 GB, free: 21.07 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.3116, allocations: 3.25 kB / 0.5462 GB, free: 21.07 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.3117, allocations: 0 / 0.5462 GB, free: 21.07 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.367e-06/0.3117, allocations: 0 / 0.5462 GB, free: 21.07 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001431/0.3118, allocations: 241.9 kB / 0.5465 GB, free: 20.85 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.3118, allocations: 0 / 0.5465 GB, free: 20.85 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001013/0.3119, allocations: 22.62 kB / 0.5465 GB, free: 20.84 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.3119, allocations: 0 / 0.5465 GB, free: 20.84 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.123e-05/0.3119, allocations: 0 / 0.5465 GB, free: 20.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.3119, allocations: 3.062 kB / 0.5465 GB, free: 20.84 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.3119, allocations: 4 kB / 0.5465 GB, free: 20.84 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002951/0.3122, allocations: 197.9 kB / 0.5467 GB, free: 20.72 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.179e-05/0.3122, allocations: 88.36 kB / 0.5468 GB, free: 20.62 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.565e-05/0.3123, allocations: 3.938 kB / 0.5468 GB, free: 20.61 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.941e-05/0.3123, allocations: 7.219 kB / 0.5468 GB, free: 20.61 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.498e-05/0.3124, allocations: 6.547 kB / 0.5468 GB, free: 20.61 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.392e-05/0.3124, allocations: 3.125 kB / 0.5468 GB, free: 20.61 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001281/0.3125, allocations: 216.4 kB / 0.547 GB, free: 20.49 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3125, allocations: 0 / 0.547 GB, free: 20.49 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002369/0.3128, allocations: 43.39 kB / 0.547 GB, free: 20.48 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.nextTimeEventScaled,combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * 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.001772/0.3145, allocations: 1.036 MB / 0.548 GB, free: 19.72 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002349/0.3148, allocations: 87.77 kB / 0.5481 GB, free: 19.69 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.3148, allocations: 0 / 0.5481 GB, free: 19.69 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 8.265e-05/0.3148, allocations: 37.67 kB / 0.5482 GB, free: 19.68 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003377/0.3152, allocations: 40.52 kB / 0.5482 GB, free: 19.66 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002357/0.3175, allocations: 2.128 MB / 0.5503 GB, free: 18.09 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000195/0.3177, allocations: 0.7423 MB / 0.551 GB, free: 17.39 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.553e-05/0.3178, allocations: 14.12 kB / 0.551 GB, free: 17.39 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.388e-05/0.3179, allocations: 67.38 kB / 0.5511 GB, free: 17.34 MB / 382.1 MB Notification: Performance of SimCode: time 3.7e-07/0.3179, allocations: 0 / 0.5511 GB, free: 17.34 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02806/0.3459, allocations: 4.468 MB / 0.5555 GB, free: 16.46 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.086/8.432, allocations: 0.8438 kB / 0.5555 GB, free: 16.46 MB / 382.1 MB " [Timeout remaining time 651] (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: 11.356091327994363] Failed to read output from testmodel.py, exit status != 0: 8.553902194995317 8.567050879 8.25689234 Calling exit ...