Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BikeTrailer_BikeTrailer.Examples.TestTrailerDCPM.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.001191/0.001191, allocations: 104.3 kB / 19.7 MB, free: 440 kB / 13.93 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.001275/0.001275, allocations: 208.3 kB / 23 MB, free: 2.98 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 1.002/1.002, allocations: 230.6 MB / 256.8 MB, free: 9.586 MB / 202.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.006222/0.006222, allocations: 1.761 MB / 314.9 MB, free: 140 kB / 234.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.TestTrailerDCPM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=840000,variableFilter="",fileNamePrefix="BikeTrailer_BikeTrailer.Examples.TestTrailerDCPM") translateModel(BikeTrailer.Examples.TestTrailerDCPM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=840000,variableFilter="",fileNamePrefix="BikeTrailer_BikeTrailer.Examples.TestTrailerDCPM") [Timeout 660] "Notification: BikeTrailer 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.001381/0.001381, allocations: 78.52 kB / 437.3 MB, free: 46.46 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07165/0.07304, allocations: 53.8 MB / 491.1 MB, free: 10.52 MB / 346.7 MB Notification: Performance of NFInst.instantiate(BikeTrailer.Examples.TestTrailerDCPM): time 0.00698/0.08002, allocations: 8.012 MB / 499.1 MB, free: 2.469 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.00402/0.08404, allocations: 4.055 MB / 0.4914 GB, free: 14.4 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005642/0.0846, allocations: 59.56 kB / 0.4914 GB, free: 14.34 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001107/0.08571, allocations: 0.6399 MB / 0.4921 GB, free: 13.7 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001027/0.08673, allocations: 0.6011 MB / 0.4927 GB, free: 13.09 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009172/0.08765, allocations: 0.9278 MB / 0.4936 GB, free: 12.16 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.001391/0.08904, allocations: 2.479 MB / 0.496 GB, free: 9.676 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007118/0.08975, allocations: 0.6543 MB / 0.4966 GB, free: 8.969 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000659/0.09041, allocations: 0.9224 MB / 0.4975 GB, free: 8.043 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005781/0.09099, allocations: 0.8002 MB / 0.4983 GB, free: 7.238 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001896/0.09118, allocations: 256 kB / 0.4985 GB, free: 6.988 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002737/0.09145, allocations: 308 kB / 0.4988 GB, free: 6.688 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002859/0.09174, allocations: 0.5801 MB / 0.4994 GB, free: 6.105 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007292/0.09247, allocations: 0.886 MB / 0.5003 GB, free: 5.215 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001793/0.09426, allocations: 2.958 MB / 0.5032 GB, free: 2.242 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.945e-06/0.09426, allocations: 4 kB / 0.5032 GB, free: 2.238 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.09427, allocations: 0 / 0.5032 GB, free: 2.238 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.728e-05/0.09428, allocations: 0 / 0.5032 GB, free: 2.238 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 398 * Number of variables: 398 Notification: Performance of Generate backend data structure: time 0.002398/0.09668, allocations: 2.521 MB / 0.5056 GB, free: 15.67 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.59e-05/0.09672, allocations: 8.031 kB / 0.5056 GB, free: 15.66 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000293/0.09701, allocations: 263.3 kB / 0.5059 GB, free: 15.41 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001596/0.09861, allocations: 1.335 MB / 0.5072 GB, free: 14.03 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.118e-05/0.09868, allocations: 119.5 kB / 0.5073 GB, free: 13.91 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001831/0.09886, allocations: 180.1 kB / 0.5075 GB, free: 13.74 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001807/0.1007, allocations: 1.901 MB / 0.5093 GB, free: 11.7 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.401e-05/0.1007, allocations: 3.953 kB / 0.5093 GB, free: 11.69 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.359e-05/0.1008, allocations: 64 kB / 0.5094 GB, free: 11.63 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.098e-05/0.1008, allocations: 40 kB / 0.5094 GB, free: 11.59 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001478/0.1023, allocations: 1.198 MB / 0.5106 GB, free: 10.39 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005089/0.1074, allocations: 5.702 MB / 0.5162 GB, free: 4.504 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001123/0.1085, allocations: 0.8662 MB / 0.517 GB, free: 3.629 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004795/0.109, allocations: 415.7 kB / 0.5174 GB, free: 3.223 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.939e-05/0.109, allocations: 16.98 kB / 0.5174 GB, free: 3.207 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006649/0.1097, allocations: 0.7029 MB / 0.5181 GB, free: 2.441 MB / 378.7 MB Notification: Performance of pre-optimization done (n=95): time 1.944e-06/0.1097, allocations: 0 / 0.5181 GB, free: 2.441 MB / 378.7 MB Notification: Performance of matching and sorting (n=104): time 0.004887/0.1146, allocations: 3.689 MB / 0.5217 GB, free: 14.71 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.247e-05/0.1147, allocations: 214.6 kB / 0.5219 GB, free: 14.46 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001434/0.1161, allocations: 1.725 MB / 0.5236 GB, free: 12.72 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.98e-05/0.1161, allocations: 53.64 kB / 0.5237 GB, free: 12.66 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004617/0.1166, allocations: 0.9445 MB / 0.5246 GB, free: 11.7 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001828/0.1168, allocations: 388.6 kB / 0.525 GB, free: 11.32 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002007/0.117, allocations: 222.9 kB / 0.5252 GB, free: 11.1 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.497e-05/0.1171, allocations: 353.9 kB / 0.5255 GB, free: 10.75 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005339/0.1176, allocations: 429.8 kB / 0.5259 GB, free: 10.32 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007097/0.1183, allocations: 0.8954 MB / 0.5268 GB, free: 9.262 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001421/0.1197, allocations: 1.147 MB / 0.5279 GB, free: 8 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.057e-06/0.1197, allocations: 4 kB / 0.5279 GB, free: 7.996 MB / 394.7 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.001459/0.1212, allocations: 1.367 MB / 0.5292 GB, free: 6.621 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.576e-05/0.1212, allocations: 8.656 kB / 0.5293 GB, free: 6.613 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.024e-05/0.1212, allocations: 15.98 kB / 0.5293 GB, free: 6.598 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.742e-05/0.1212, allocations: 16 kB / 0.5293 GB, free: 6.582 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006051/0.1218, allocations: 295.5 kB / 0.5296 GB, free: 6.293 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.523e-05/0.1219, allocations: 19.94 kB / 0.5296 GB, free: 6.273 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003561/0.1222, allocations: 59.95 kB / 0.5296 GB, free: 6.215 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.143e-05/0.1223, allocations: 59.98 kB / 0.5297 GB, free: 6.156 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007622/0.123, allocations: 0.7252 MB / 0.5304 GB, free: 5.426 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005856/0.1236, allocations: 0.8213 MB / 0.5312 GB, free: 4.438 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000954/0.1246, allocations: 1.042 MB / 0.5322 GB, free: 3.281 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.936e-06/0.1246, allocations: 0 / 0.5322 GB, free: 3.281 MB / 394.7 MB Notification: Performance of matching and sorting (n=154) (initialization_lambda0): time 0.001209/0.1258, allocations: 1.262 MB / 0.5335 GB, free: 2.012 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.808e-06/0.1258, allocations: 8 kB / 0.5335 GB, free: 2.004 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.1258, allocations: 16.12 kB / 0.5335 GB, free: 1.988 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.285e-06/0.1258, allocations: 12 kB / 0.5335 GB, free: 1.977 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005249/0.1263, allocations: 275.6 kB / 0.5338 GB, free: 1.707 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.072e-05/0.1263, allocations: 15.94 kB / 0.5338 GB, free: 1.691 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003329/0.1267, allocations: 59.97 kB / 0.5338 GB, free: 1.633 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.543e-05/0.1267, allocations: 44 kB / 0.5339 GB, free: 1.59 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.track.nextTimeEvent,$whenCondition1,track.nextTimeEventScaled,$PRE.track.nextTimeEventScaled,track.nextTimeEvent,dcpmDrive.limitedPI.integrator.local_reset,dcpmDrive.battery.soc.local_reset,dcpmDrive.dcdcConverter.EBat.local_reset,dcpmDrive.dcdcConverter.integralController.local_reset,PID.I.local_reset,trailer.energyDrive.local_reset,trailer.energyBike.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (154): * Single equations (assignments): 154 * 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.0004004/0.1271, allocations: 261.6 kB / 0.5341 GB, free: 1.328 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001194/0.1272, allocations: 174.9 kB / 0.5343 GB, free: 1.156 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001269/0.1285, allocations: 1.125 MB / 0.5354 GB, free: 16 kB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.069e-06/0.1285, allocations: 8 kB / 0.5354 GB, free: 8 kB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.1285, allocations: 4.125 kB / 0.5354 GB, free: 4 kB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.894e-05/0.1285, allocations: 11.98 kB / 0.5354 GB, free: 15.99 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002599/0.1311, allocations: 2.488 MB / 0.5378 GB, free: 13.46 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.946e-06/0.1311, allocations: 0 / 0.5378 GB, free: 13.46 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005472/0.1317, allocations: 223.6 kB / 0.5381 GB, free: 13.24 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.46e-06/0.1317, allocations: 4 kB / 0.5381 GB, free: 13.24 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.055e-05/0.1317, allocations: 32.08 kB / 0.5381 GB, free: 13.21 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.877e-06/0.1317, allocations: 4 kB / 0.5381 GB, free: 13.2 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.1317, allocations: 0 / 0.5381 GB, free: 13.2 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001805/0.1335, allocations: 1.731 MB / 0.5398 GB, free: 11.45 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003257/0.1339, allocations: 274.7 kB / 0.54 GB, free: 11.18 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001048/0.134, allocations: 28 kB / 0.5401 GB, free: 11.15 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003262/0.1343, allocations: 59.89 kB / 0.5401 GB, free: 11.09 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.915e-05/0.1344, allocations: 68.86 kB / 0.5402 GB, free: 11.02 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.081e-05/0.1344, allocations: 32 kB / 0.5402 GB, free: 10.99 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001199/0.1356, allocations: 1.177 MB / 0.5414 GB, free: 9.82 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.8e-07/0.1356, allocations: 0 / 0.5414 GB, free: 9.82 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0008379/0.1365, allocations: 0.5079 MB / 0.5419 GB, free: 9.312 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 15 (trailer.energyBike.y,trailer.vehicle.windSpeed.s,trailer.vehicle.windSpeed.v,trailer.energyDrive.y,PID.I.y,PID.D.x,bike.s,bike.v,dcpmDrive.dcpm.armatureInductance.i,dcpmDrive.dcdcConverter.deadTime.y,dcpmDrive.dcdcConverter.integralController.y,dcpmDrive.dcdcConverter.currentSampler.y,dcpmDrive.dcdcConverter.EBat.y,dcpmDrive.battery.soc.y,dcpmDrive.limitedPI.integrator.y) * 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 (108): * Single equations (assignments): 106 * 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.0009775/0.1374, allocations: 478.8 kB / 0.5423 GB, free: 9.02 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001694/0.1391, allocations: 1.501 MB / 0.5438 GB, free: 7.52 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.1391, allocations: 4.312 kB / 0.5438 GB, free: 7.516 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005265/0.1397, allocations: 489.4 kB / 0.5443 GB, free: 7.043 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008042/0.1405, allocations: 322.5 kB / 0.5446 GB, free: 6.742 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004138/0.1446, allocations: 3.859 MB / 0.5483 GB, free: 2.824 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005674/0.1452, allocations: 0.8334 MB / 0.5492 GB, free: 1.957 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002329/0.1454, allocations: 107.4 kB / 0.5493 GB, free: 1.852 MB / 410.7 MB Notification: Performance of SimCode: time 5.51e-07/0.1454, allocations: 0 / 0.5493 GB, free: 1.852 MB / 410.7 MB Notification: Performance of Templates: time 0.1932/0.3386, allocations: 22.84 MB / 0.5716 GB, free: 57.76 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f BikeTrailer_BikeTrailer.Examples.TestTrailerDCPM.makefile [Timeout 660] (rm -f BikeTrailer_BikeTrailer.Examples.TestTrailerDCPM.pipe ; mkfifo BikeTrailer_BikeTrailer.Examples.TestTrailerDCPM.pipe ; head -c 1048576 < BikeTrailer_BikeTrailer.Examples.TestTrailerDCPM.pipe >> ../files/BikeTrailer_BikeTrailer.Examples.TestTrailerDCPM.sim & ./BikeTrailer_BikeTrailer.Examples.TestTrailerDCPM > BikeTrailer_BikeTrailer.Examples.TestTrailerDCPM.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 7.29657680913806]