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.0008607/0.0008607, allocations: 77.88 kB / 20.66 MB, free: 3.852 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.0008943/0.0008943, allocations: 165 kB / 24.06 MB, free: 464 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.9969/0.9969, allocations: 177.1 MB / 204.5 MB, free: 5.52 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.006086/0.006086, allocations: 1.315 MB / 262.4 MB, free: 11.59 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.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: Performance of FrontEnd - loaded program: time 2.064e-06/2.064e-06, allocations: 0 / 331.7 MB, free: 18.66 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.472e-05/2.678e-05, allocations: 6.25 kB / 331.7 MB, free: 18.65 MB / 266.7 MB Notification: Performance of NFInst.instantiate(BikeTrailer.Examples.TestTrailerDCPM): time 0.01028/0.01031, allocations: 8.54 MB / 340.2 MB, free: 10.07 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.008503/0.01881, allocations: 4.187 MB / 344.4 MB, free: 5.863 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002518/0.02133, allocations: 63.56 kB / 344.5 MB, free: 5.801 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002577/0.02391, allocations: 0.6396 MB / 345.1 MB, free: 5.156 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002712/0.02662, allocations: 0.628 MB / 345.7 MB, free: 4.523 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002228/0.02885, allocations: 0.9321 MB / 346.7 MB, free: 3.59 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003442/0.03229, allocations: 2.541 MB / 349.2 MB, free: 1.039 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001306/0.0336, allocations: 0.6543 MB / 349.9 MB, free: 340 kB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002605/0.0362, allocations: 1.38 MB / 351.3 MB, free: 14.95 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001317/0.03752, allocations: 0.6814 MB / 351.9 MB, free: 14.27 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005066/0.03803, allocations: 256 kB / 352.2 MB, free: 14.02 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006099/0.03864, allocations: 303.9 kB / 352.5 MB, free: 13.72 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005531/0.03919, allocations: 0.5878 MB / 353.1 MB, free: 13.13 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001022/0.04021, allocations: 0.7246 MB / 353.8 MB, free: 12.4 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002853/0.04306, allocations: 1.74 MB / 355.5 MB, free: 10.66 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.04307, allocations: 0 / 355.5 MB, free: 10.66 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.353e-06/0.04307, allocations: 0 / 355.5 MB, free: 10.66 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.36e-05/0.04313, allocations: 0 / 355.5 MB, free: 10.66 MB / 282.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.004045/0.04717, allocations: 2.635 MB / 358.2 MB, free: 7.965 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.921e-05/0.04721, allocations: 12.03 kB / 358.2 MB, free: 7.953 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000471/0.04768, allocations: 395.2 kB / 358.6 MB, free: 7.566 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001576/0.04926, allocations: 1.272 MB / 359.8 MB, free: 6.258 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.816e-05/0.04932, allocations: 123.5 kB / 360 MB, free: 6.137 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001936/0.04952, allocations: 172.5 kB / 360.1 MB, free: 5.969 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00131/0.05083, allocations: 1.421 MB / 361.5 MB, free: 4.379 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.793e-05/0.05087, allocations: 15.92 kB / 361.6 MB, free: 4.363 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.617e-05/0.05094, allocations: 64 kB / 361.6 MB, free: 4.301 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.236e-05/0.05096, allocations: 43.94 kB / 361.7 MB, free: 4.258 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005839/0.05155, allocations: 476.5 kB / 362.1 MB, free: 3.785 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005491/0.05704, allocations: 5.897 MB / 368 MB, free: 13.69 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007401/0.05778, allocations: 0.5485 MB / 368.6 MB, free: 13.12 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000234/0.05801, allocations: 181.1 kB / 368.8 MB, free: 12.95 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.334e-05/0.05806, allocations: 24.98 kB / 368.8 MB, free: 12.92 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004192/0.05848, allocations: 497.9 kB / 369.3 MB, free: 12.37 MB / 298.7 MB Notification: Performance of pre-optimization done (n=94): time 2.454e-06/0.05848, allocations: 0 / 369.3 MB, free: 12.37 MB / 298.7 MB Notification: Performance of matching and sorting (n=103): time 0.002936/0.06141, allocations: 2.056 MB / 371.3 MB, free: 10.27 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.304e-05/0.06149, allocations: 218.6 kB / 371.5 MB, free: 10.01 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001052/0.06254, allocations: 1.39 MB / 372.9 MB, free: 8.598 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.163e-05/0.06259, allocations: 45.7 kB / 373 MB, free: 8.547 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008399/0.06343, allocations: 1.085 MB / 374.1 MB, free: 7.445 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001982/0.06363, allocations: 380.7 kB / 374.4 MB, free: 7.07 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002087/0.06384, allocations: 228.4 kB / 374.7 MB, free: 6.84 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001406/0.06398, allocations: 0.5237 MB / 375.2 MB, free: 6.309 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000187/0.06417, allocations: 144.8 kB / 375.3 MB, free: 6.164 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004188/0.06458, allocations: 0.7412 MB / 376.1 MB, free: 5.191 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006035/0.06519, allocations: 0.7491 MB / 376.8 MB, free: 4.277 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.22e-06/0.06519, allocations: 4 kB / 376.8 MB, free: 4.273 MB / 298.7 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.0009309/0.06612, allocations: 0.8869 MB / 377.7 MB, free: 3.383 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.082e-05/0.06614, allocations: 11.12 kB / 377.7 MB, free: 3.375 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.161e-05/0.06616, allocations: 8 kB / 377.7 MB, free: 3.367 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.433e-05/0.06618, allocations: 19.98 kB / 377.7 MB, free: 3.348 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005717/0.06675, allocations: 283.6 kB / 378 MB, free: 3.07 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.521e-05/0.06677, allocations: 20.27 kB / 378 MB, free: 3.051 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003953/0.06716, allocations: 63.97 kB / 378.1 MB, free: 2.988 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.608e-05/0.06721, allocations: 36 kB / 378.1 MB, free: 2.953 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003927/0.0676, allocations: 277.4 kB / 378.4 MB, free: 2.68 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004305/0.06803, allocations: 0.7334 MB / 379.1 MB, free: 1.715 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005843/0.06862, allocations: 0.7413 MB / 379.9 MB, free: 0.8047 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.897e-06/0.06862, allocations: 0 / 379.9 MB, free: 0.8047 MB / 298.7 MB Notification: Performance of matching and sorting (n=155) (initialization_lambda0): time 0.001138/0.06976, allocations: 0.8791 MB / 380.8 MB, free: 15.92 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.448e-05/0.06977, allocations: 11.94 kB / 380.8 MB, free: 15.91 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.06978, allocations: 8 kB / 380.8 MB, free: 15.9 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.029e-05/0.06979, allocations: 16 kB / 380.8 MB, free: 15.88 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000497/0.07029, allocations: 259.6 kB / 381 MB, free: 15.63 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.332e-05/0.0703, allocations: 23.92 kB / 381.1 MB, free: 15.61 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003586/0.07066, allocations: 60.36 kB / 381.1 MB, free: 15.55 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.126e-05/0.0707, allocations: 43.98 kB / 381.2 MB, free: 15.5 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.track.nextTimeEvent,$whenCondition1,trailer.energyBike.local_reset,trailer.energyDrive.local_reset,PID.I.local_reset,dcpmDrive.dcdcConverter.integralController.local_reset,dcpmDrive.dcdcConverter.EBat.local_reset,dcpmDrive.battery.soc.local_reset,dcpmDrive.limitedPI.integrator.local_reset,track.nextTimeEventScaled,$PRE.track.nextTimeEventScaled,track.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (155): * Single equations (assignments): 155 * 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.000202/0.0709, allocations: 349.6 kB / 381.5 MB, free: 15.16 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001647/0.07107, allocations: 210.8 kB / 381.7 MB, free: 14.95 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007733/0.07184, allocations: 0.6676 MB / 382.4 MB, free: 14.27 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.542e-06/0.07185, allocations: 8 kB / 382.4 MB, free: 14.27 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.724e-06/0.07185, allocations: 0 / 382.4 MB, free: 14.27 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.02e-05/0.07186, allocations: 15.97 kB / 382.4 MB, free: 14.25 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00212/0.07398, allocations: 1.795 MB / 384.2 MB, free: 12.41 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.666e-06/0.07398, allocations: 128 / 384.2 MB, free: 12.41 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005051/0.07449, allocations: 211.7 kB / 384.4 MB, free: 12.2 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.975e-06/0.07449, allocations: 4 kB / 384.4 MB, free: 12.2 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.991e-05/0.07453, allocations: 28.09 kB / 384.4 MB, free: 12.17 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.509e-06/0.07454, allocations: 4 kB / 384.4 MB, free: 12.16 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.07454, allocations: 4 kB / 384.4 MB, free: 12.16 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000996/0.07554, allocations: 1.047 MB / 385.5 MB, free: 11.08 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000329/0.07587, allocations: 262.7 kB / 385.8 MB, free: 10.82 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001068/0.07597, allocations: 27.98 kB / 385.8 MB, free: 10.79 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002955/0.07627, allocations: 51.97 kB / 385.8 MB, free: 10.74 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.324e-05/0.07635, allocations: 68.81 kB / 385.9 MB, free: 10.68 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.745e-05/0.07639, allocations: 23.98 kB / 385.9 MB, free: 10.65 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005941/0.07698, allocations: 0.7822 MB / 386.7 MB, free: 9.875 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.81e-07/0.07698, allocations: 0 / 386.7 MB, free: 9.875 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001329/0.07831, allocations: 0.5117 MB / 387.2 MB, free: 9.363 MB / 314.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 (107): * Single equations (assignments): 105 * 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.000839/0.07915, allocations: 420 kB / 387.6 MB, free: 9.086 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001102/0.08025, allocations: 0.8972 MB / 388.5 MB, free: 8.191 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.08026, allocations: 0.5 kB / 388.5 MB, free: 8.191 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002775/0.08053, allocations: 287.1 kB / 388.8 MB, free: 7.91 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000858/0.08139, allocations: 343.5 kB / 389.1 MB, free: 7.594 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004482/0.08587, allocations: 3.307 MB / 392.4 MB, free: 4.215 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005976/0.08647, allocations: 0.8257 MB / 393.3 MB, free: 3.352 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007087/0.08718, allocations: 398 kB / 393.7 MB, free: 2.961 MB / 314.7 MB Notification: Performance of SimCode: time 1.974e-06/0.08718, allocations: 0 / 393.7 MB, free: 2.961 MB / 314.7 MB Notification: Performance of Templates: time 0.139/0.2261, allocations: 22.92 MB / 416.6 MB, free: 78.79 MB / 330.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: 5.20746804587543]