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.001208/0.001208, allocations: 80.75 kB / 19.94 MB, free: 4.547 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.001496/0.001496, allocations: 181 kB / 23.36 MB, free: 1.133 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 1.075/1.075, allocations: 177.1 MB / 203.8 MB, free: 5.469 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.005529/0.005529, allocations: 1.33 MB / 261.6 MB, free: 11.61 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.883e-06/1.883e-06, allocations: 0 / 278.5 MB, free: 10.69 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.445e-05/1.633e-05, allocations: 2.312 kB / 278.5 MB, free: 10.69 MB / 266.7 MB Notification: Performance of NFInst.instantiate(BikeTrailer.Examples.TestTrailerControlled): time 0.005151/0.005168, allocations: 5.057 MB / 283.6 MB, free: 5.602 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004317/0.009485, allocations: 2.468 MB / 286 MB, free: 3.121 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006695/0.01015, allocations: 35.75 kB / 286.1 MB, free: 3.086 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008339/0.01099, allocations: 289.6 kB / 286.4 MB, free: 2.801 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007351/0.01172, allocations: 385.2 kB / 286.7 MB, free: 2.422 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008967/0.01262, allocations: 0.6004 MB / 287.3 MB, free: 1.82 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001023/0.01364, allocations: 1.344 MB / 288.7 MB, free: 484 kB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006558/0.0143, allocations: 339.8 kB / 289 MB, free: 112 kB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1348/0.1491, allocations: 0.7149 MB / 289.7 MB, free: 19.94 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007702/0.1498, allocations: 410 kB / 290.1 MB, free: 19.94 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002594/0.1501, allocations: 125.3 kB / 290.2 MB, free: 19.94 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003592/0.1504, allocations: 180.4 kB / 290.4 MB, free: 19.94 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003056/0.1507, allocations: 387 kB / 290.8 MB, free: 19.94 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004875/0.1512, allocations: 402 kB / 291.2 MB, free: 19.9 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001307/0.1525, allocations: 1.042 MB / 292.2 MB, free: 19.75 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.1525, allocations: 1.094 kB / 292.2 MB, free: 19.75 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1525, allocations: 1.688 kB / 292.2 MB, free: 19.75 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.615e-05/0.1526, allocations: 0 / 292.2 MB, free: 19.75 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.002266/0.1548, allocations: 1.581 MB / 293.8 MB, free: 18.93 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.133e-05/0.1549, allocations: 10.7 kB / 293.8 MB, free: 18.93 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003795/0.1553, allocations: 168.5 kB / 294 MB, free: 18.93 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008935/0.1562, allocations: 0.6768 MB / 294.7 MB, free: 18.58 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.919e-05/0.1562, allocations: 58.78 kB / 294.7 MB, free: 18.58 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.657e-05/0.1563, allocations: 93.48 kB / 294.8 MB, free: 18.57 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009449/0.1573, allocations: 0.7145 MB / 295.5 MB, free: 18.29 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.129e-05/0.1573, allocations: 3.391 kB / 295.5 MB, free: 18.29 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.508e-05/0.1573, allocations: 38.72 kB / 295.6 MB, free: 18.29 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.951e-05/0.1573, allocations: 22.75 kB / 295.6 MB, free: 18.29 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004433/0.1578, allocations: 231.5 kB / 295.8 MB, free: 18.27 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002669/0.1605, allocations: 2.168 MB / 298 MB, free: 17.24 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005732/0.161, allocations: 344.1 kB / 298.3 MB, free: 17.15 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001526/0.1612, allocations: 86.62 kB / 298.4 MB, free: 17.14 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.382e-05/0.1612, allocations: 16.66 kB / 298.4 MB, free: 17.14 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003201/0.1616, allocations: 198.8 kB / 298.6 MB, free: 17.09 MB / 266.7 MB Notification: Performance of pre-optimization done (n=61): time 2.044e-06/0.1616, allocations: 1.031 kB / 298.6 MB, free: 17.09 MB / 266.7 MB Notification: Performance of matching and sorting (n=68): time 0.003363/0.1649, allocations: 1.665 MB / 300.3 MB, free: 16.7 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.24e-05/0.165, allocations: 164.4 kB / 300.4 MB, free: 16.52 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001051/0.166, allocations: 0.9488 MB / 301.4 MB, free: 16.36 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.145e-05/0.1661, allocations: 42.27 kB / 301.4 MB, free: 16.32 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002177/0.1663, allocations: 416.3 kB / 301.8 MB, free: 16.11 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001262/0.1664, allocations: 257.1 kB / 302.1 MB, free: 15.94 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001471/0.1666, allocations: 136.9 kB / 302.2 MB, free: 15.88 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.187e-05/0.1666, allocations: 339.6 kB / 302.6 MB, free: 15.57 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001467/0.1668, allocations: 87.62 kB / 302.6 MB, free: 15.55 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002216/0.167, allocations: 357 kB / 303 MB, free: 15.24 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003859/0.1674, allocations: 376.4 kB / 303.4 MB, free: 15.05 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.1674, allocations: 2.719 kB / 303.4 MB, free: 15.05 MB / 266.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.00055/0.1679, allocations: 420 kB / 303.8 MB, free: 14.98 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.948e-05/0.1679, allocations: 6.688 kB / 303.8 MB, free: 14.98 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/0.168, allocations: 9.062 kB / 303.8 MB, free: 14.98 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.05e-05/0.168, allocations: 7.75 kB / 303.8 MB, free: 14.98 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005363/0.1685, allocations: 233 kB / 304 MB, free: 14.97 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.518e-06/0.1685, allocations: 13.89 kB / 304 MB, free: 14.97 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002694/0.1688, allocations: 35.38 kB / 304.1 MB, free: 14.96 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.015e-05/0.1688, allocations: 23.66 kB / 304.1 MB, free: 14.95 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002491/0.1691, allocations: 171 kB / 304.3 MB, free: 14.85 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001978/0.1693, allocations: 362.9 kB / 304.6 MB, free: 14.53 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003072/0.1696, allocations: 367.8 kB / 305 MB, free: 14.36 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.637e-06/0.1696, allocations: 11.22 kB / 305 MB, free: 14.35 MB / 266.7 MB Notification: Performance of matching and sorting (n=94) (initialization_lambda0): time 0.0004224/0.17, allocations: 415.2 kB / 305.4 MB, free: 14.28 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.06e-05/0.17, allocations: 6.562 kB / 305.4 MB, free: 14.28 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.17, allocations: 3 kB / 305.4 MB, free: 14.28 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.823e-06/0.17, allocations: 9.406 kB / 305.4 MB, free: 14.28 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004499/0.1705, allocations: 227.7 kB / 305.6 MB, free: 14.27 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.223e-06/0.1705, allocations: 10.75 kB / 305.6 MB, free: 14.27 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002152/0.1707, allocations: 30.98 kB / 305.7 MB, free: 14.26 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.736e-05/0.1707, allocations: 24.25 kB / 305.7 MB, free: 14.25 MB / 266.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.0001107/0.1708, allocations: 230 kB / 305.9 MB, free: 14.05 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.616e-05/0.1709, allocations: 88.48 kB / 306 MB, free: 14.04 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006101/0.1715, allocations: 494 kB / 306.5 MB, free: 13.88 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.192e-06/0.1715, allocations: 10.91 kB / 306.5 MB, free: 13.88 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.985e-06/0.1715, allocations: 1.75 kB / 306.5 MB, free: 13.88 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.614e-06/0.1715, allocations: 3.797 kB / 306.5 MB, free: 13.88 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00132/0.1729, allocations: 1.074 MB / 307.6 MB, free: 13.34 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.788e-06/0.1729, allocations: 6.438 kB / 307.6 MB, free: 13.34 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002814/0.1731, allocations: 125.4 kB / 307.7 MB, free: 13.32 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003303/0.1735, allocations: 126.7 kB / 307.8 MB, free: 13.25 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.331e-05/0.1735, allocations: 19.98 kB / 307.9 MB, free: 13.23 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001135/0.1746, allocations: 1.857 MB / 309.7 MB, free: 11.33 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.1746, allocations: 5.734 kB / 309.7 MB, free: 11.33 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006561/0.1753, allocations: 0.7107 MB / 310.4 MB, free: 10.61 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001681/0.1755, allocations: 128.4 kB / 310.6 MB, free: 10.48 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.299e-05/0.1755, allocations: 24.03 kB / 310.6 MB, free: 10.46 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000202/0.1757, allocations: 27.97 kB / 310.6 MB, free: 10.43 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.876e-05/0.1758, allocations: 64.34 kB / 310.7 MB, free: 10.38 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.623e-05/0.1759, allocations: 15.98 kB / 310.7 MB, free: 10.36 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003184/0.1762, allocations: 466.8 kB / 311.1 MB, free: 9.945 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1762, allocations: 0 / 311.1 MB, free: 9.945 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006432/0.1768, allocations: 331.9 kB / 311.5 MB, free: 9.621 MB / 266.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.001089/0.1779, allocations: 0.5242 MB / 312 MB, free: 9.414 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005204/0.1784, allocations: 0.5093 MB / 312.5 MB, free: 8.957 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.119e-05/0.1784, allocations: 12.06 kB / 312.5 MB, free: 8.945 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003163/0.1788, allocations: 352 kB / 312.9 MB, free: 8.609 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005922/0.1794, allocations: 238.3 kB / 313.1 MB, free: 8.391 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002351/0.1817, allocations: 2.065 MB / 315.1 MB, free: 6.305 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001414/0.1818, allocations: 244.5 kB / 315.4 MB, free: 6.043 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003259/0.1822, allocations: 135.3 kB / 315.5 MB, free: 5.906 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003335/0.1825, allocations: 237.2 kB / 315.8 MB, free: 5.672 MB / 266.7 MB Notification: Performance of SimCode: time 9.32e-07/0.1825, allocations: 0 / 315.8 MB, free: 5.672 MB / 266.7 MB Notification: Performance of Templates: time 0.01797/0.2005, allocations: 14.08 MB / 329.8 MB, free: 7.852 MB / 282.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 -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -lv LOG_STATS > BikeTrailer_BikeTrailer.Examples.TestTrailerControlled.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 5.3014498767443]