Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BikeTrailer_BikeTrailer.Examples.TestTrailerControlled.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.0009437/0.0009437, allocations: 77.09 kB / 20.66 MB, free: 3.844 MB / 18.57 MB " [Timeout remaining time 180] 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.0009805/0.0009805, allocations: 169 kB / 24.06 MB, free: 452 kB / 18.57 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.9446/0.9446, allocations: 177.1 MB / 204.5 MB, free: 5.512 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BikeTrailer 1.3.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BikeTrailer 1.3.0/package.mo): time 0.01361/0.01361, allocations: 1.315 MB / 262.3 MB, free: 11.6 MB / 250.7 MB " [Timeout remaining time 180] Using package BikeTrailer with version 1.3.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BikeTrailer 1.3.0/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 Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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: translateModel(BikeTrailer.Examples.TestTrailerControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=840000,variableFilter="",fileNamePrefix="BikeTrailer_BikeTrailer.Examples.TestTrailerControlled") translateModel(BikeTrailer.Examples.TestTrailerControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=840000,variableFilter="",fileNamePrefix="BikeTrailer_BikeTrailer.Examples.TestTrailerControlled") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.272e-06/1.272e-06, allocations: 0 / 331.7 MB, free: 18.67 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.039e-05/2.166e-05, allocations: 2.312 kB / 331.7 MB, free: 18.66 MB / 266.7 MB Notification: Performance of NFInst.instantiate(BikeTrailer.Examples.TestTrailerControlled): time 0.004407/0.004429, allocations: 5.017 MB / 336.7 MB, free: 13.62 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003345/0.007774, allocations: 2.38 MB / 339.1 MB, free: 11.23 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007228/0.008496, allocations: 35.75 kB / 339.1 MB, free: 11.19 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007864/0.009283, allocations: 281.6 kB / 339.4 MB, free: 10.91 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008057/0.01009, allocations: 389.2 kB / 339.8 MB, free: 10.53 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009506/0.01104, allocations: 0.6081 MB / 340.4 MB, free: 9.922 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001131/0.01217, allocations: 1.356 MB / 341.7 MB, free: 8.559 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004326/0.0126, allocations: 311.9 kB / 342 MB, free: 8.23 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008576/0.01346, allocations: 0.7171 MB / 342.7 MB, free: 7.512 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004473/0.01391, allocations: 414.7 kB / 343.2 MB, free: 7.105 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001448/0.01405, allocations: 124 kB / 343.3 MB, free: 6.984 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002377/0.01429, allocations: 183.9 kB / 343.5 MB, free: 6.805 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001733/0.01446, allocations: 382.7 kB / 343.8 MB, free: 6.43 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002349/0.0147, allocations: 406.8 kB / 344.2 MB, free: 6.031 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008783/0.01558, allocations: 1.039 MB / 345.3 MB, free: 4.988 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.01558, allocations: 0 / 345.3 MB, free: 4.988 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.02e-07/0.01558, allocations: 0 / 345.3 MB, free: 4.988 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.303e-05/0.0156, allocations: 0 / 345.3 MB, free: 4.988 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 198 * Number of variables: 198 Notification: Performance of Generate backend data structure: time 0.001573/0.01718, allocations: 1.769 MB / 347 MB, free: 3.18 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.01721, allocations: 12.03 kB / 347 MB, free: 3.168 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000291/0.0175, allocations: 223.9 kB / 347.3 MB, free: 2.949 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007154/0.01822, allocations: 0.8337 MB / 348.1 MB, free: 2.074 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.004e-05/0.01826, allocations: 62.38 kB / 348.2 MB, free: 2.012 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.942e-05/0.01835, allocations: 92.27 kB / 348.2 MB, free: 1.922 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005735/0.01892, allocations: 0.7408 MB / 349 MB, free: 1.102 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.453e-05/0.01895, allocations: 3.938 kB / 349 MB, free: 1.098 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.968e-05/0.01899, allocations: 32 kB / 349 MB, free: 1.066 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.045e-05/0.019, allocations: 24 kB / 349 MB, free: 1.043 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002956/0.01929, allocations: 261.6 kB / 349.3 MB, free: 0.7852 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002662/0.02195, allocations: 2.968 MB / 352.3 MB, free: 13.73 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004885/0.02244, allocations: 322.3 kB / 352.6 MB, free: 13.4 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001266/0.02257, allocations: 105.1 kB / 352.7 MB, free: 13.29 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.402e-05/0.0226, allocations: 12.5 kB / 352.7 MB, free: 13.28 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002438/0.02285, allocations: 199.8 kB / 352.9 MB, free: 13.07 MB / 282.7 MB Notification: Performance of pre-optimization done (n=61): time 2.465e-06/0.02285, allocations: 4 kB / 352.9 MB, free: 13.07 MB / 282.7 MB Notification: Performance of matching and sorting (n=68): time 0.003026/0.02588, allocations: 1.772 MB / 354.7 MB, free: 11.23 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.196e-05/0.02594, allocations: 162.9 kB / 354.8 MB, free: 11.04 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007566/0.02669, allocations: 1.063 MB / 355.9 MB, free: 9.961 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.016e-05/0.02673, allocations: 37.7 kB / 355.9 MB, free: 9.918 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005103/0.02724, allocations: 0.6841 MB / 356.6 MB, free: 9.227 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001397/0.02738, allocations: 249.8 kB / 356.9 MB, free: 8.98 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001456/0.02753, allocations: 148.2 kB / 357 MB, free: 8.824 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001181/0.02765, allocations: 0.512 MB / 357.5 MB, free: 8.305 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001264/0.02777, allocations: 91.61 kB / 357.6 MB, free: 8.211 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002656/0.02804, allocations: 434.1 kB / 358 MB, free: 7.66 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004058/0.02845, allocations: 426.8 kB / 358.4 MB, free: 7.168 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.02845, allocations: 0 / 358.4 MB, free: 7.168 MB / 282.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0006218/0.02907, allocations: 0.5592 MB / 359 MB, free: 6.602 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.612e-05/0.02909, allocations: 4 kB / 359 MB, free: 6.598 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.328e-06/0.0291, allocations: 12.03 kB / 359 MB, free: 6.586 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.604e-05/0.02911, allocations: 8 kB / 359 MB, free: 6.578 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004144/0.02953, allocations: 187.7 kB / 359.2 MB, free: 6.395 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.334e-06/0.02953, allocations: 4 kB / 359.2 MB, free: 6.391 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002418/0.02977, allocations: 35.98 kB / 359.2 MB, free: 6.355 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.043e-05/0.02981, allocations: 27.92 kB / 359.3 MB, free: 6.328 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005095/0.03031, allocations: 220.8 kB / 359.5 MB, free: 6.109 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002483/0.03056, allocations: 434.1 kB / 359.9 MB, free: 5.566 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003462/0.03091, allocations: 426.8 kB / 360.3 MB, free: 5.066 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.958e-06/0.03091, allocations: 3.938 kB / 360.3 MB, free: 5.062 MB / 282.7 MB Notification: Performance of matching and sorting (n=94) (initialization_lambda0): time 0.0005696/0.03148, allocations: 0.5509 MB / 360.9 MB, free: 4.504 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.139e-05/0.03149, allocations: 4 kB / 360.9 MB, free: 4.5 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.521e-06/0.0315, allocations: 4 kB / 360.9 MB, free: 4.496 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.254e-06/0.03151, allocations: 8 kB / 360.9 MB, free: 4.488 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003617/0.03187, allocations: 179.7 kB / 361.1 MB, free: 4.312 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.845e-06/0.03188, allocations: 8 kB / 361.1 MB, free: 4.305 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002226/0.0321, allocations: 36.42 kB / 361.1 MB, free: 4.27 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.761e-05/0.03213, allocations: 20 kB / 361.1 MB, free: 4.25 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.track.nextTimeEvent,$whenCondition1,track.nextTimeEventScaled,$PRE.track.nextTimeEventScaled,track.nextTimeEvent,trailer.energyBike.local_reset,trailer.energyDrive.local_reset,PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (94): * Single equations (assignments): 94 * 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.0001612/0.03229, allocations: 319.8 kB / 361.5 MB, free: 3.93 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001278/0.03242, allocations: 143.2 kB / 361.6 MB, free: 3.789 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008377/0.03325, allocations: 0.5826 MB / 362.2 MB, free: 3.195 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.123e-06/0.03326, allocations: 11.94 kB / 362.2 MB, free: 3.184 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.475e-06/0.03326, allocations: 4.031 kB / 362.2 MB, free: 3.18 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.945e-06/0.03327, allocations: 7.969 kB / 362.2 MB, free: 3.172 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0016/0.03487, allocations: 1.362 MB / 363.6 MB, free: 1.754 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.59e-06/0.03488, allocations: 0 / 363.6 MB, free: 1.754 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002769/0.03515, allocations: 103.9 kB / 363.7 MB, free: 1.652 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003828/0.03554, allocations: 131.6 kB / 363.8 MB, free: 1.52 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.289e-05/0.03558, allocations: 19.98 kB / 363.8 MB, free: 1.5 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001748/0.03733, allocations: 2.525 MB / 366.3 MB, free: 14.87 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/0.03733, allocations: 4 kB / 366.3 MB, free: 14.87 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001224/0.03856, allocations: 0.8758 MB / 367.2 MB, free: 13.96 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000253/0.03881, allocations: 179.1 kB / 367.4 MB, free: 13.78 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001219/0.03893, allocations: 20 kB / 367.4 MB, free: 13.76 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002162/0.03915, allocations: 23.98 kB / 367.4 MB, free: 13.74 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.793e-05/0.03924, allocations: 64.42 kB / 367.5 MB, free: 13.68 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.238e-05/0.03928, allocations: 20 kB / 367.5 MB, free: 13.66 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004992/0.03978, allocations: 0.6222 MB / 368.1 MB, free: 13.03 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.03978, allocations: 0 / 368.1 MB, free: 13.03 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0008609/0.04064, allocations: 323.9 kB / 368.5 MB, free: 12.71 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 10 (trailer.energyBike.y,trailer.vehicle.windSpeed.s,trailer.vehicle.windSpeed.v,trailer.energyDrive.y,PID.I.y,PID.D.x,bike.s,bike.v,genericDrive.drive.x_scaled[1],genericDrive.drive.x_scaled[2]) * Number of discrete variables: 3 ($whenCondition1,track.nextTimeEvent,track.nextTimeEventScaled) * Number of discrete states: 2 (track.nextTimeEvent,track.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (59): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,13)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00108/0.04172, allocations: 408.7 kB / 368.9 MB, free: 12.45 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007532/0.04247, allocations: 0.5567 MB / 369.4 MB, free: 11.89 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.479e-06/0.04247, allocations: 4 kB / 369.4 MB, free: 11.88 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004391/0.04291, allocations: 418.1 kB / 369.8 MB, free: 11.45 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006523/0.04357, allocations: 237.3 kB / 370.1 MB, free: 11.23 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002946/0.04651, allocations: 2.175 MB / 372.2 MB, free: 8.996 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004485/0.04696, allocations: 0.536 MB / 372.8 MB, free: 8.426 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004474/0.04741, allocations: 274.1 kB / 373 MB, free: 8.156 MB / 298.7 MB Notification: Performance of SimCode: time 1.483e-06/0.04741, allocations: 3.938 kB / 373 MB, free: 8.152 MB / 298.7 MB Notification: Performance of Templates: time 0.02013/0.06754, allocations: 17.54 MB / 390.6 MB, free: 6.625 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f BikeTrailer_BikeTrailer.Examples.TestTrailerControlled.makefile [Timeout 660] (rm -f BikeTrailer_BikeTrailer.Examples.TestTrailerControlled.pipe ; mkfifo BikeTrailer_BikeTrailer.Examples.TestTrailerControlled.pipe ; head -c 1048576 < BikeTrailer_BikeTrailer.Examples.TestTrailerControlled.pipe >> ../files/BikeTrailer_BikeTrailer.Examples.TestTrailerControlled.sim & ./BikeTrailer_BikeTrailer.Examples.TestTrailerControlled > BikeTrailer_BikeTrailer.Examples.TestTrailerControlled.pipe 2>&1) [Timeout 240] [Calling os._exit(0), Time elapsed: 4.544381576124579]