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.001369/0.001369, allocations: 80.88 kB / 20.8 MB, free: 3.66 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.001085/0.001085, allocations: 165 kB / 24.22 MB, free: 248 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.8419/0.8419, allocations: 177.1 MB / 204.7 MB, free: 5.453 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.005418/0.005418, allocations: 1.328 MB / 262.5 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.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.052e-06/1.052e-06, allocations: 0 / 279.5 MB, free: 10.62 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.017e-06/1.007e-05, allocations: 4.984 kB / 279.5 MB, free: 10.61 MB / 266.7 MB Notification: Performance of NFInst.instantiate(BikeTrailer.Examples.ChargeBattery): time 0.002442/0.002452, allocations: 2.68 MB / 282.1 MB, free: 7.914 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008343/0.003287, allocations: 0.6503 MB / 282.8 MB, free: 7.258 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000105/0.003392, allocations: 7.938 kB / 282.8 MB, free: 7.25 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000135/0.003527, allocations: 55.44 kB / 282.8 MB, free: 7.195 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001011/0.003628, allocations: 63.42 kB / 282.9 MB, free: 7.133 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001634/0.003791, allocations: 91.89 kB / 283 MB, free: 7.043 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002268/0.004018, allocations: 322.7 kB / 283.3 MB, free: 6.727 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001467/0.004165, allocations: 118.2 kB / 283.4 MB, free: 6.609 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001379/0.004302, allocations: 191.6 kB / 283.6 MB, free: 6.422 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001275/0.00443, allocations: 111.7 kB / 283.7 MB, free: 6.312 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.376e-05/0.004464, allocations: 36 kB / 283.8 MB, free: 6.277 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.152e-05/0.004495, allocations: 32 kB / 283.8 MB, free: 6.246 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.272e-05/0.004538, allocations: 75.73 kB / 283.9 MB, free: 6.172 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001809/0.004719, allocations: 103.8 kB / 284 MB, free: 6.07 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002065/0.004925, allocations: 227.2 kB / 284.2 MB, free: 5.848 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.804e-06/0.004927, allocations: 0 / 284.2 MB, free: 5.848 MB / 266.7 MB Notification: Performance of FrontEnd: time 3.51e-07/0.004928, allocations: 0 / 284.2 MB, free: 5.848 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.108e-06/0.004932, allocations: 0 / 284.2 MB, free: 5.848 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.0004728/0.005404, allocations: 0.4883 MB / 284.7 MB, free: 5.336 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.87e-05/0.005433, allocations: 12.03 kB / 284.7 MB, free: 5.324 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.046e-05/0.005484, allocations: 40.91 kB / 284.7 MB, free: 5.285 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000186/0.00567, allocations: 177.4 kB / 284.9 MB, free: 5.086 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.599e-05/0.005726, allocations: 72.62 kB / 285 MB, free: 5.004 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.13e-05/0.005757, allocations: 40.36 kB / 285 MB, free: 4.965 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002407/0.005998, allocations: 314 kB / 285.3 MB, free: 4.613 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.006007, allocations: 192 / 285.3 MB, free: 4.613 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.639e-05/0.006023, allocations: 20.12 kB / 285.3 MB, free: 4.594 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.803e-06/0.00603, allocations: 8 kB / 285.3 MB, free: 4.586 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.081e-05/0.006111, allocations: 72.44 kB / 285.4 MB, free: 4.516 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007743/0.006885, allocations: 1.01 MB / 286.4 MB, free: 3.445 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001652/0.00705, allocations: 82.53 kB / 286.5 MB, free: 3.355 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.62e-05/0.007076, allocations: 24.84 kB / 286.5 MB, free: 3.328 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.116e-05/0.007087, allocations: 4 kB / 286.5 MB, free: 3.324 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.672e-05/0.007104, allocations: 30.56 kB / 286.6 MB, free: 3.285 MB / 266.7 MB Notification: Performance of pre-optimization done (n=10): time 1.262e-06/0.007105, allocations: 4 kB / 286.6 MB, free: 3.281 MB / 266.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003069/0.007412, allocations: 154.5 kB / 286.7 MB, free: 3.121 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.937e-05/0.007432, allocations: 55.34 kB / 286.8 MB, free: 3.055 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.148e-05/0.007523, allocations: 187.9 kB / 287 MB, free: 2.859 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.116e-05/0.007534, allocations: 29.7 kB / 287 MB, free: 2.824 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.098e-05/0.007595, allocations: 187.9 kB / 287.2 MB, free: 2.637 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.884e-05/0.007614, allocations: 35.69 kB / 287.2 MB, free: 2.602 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.12e-05/0.007655, allocations: 45.64 kB / 287.3 MB, free: 2.551 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.885e-05/0.007724, allocations: 330.8 kB / 287.6 MB, free: 2.219 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.967e-05/0.007744, allocations: 15.94 kB / 287.6 MB, free: 2.203 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.053e-05/0.007794, allocations: 83.5 kB / 287.7 MB, free: 2.094 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.736e-05/0.007882, allocations: 124.3 kB / 287.8 MB, free: 1.941 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.007883, allocations: 0 / 287.8 MB, free: 1.941 MB / 266.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001849/0.008068, allocations: 154.4 kB / 287.9 MB, free: 1.781 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.051e-05/0.008079, allocations: 7.938 kB / 288 MB, free: 1.773 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.008083, allocations: 4 kB / 288 MB, free: 1.77 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.83e-05/0.008181, allocations: 32.83 kB / 288 MB, free: 1.734 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.464e-05/0.008236, allocations: 27.98 kB / 288 MB, free: 1.707 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006652/0.008901, allocations: 1.383 MB / 289.4 MB, free: 244 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.52e-05/0.008956, allocations: 19.83 kB / 289.4 MB, free: 224 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.055e-06/0.008964, allocations: 12 kB / 289.4 MB, free: 212 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.048e-05/0.009035, allocations: 121.7 kB / 289.5 MB, free: 80 kB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.179e-05/0.009057, allocations: 11.98 kB / 289.6 MB, free: 68 kB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.463e-05/0.009071, allocations: 17.47 kB / 289.6 MB, free: 52 kB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-06/0.009072, allocations: 0 / 289.6 MB, free: 52 kB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.974e-06/0.009074, allocations: 8.047 kB / 289.6 MB, free: 44 kB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.009077, allocations: 11.88 kB / 289.6 MB, free: 32 kB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09391/0.103, allocations: 121.2 kB / 289.7 MB, free: 25.16 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/0.103, allocations: 1.828 kB / 289.7 MB, free: 25.16 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.042e-05/0.1031, allocations: 15.41 kB / 289.7 MB, free: 25.16 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.694e-05/0.1032, allocations: 28.06 kB / 289.8 MB, free: 25.15 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.977e-06/0.1032, allocations: 2.688 kB / 289.8 MB, free: 25.15 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005431/0.1037, allocations: 1.361 MB / 291.1 MB, free: 23.9 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.1037, allocations: 2 kB / 291.1 MB, free: 23.9 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001979/0.1039, allocations: 231 kB / 291.3 MB, free: 23.76 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.365e-05/0.1039, allocations: 12.31 kB / 291.4 MB, free: 23.76 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.081e-05/0.1039, allocations: 2.406 kB / 291.4 MB, free: 23.76 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.785e-05/0.104, allocations: 11.36 kB / 291.4 MB, free: 23.76 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.011e-05/0.104, allocations: 15.2 kB / 291.4 MB, free: 23.75 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.572e-06/0.104, allocations: 3.703 kB / 291.4 MB, free: 23.75 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.913e-05/0.1041, allocations: 47.22 kB / 291.4 MB, free: 23.75 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1041, allocations: 1.062 kB / 291.4 MB, free: 23.75 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002458/0.1043, allocations: 69.22 kB / 291.5 MB, free: 23.75 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 6.818e-05/0.1044, allocations: 83.19 kB / 291.6 MB, free: 23.68 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002065/0.1046, allocations: 200.5 kB / 291.8 MB, free: 23.56 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.1046, allocations: 2.219 kB / 291.8 MB, free: 23.56 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 8.68e-05/0.1047, allocations: 157.2 kB / 291.9 MB, free: 23.44 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001553/0.1048, allocations: 28.97 kB / 292 MB, free: 23.44 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006894/0.1055, allocations: 481 kB / 292.4 MB, free: 23.19 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.681e-05/0.1056, allocations: 82.23 kB / 292.5 MB, free: 23.12 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.129e-05/0.1056, allocations: 11.34 kB / 292.5 MB, free: 23.12 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.388e-05/0.1057, allocations: 77.66 kB / 292.6 MB, free: 23.07 MB / 266.7 MB Notification: Performance of SimCode: time 4.81e-07/0.1057, allocations: 4.469 kB / 292.6 MB, free: 23.07 MB / 266.7 MB Notification: Performance of Templates: time 0.004038/0.1097, allocations: 2.165 MB / 294.8 MB, free: 22.93 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.4181164940819144]