Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BikeTrailer_BikeTrailer.Examples.ChargeBattery.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.0009658/0.0009658, allocations: 88.52 kB / 19.94 MB, free: 4.605 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.0009553/0.0009553, allocations: 177.9 kB / 23.21 MB, free: 1.328 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.9413/0.9413, allocations: 177.1 MB / 203.5 MB, free: 5.746 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.01565/0.01565, allocations: 1.317 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.ChargeBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=72000,variableFilter="",fileNamePrefix="BikeTrailer_BikeTrailer.Examples.ChargeBattery") translateModel(BikeTrailer.Examples.ChargeBattery,tolerance=1e-06,outputFormat="empty",numberOfIntervals=72000,variableFilter="",fileNamePrefix="BikeTrailer_BikeTrailer.Examples.ChargeBattery") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.493e-06/1.493e-06, allocations: 0 / 383.7 MB, free: 13.76 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.319e-05/2.469e-05, allocations: 5.094 kB / 383.7 MB, free: 13.75 MB / 314.7 MB Notification: Performance of NFInst.instantiate(BikeTrailer.Examples.ChargeBattery): time 0.003818/0.003843, allocations: 2.52 MB / 386.2 MB, free: 11.21 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001142/0.004984, allocations: 0.6271 MB / 386.8 MB, free: 10.58 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001758/0.00516, allocations: 4 kB / 386.8 MB, free: 10.58 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001846/0.005345, allocations: 51.5 kB / 386.9 MB, free: 10.53 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001607/0.005505, allocations: 75.3 kB / 386.9 MB, free: 10.45 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002514/0.005757, allocations: 91.89 kB / 387 MB, free: 10.36 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003554/0.006112, allocations: 322.7 kB / 387.4 MB, free: 10.05 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002358/0.006348, allocations: 119.5 kB / 387.5 MB, free: 9.934 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001989/0.006547, allocations: 179.7 kB / 387.6 MB, free: 9.758 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000167/0.006714, allocations: 99.67 kB / 387.7 MB, free: 9.66 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 6.272e-05/0.006777, allocations: 36 kB / 387.8 MB, free: 9.625 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.654e-05/0.006823, allocations: 32 kB / 387.8 MB, free: 9.594 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 6.006e-05/0.006883, allocations: 67.75 kB / 387.9 MB, free: 9.527 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 9.908e-05/0.006982, allocations: 107.8 kB / 388 MB, free: 9.422 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005047/0.007487, allocations: 378.8 kB / 388.3 MB, free: 9.051 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.974e-06/0.007489, allocations: 0 / 388.3 MB, free: 9.051 MB / 314.7 MB Notification: Performance of FrontEnd: time 8.41e-07/0.00749, allocations: 0 / 388.3 MB, free: 9.051 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.913e-06/0.007497, allocations: 0 / 388.3 MB, free: 9.051 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 69 * Number of variables: 69 Notification: Performance of Generate backend data structure: time 0.0008469/0.008344, allocations: 0.497 MB / 388.8 MB, free: 8.523 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.24e-05/0.008386, allocations: 8.031 kB / 388.9 MB, free: 8.516 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.895e-05/0.008465, allocations: 36.75 kB / 388.9 MB, free: 8.48 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003178/0.008783, allocations: 213.9 kB / 389.1 MB, free: 8.246 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.642e-05/0.008859, allocations: 76.56 kB / 389.2 MB, free: 8.16 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.738e-05/0.008907, allocations: 32.36 kB / 389.2 MB, free: 8.129 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005035/0.00941, allocations: 389.3 kB / 389.6 MB, free: 7.711 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.164e-05/0.009422, allocations: 192 / 389.6 MB, free: 7.711 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.203e-05/0.009514, allocations: 12.12 kB / 389.6 MB, free: 7.699 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.506e-06/0.009522, allocations: 8 kB / 389.6 MB, free: 7.691 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003409/0.009863, allocations: 182.5 kB / 389.8 MB, free: 7.512 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001364/0.01123, allocations: 1.154 MB / 390.9 MB, free: 6.285 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004135/0.01164, allocations: 146.6 kB / 391.1 MB, free: 6.133 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.917e-05/0.01173, allocations: 48.83 kB / 391.1 MB, free: 6.082 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.665e-05/0.01175, allocations: 4 kB / 391.1 MB, free: 6.078 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.254e-05/0.01177, allocations: 30.56 kB / 391.2 MB, free: 6.039 MB / 314.7 MB Notification: Performance of pre-optimization done (n=10): time 1.373e-06/0.01177, allocations: 0 / 391.2 MB, free: 6.039 MB / 314.7 MB Notification: Performance of matching and sorting (n=10): time 0.0008737/0.01264, allocations: 266.3 kB / 391.4 MB, free: 5.77 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.439e-05/0.01268, allocations: 55.41 kB / 391.5 MB, free: 5.703 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001851/0.01286, allocations: 207.4 kB / 391.7 MB, free: 5.492 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.543e-05/0.01288, allocations: 25.7 kB / 391.7 MB, free: 5.461 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001022/0.01298, allocations: 192 kB / 391.9 MB, free: 5.27 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.018e-05/0.01301, allocations: 39.69 kB / 391.9 MB, free: 5.23 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.884e-05/0.01307, allocations: 37.7 kB / 392 MB, free: 5.188 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.174e-05/0.01316, allocations: 326.8 kB / 392.3 MB, free: 4.859 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.686e-05/0.01326, allocations: 51.92 kB / 392.3 MB, free: 4.809 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001271/0.01339, allocations: 115.7 kB / 392.5 MB, free: 4.668 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000229/0.01362, allocations: 164.5 kB / 392.6 MB, free: 4.477 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/0.01362, allocations: 0 / 392.6 MB, free: 4.477 MB / 314.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0005206/0.01414, allocations: 266 kB / 392.9 MB, free: 4.207 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.68e-05/0.01416, allocations: 8.281 kB / 392.9 MB, free: 4.199 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.333e-06/0.01416, allocations: 8 kB / 392.9 MB, free: 4.191 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002196/0.01438, allocations: 52.75 kB / 392.9 MB, free: 4.137 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.867e-05/0.01448, allocations: 31.92 kB / 393 MB, free: 4.105 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001278/0.01576, allocations: 1.531 MB / 394.5 MB, free: 2.473 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.929e-05/0.01586, allocations: 27.81 kB / 394.5 MB, free: 2.445 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.383e-05/0.01587, allocations: 8 kB / 394.5 MB, free: 2.438 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 3 (cccvCharger.CV,energy.local_reset,battery.soc.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0001205/0.01599, allocations: 141.7 kB / 394.7 MB, free: 2.289 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.696e-05/0.01603, allocations: 15.91 kB / 394.7 MB, free: 2.273 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.586e-05/0.01606, allocations: 21.45 kB / 394.7 MB, free: 2.25 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.01606, allocations: 0 / 394.7 MB, free: 2.25 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.222e-06/0.01606, allocations: 96 / 394.7 MB, free: 2.25 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.01606, allocations: 4 kB / 394.7 MB, free: 2.246 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000514/0.01658, allocations: 201.2 kB / 394.9 MB, free: 2.02 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.586e-06/0.01658, allocations: 4 kB / 394.9 MB, free: 2.016 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.629e-05/0.01664, allocations: 11.98 kB / 394.9 MB, free: 2.004 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001259/0.01677, allocations: 44.91 kB / 395 MB, free: 1.957 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.239e-05/0.01678, allocations: 4 kB / 395 MB, free: 1.953 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00112/0.0179, allocations: 1.531 MB / 396.5 MB, free: 332 kB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.0179, allocations: 0 / 396.5 MB, free: 332 kB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005093/0.01841, allocations: 348.4 kB / 396.8 MB, free: 15.96 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.126e-05/0.01843, allocations: 11.94 kB / 396.9 MB, free: 15.95 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.109e-05/0.01846, allocations: 7.984 kB / 396.9 MB, free: 15.95 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001036/0.01856, allocations: 8 kB / 396.9 MB, free: 15.94 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.495e-05/0.0186, allocations: 7.984 kB / 396.9 MB, free: 15.93 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.041e-05/0.01861, allocations: 7.984 kB / 396.9 MB, free: 15.92 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001023/0.01872, allocations: 135.2 kB / 397 MB, free: 15.79 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.01872, allocations: 4.062 kB / 397 MB, free: 15.79 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004497/0.01917, allocations: 71.73 kB / 397.1 MB, free: 15.71 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (battery.soc.y,energy.y) * Number of discrete variables: 1 (cccvCharger.CV) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 9.389e-05/0.01926, allocations: 95.25 kB / 397.2 MB, free: 15.61 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004447/0.01971, allocations: 242.9 kB / 397.4 MB, free: 15.36 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.01971, allocations: 4.125 kB / 397.4 MB, free: 15.36 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002105/0.01992, allocations: 182.6 kB / 397.6 MB, free: 15.17 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003397/0.02026, allocations: 30.02 kB / 397.6 MB, free: 15.14 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007983/0.02106, allocations: 492.1 kB / 398.1 MB, free: 14.62 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001116/0.02117, allocations: 141.8 kB / 398.3 MB, free: 14.47 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.07e-05/0.02121, allocations: 16.5 kB / 398.3 MB, free: 14.45 MB / 330.7 MB Notification: Performance of SimCode: time 5.91e-07/0.02121, allocations: 0 / 398.3 MB, free: 14.45 MB / 330.7 MB Notification: Performance of Templates: time 0.004023/0.02523, allocations: 3.663 MB / 401.9 MB, free: 10.79 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f BikeTrailer_BikeTrailer.Examples.ChargeBattery.makefile [Timeout 660] (rm -f BikeTrailer_BikeTrailer.Examples.ChargeBattery.pipe ; mkfifo BikeTrailer_BikeTrailer.Examples.ChargeBattery.pipe ; head -c 1048576 < BikeTrailer_BikeTrailer.Examples.ChargeBattery.pipe >> ../files/BikeTrailer_BikeTrailer.Examples.ChargeBattery.sim & ./BikeTrailer_BikeTrailer.Examples.ChargeBattery > BikeTrailer_BikeTrailer.Examples.ChargeBattery.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.748887677211314]