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.001081/0.001081, allocations: 80.94 kB / 19.94 MB, free: 4.543 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.00115/0.00115, allocations: 177 kB / 23.36 MB, free: 1.129 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.9274/0.9274, allocations: 177.1 MB / 203.8 MB, free: 5.473 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.005278/0.005278, allocations: 1.328 MB / 261.6 MB, free: 11.62 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.132e-06/1.132e-06, allocations: 0 / 278.5 MB, free: 10.75 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.041e-05/1.154e-05, allocations: 2.312 kB / 278.5 MB, free: 10.75 MB / 266.7 MB Notification: Performance of NFInst.instantiate(BikeTrailer.Examples.ChargeBattery): time 0.002465/0.002477, allocations: 2.64 MB / 281.1 MB, free: 8.09 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008076/0.003285, allocations: 0.6464 MB / 281.7 MB, free: 7.438 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001072/0.003392, allocations: 11.94 kB / 281.8 MB, free: 7.426 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000136/0.003528, allocations: 51.5 kB / 281.8 MB, free: 7.375 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000103/0.003631, allocations: 67.36 kB / 281.9 MB, free: 7.309 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001706/0.003801, allocations: 91.89 kB / 282 MB, free: 7.219 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002283/0.00403, allocations: 318.7 kB / 282.3 MB, free: 6.906 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001541/0.004184, allocations: 122.2 kB / 282.4 MB, free: 6.785 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001475/0.004331, allocations: 191.6 kB / 282.6 MB, free: 6.598 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000138/0.004469, allocations: 111.7 kB / 282.7 MB, free: 6.488 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.594e-05/0.004505, allocations: 36 kB / 282.7 MB, free: 6.453 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.885e-05/0.004534, allocations: 32 kB / 282.8 MB, free: 6.422 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.492e-05/0.004579, allocations: 67.8 kB / 282.8 MB, free: 6.355 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.754e-05/0.004646, allocations: 103.8 kB / 282.9 MB, free: 6.254 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002077/0.004854, allocations: 231.1 kB / 283.1 MB, free: 6.027 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.403e-06/0.004856, allocations: 0 / 283.1 MB, free: 6.027 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.11e-07/0.004856, allocations: 0 / 283.1 MB, free: 6.027 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.536e-06/0.00486, allocations: 4 kB / 283.2 MB, free: 6.023 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: 69 * Number of variables: 69 Notification: Performance of Generate backend data structure: time 0.0005352/0.005395, allocations: 492.1 kB / 283.6 MB, free: 5.52 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.923e-05/0.005434, allocations: 8.031 kB / 283.6 MB, free: 5.512 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.68e-05/0.005501, allocations: 48.89 kB / 283.7 MB, free: 5.465 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002368/0.005738, allocations: 179.3 kB / 283.9 MB, free: 5.266 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.509e-05/0.005813, allocations: 72.62 kB / 283.9 MB, free: 5.184 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.377e-05/0.005846, allocations: 32.38 kB / 284 MB, free: 5.152 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002808/0.006127, allocations: 329.9 kB / 284.3 MB, free: 4.785 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.747e-06/0.006136, allocations: 192 / 284.3 MB, free: 4.785 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.107e-05/0.006157, allocations: 16.12 kB / 284.3 MB, free: 4.77 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.011e-05/0.006167, allocations: 8 kB / 284.3 MB, free: 4.762 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.365e-05/0.006251, allocations: 68.5 kB / 284.4 MB, free: 4.695 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000823/0.007074, allocations: 1.01 MB / 285.4 MB, free: 3.625 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001803/0.007254, allocations: 86.47 kB / 285.5 MB, free: 3.531 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.684e-05/0.007281, allocations: 24.84 kB / 285.5 MB, free: 3.504 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.046e-05/0.007291, allocations: 0 / 285.5 MB, free: 3.504 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.684e-05/0.007308, allocations: 34.56 kB / 285.5 MB, free: 3.461 MB / 266.7 MB Notification: Performance of pre-optimization done (n=10): time 7.92e-07/0.007309, allocations: 0 / 285.5 MB, free: 3.461 MB / 266.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003158/0.007625, allocations: 158.5 kB / 285.7 MB, free: 3.297 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.522e-05/0.00765, allocations: 51.41 kB / 285.7 MB, free: 3.234 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001049/0.007755, allocations: 187.9 kB / 285.9 MB, free: 3.039 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.463e-05/0.00777, allocations: 25.7 kB / 285.9 MB, free: 3.008 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.929e-05/0.007839, allocations: 195.9 kB / 286.1 MB, free: 2.812 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.945e-05/0.007858, allocations: 31.7 kB / 286.2 MB, free: 2.781 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.144e-05/0.0079, allocations: 45.64 kB / 286.2 MB, free: 2.73 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.226e-05/0.007972, allocations: 326.8 kB / 286.5 MB, free: 2.402 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.324e-05/0.007995, allocations: 19.92 kB / 286.5 MB, free: 2.383 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.156e-05/0.008047, allocations: 87.5 kB / 286.6 MB, free: 2.27 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.867e-05/0.008135, allocations: 108.4 kB / 286.7 MB, free: 2.133 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.257e-06/0.008139, allocations: 3.984 kB / 286.7 MB, free: 2.129 MB / 266.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001919/0.008331, allocations: 174.3 kB / 286.9 MB, free: 1.949 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.528e-06/0.00834, allocations: 4 kB / 286.9 MB, free: 1.945 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.239e-06/0.008345, allocations: 4 kB / 286.9 MB, free: 1.941 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001021/0.008448, allocations: 32.83 kB / 287 MB, free: 1.906 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.591e-05/0.008503, allocations: 23.94 kB / 287 MB, free: 1.883 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006812/0.009185, allocations: 1.367 MB / 288.3 MB, free: 440 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.05e-05/0.009245, allocations: 27.83 kB / 288.4 MB, free: 412 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.404e-06/0.009253, allocations: 4 kB / 288.4 MB, free: 408 kB / 266.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 (battery.soc.local_reset,energy.local_reset,cccvCharger.CV) * 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 7.14e-05/0.009324, allocations: 133.6 kB / 288.5 MB, free: 264 kB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.099e-05/0.009345, allocations: 15.92 kB / 288.5 MB, free: 248 kB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.531e-05/0.00936, allocations: 17.47 kB / 288.5 MB, free: 232 kB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-06/0.009361, allocations: 0 / 288.5 MB, free: 232 kB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.71e-07/0.009362, allocations: 4.062 kB / 288.5 MB, free: 228 kB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.009365, allocations: 4 kB / 288.5 MB, free: 224 kB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001233/0.009488, allocations: 129.8 kB / 288.7 MB, free: 76 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.009489, allocations: 96 / 288.7 MB, free: 76 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.022e-05/0.009529, allocations: 19.94 kB / 288.7 MB, free: 56 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.058e-05/0.00959, allocations: 40.73 kB / 288.7 MB, free: 12 kB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.753e-06/0.009597, allocations: 0 / 288.7 MB, free: 12 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1035/0.1131, allocations: 1.347 MB / 290.1 MB, free: 23.09 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.724e-06/0.1131, allocations: 0.6094 kB / 290.1 MB, free: 23.09 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000235/0.1134, allocations: 231.3 kB / 290.3 MB, free: 22.95 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.954e-05/0.1134, allocations: 17.34 kB / 290.3 MB, free: 22.95 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.387e-05/0.1134, allocations: 3.109 kB / 290.3 MB, free: 22.95 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.368e-05/0.1135, allocations: 12.41 kB / 290.3 MB, free: 22.95 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.883e-05/0.1135, allocations: 9.703 kB / 290.3 MB, free: 22.95 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.053e-06/0.1135, allocations: 5.312 kB / 290.4 MB, free: 22.95 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.927e-05/0.1136, allocations: 47.5 kB / 290.4 MB, free: 22.94 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1136, allocations: 1.844 kB / 290.4 MB, free: 22.94 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002785/0.1138, allocations: 63.88 kB / 290.5 MB, free: 22.94 MB / 266.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 8.46e-05/0.1139, allocations: 80.84 kB / 290.5 MB, free: 22.87 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002534/0.1142, allocations: 207.3 kB / 290.7 MB, free: 22.75 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/0.1142, allocations: 2.594 kB / 290.7 MB, free: 22.75 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001004/0.1143, allocations: 153.5 kB / 290.9 MB, free: 22.64 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001687/0.1145, allocations: 29.22 kB / 290.9 MB, free: 22.63 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007358/0.1152, allocations: 471 kB / 291.4 MB, free: 22.39 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.09e-05/0.1152, allocations: 83.75 kB / 291.5 MB, free: 22.32 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.436e-05/0.1153, allocations: 17.39 kB / 291.5 MB, free: 22.31 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.52e-05/0.1153, allocations: 74.27 kB / 291.6 MB, free: 22.27 MB / 266.7 MB Notification: Performance of SimCode: time 5.01e-07/0.1153, allocations: 3.844 kB / 291.6 MB, free: 22.27 MB / 266.7 MB Notification: Performance of Templates: time 0.004275/0.1196, allocations: 2.172 MB / 293.7 MB, free: 22.12 MB / 266.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 -abortSlowSimulation -alarm=240 -lv LOG_STATS > BikeTrailer_BikeTrailer.Examples.ChargeBattery.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.693068705033511]