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.001309/0.001309, allocations: 88.52 kB / 19.94 MB, free: 4.609 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.0009479/0.0009479, allocations: 173.9 kB / 23.21 MB, free: 1.332 MB / 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.9568/0.9568, allocations: 177.1 MB / 203.5 MB, free: 5.75 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.005841/0.005841, allocations: 1.316 MB / 261.3 MB, free: 11.95 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 1.372e-06/1.372e-06, allocations: 0 / 383.7 MB, free: 13.77 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.761e-05/2.898e-05, allocations: 2.281 kB / 383.7 MB, free: 13.76 MB / 314.7 MB Notification: Performance of NFInst.instantiate(BikeTrailer.Examples.TestTrailerDCPM): time 0.007694/0.007723, allocations: 8.039 MB / 391.7 MB, free: 5.676 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.006152/0.01388, allocations: 4.054 MB / 395.8 MB, free: 1.605 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002102/0.01598, allocations: 59.56 kB / 395.8 MB, free: 1.547 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001745/0.01772, allocations: 0.6396 MB / 396.5 MB, free: 0.9023 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001824/0.01955, allocations: 0.6241 MB / 397.1 MB, free: 280 kB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001624/0.02117, allocations: 0.9433 MB / 398 MB, free: 15.33 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.002573/0.02374, allocations: 2.537 MB / 400.6 MB, free: 12.79 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009092/0.02465, allocations: 0.6543 MB / 401.2 MB, free: 12.08 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001606/0.02626, allocations: 1.368 MB / 402.6 MB, free: 10.71 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007522/0.02701, allocations: 0.6502 MB / 403.2 MB, free: 10.05 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002486/0.02726, allocations: 256 kB / 403.5 MB, free: 9.805 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003763/0.02764, allocations: 315.9 kB / 403.8 MB, free: 9.496 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003135/0.02795, allocations: 0.5878 MB / 404.4 MB, free: 8.906 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005684/0.02852, allocations: 0.7129 MB / 405.1 MB, free: 8.191 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002305/0.03082, allocations: 2.96 MB / 408.1 MB, free: 5.223 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.03083, allocations: 4 kB / 408.1 MB, free: 5.219 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.853e-06/0.03083, allocations: 0 / 408.1 MB, free: 5.219 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.722e-05/0.03089, allocations: 0 / 408.1 MB, free: 5.219 MB / 330.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.003186/0.03407, allocations: 2.493 MB / 410.6 MB, free: 2.684 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/0.03411, allocations: 8.031 kB / 410.6 MB, free: 2.676 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003779/0.03449, allocations: 271.3 kB / 410.8 MB, free: 2.41 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001552/0.03604, allocations: 1.335 MB / 412.2 MB, free: 1.039 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.845e-05/0.03611, allocations: 119.5 kB / 412.3 MB, free: 0.9219 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002093/0.03632, allocations: 176.5 kB / 412.5 MB, free: 0.75 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1456/0.1819, allocations: 1.9 MB / 414.4 MB, free: 37.91 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.718e-05/0.1819, allocations: 9.828 kB / 414.4 MB, free: 37.91 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.428e-05/0.182, allocations: 67.41 kB / 414.4 MB, free: 37.86 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.467e-05/0.182, allocations: 38.69 kB / 414.5 MB, free: 37.86 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001829/0.1839, allocations: 1.197 MB / 415.7 MB, free: 37.43 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006751/0.1906, allocations: 5.678 MB / 421.3 MB, free: 33.95 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001362/0.192, allocations: 0.8664 MB / 422.2 MB, free: 33.62 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005377/0.1925, allocations: 416.3 kB / 422.6 MB, free: 33.45 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.022e-05/0.1926, allocations: 20.5 kB / 422.6 MB, free: 33.45 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007307/0.1933, allocations: 0.6999 MB / 423.3 MB, free: 33.02 MB / 330.7 MB Notification: Performance of pre-optimization done (n=95): time 3.026e-06/0.1933, allocations: 0 / 423.3 MB, free: 33.02 MB / 330.7 MB Notification: Performance of matching and sorting (n=104): time 0.005855/0.1992, allocations: 3.702 MB / 427 MB, free: 31.32 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.278e-05/0.1992, allocations: 219.3 kB / 427.3 MB, free: 31.07 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001908/0.2011, allocations: 1.716 MB / 429 MB, free: 30.46 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.76e-05/0.2012, allocations: 47.64 kB / 429 MB, free: 30.42 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005271/0.2017, allocations: 0.9534 MB / 430 MB, free: 29.77 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001709/0.2019, allocations: 384.6 kB / 430.3 MB, free: 29.52 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002277/0.2021, allocations: 214.2 kB / 430.6 MB, free: 29.4 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.498e-05/0.2022, allocations: 350.9 kB / 430.9 MB, free: 29.08 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005417/0.2027, allocations: 425.4 kB / 431.3 MB, free: 28.91 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006586/0.2034, allocations: 0.8883 MB / 432.2 MB, free: 28.19 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001158/0.2045, allocations: 1.163 MB / 433.4 MB, free: 27.45 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.262e-06/0.2045, allocations: 2.688 kB / 433.4 MB, free: 27.45 MB / 330.7 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.001648/0.2062, allocations: 1.375 MB / 434.7 MB, free: 26.78 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.047e-05/0.2062, allocations: 10.62 kB / 434.8 MB, free: 26.78 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-05/0.2062, allocations: 7.188 kB / 434.8 MB, free: 26.78 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.229e-05/0.2062, allocations: 14.03 kB / 434.8 MB, free: 26.78 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005856/0.2068, allocations: 292 kB / 435.1 MB, free: 26.71 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.452e-05/0.2068, allocations: 17.25 kB / 435.1 MB, free: 26.71 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000526/0.2074, allocations: 68.73 kB / 435.1 MB, free: 26.68 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.937e-05/0.2074, allocations: 51.16 kB / 435.2 MB, free: 26.66 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008715/0.2083, allocations: 0.7232 MB / 435.9 MB, free: 26.25 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000515/0.2088, allocations: 0.836 MB / 436.8 MB, free: 25.44 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008162/0.2096, allocations: 1.038 MB / 437.8 MB, free: 24.29 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.918e-06/0.2096, allocations: 4 kB / 437.8 MB, free: 24.29 MB / 330.7 MB Notification: Performance of matching and sorting (n=154) (initialization_lambda0): time 0.001141/0.2108, allocations: 1.254 MB / 439 MB, free: 23.03 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.367e-05/0.2108, allocations: 8 kB / 439.1 MB, free: 23.02 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.693e-06/0.2108, allocations: 8 kB / 439.1 MB, free: 23.01 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.237e-06/0.2108, allocations: 16 kB / 439.1 MB, free: 23 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000492/0.2113, allocations: 264.2 kB / 439.3 MB, free: 22.74 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.187e-06/0.2113, allocations: 27.92 kB / 439.4 MB, free: 22.71 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000383/0.2117, allocations: 51.98 kB / 439.4 MB, free: 22.66 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.987e-05/0.2117, allocations: 54.72 kB / 439.5 MB, free: 22.61 MB / 330.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.00019/0.2119, allocations: 265.8 kB / 439.7 MB, free: 22.35 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001148/0.212, allocations: 174.9 kB / 439.9 MB, free: 22.18 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00123/0.2132, allocations: 1.123 MB / 441 MB, free: 21.04 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/0.2132, allocations: 12 kB / 441 MB, free: 21.03 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.2133, allocations: 0 / 441 MB, free: 21.03 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.724e-06/0.2133, allocations: 7.922 kB / 441 MB, free: 21.02 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002783/0.216, allocations: 2.493 MB / 443.5 MB, free: 18.51 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.216, allocations: 0 / 443.5 MB, free: 18.51 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005428/0.2166, allocations: 216.8 kB / 443.7 MB, free: 18.3 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.643e-06/0.2166, allocations: 7.938 kB / 443.8 MB, free: 18.29 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.979e-05/0.2166, allocations: 31.98 kB / 443.8 MB, free: 18.26 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.228e-06/0.2166, allocations: 4 kB / 443.8 MB, free: 18.25 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.2166, allocations: 0 / 443.8 MB, free: 18.25 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001609/0.2183, allocations: 1.725 MB / 445.5 MB, free: 16.51 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003568/0.2186, allocations: 285.3 kB / 445.8 MB, free: 16.23 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001065/0.2187, allocations: 24 kB / 445.8 MB, free: 16.21 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003335/0.2191, allocations: 56.08 kB / 445.9 MB, free: 16.15 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001113/0.2192, allocations: 68.88 kB / 445.9 MB, free: 16.08 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.879e-05/0.2192, allocations: 31.98 kB / 446 MB, free: 16.05 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001037/0.2202, allocations: 1.177 MB / 447.1 MB, free: 14.88 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.2202, allocations: 5.203 kB / 447.2 MB, free: 14.88 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001177/0.2214, allocations: 0.5117 MB / 447.7 MB, free: 14.36 MB / 330.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.001048/0.2225, allocations: 474.7 kB / 448.1 MB, free: 14.11 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001654/0.2241, allocations: 1.508 MB / 449.6 MB, free: 12.61 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.2241, allocations: 0 / 449.6 MB, free: 12.61 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004708/0.2246, allocations: 487.4 kB / 450.1 MB, free: 12.13 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008002/0.2254, allocations: 319.5 kB / 450.4 MB, free: 11.83 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003647/0.229, allocations: 3.648 MB / 454.1 MB, free: 8.145 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004667/0.2295, allocations: 0.8297 MB / 454.9 MB, free: 7.281 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002678/0.2298, allocations: 108.5 kB / 455 MB, free: 7.176 MB / 330.7 MB Notification: Performance of SimCode: time 9.62e-07/0.2298, allocations: 0 / 455 MB, free: 7.176 MB / 330.7 MB Notification: Performance of Templates: time 0.02521/0.255, allocations: 22.91 MB / 477.9 MB, free: 300 kB / 346.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: 6.773163808975369]