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.0009724/0.0009724, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0013/0.002273, allocations: 435.8 kB / 10.33 MB, free: 368 kB / 10.45 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.001009/0.001009, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001317/0.002325, allocations: 463.6 kB / 11.68 MB, free: 2.484 MB / 13.93 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.889/0.889, allocations: 177.2 MB / 189.6 MB, free: 5.328 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08585/0.9748, allocations: 53.66 MB / 243.2 MB, free: 15.59 MB / 250.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.01302/0.01302, allocations: 1.322 MB / 245.3 MB, free: 13.57 MB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001976/0.01499, allocations: 0.8466 MB / 246.1 MB, free: 12.71 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.433e-06/1.433e-06, allocations: 0 / 247.4 MB, free: 11.47 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.409e-05/1.552e-05, allocations: 2.312 kB / 247.4 MB, free: 11.46 MB / 250.7 MB Notification: Performance of NFInst.instantiate(BikeTrailer.Examples.ChargeBattery): time 0.006158/0.006174, allocations: 2.7 MB / 250.1 MB, free: 8.75 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009371/0.007111, allocations: 0.658 MB / 250.7 MB, free: 8.086 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001226/0.007233, allocations: 11.94 kB / 250.7 MB, free: 8.074 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001096/0.007343, allocations: 51.5 kB / 250.8 MB, free: 8.023 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001198/0.007463, allocations: 59.36 kB / 250.9 MB, free: 7.965 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001765/0.007639, allocations: 103.8 kB / 251 MB, free: 7.863 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002949/0.007934, allocations: 318.8 kB / 251.3 MB, free: 7.551 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001955/0.00813, allocations: 122.2 kB / 251.4 MB, free: 7.426 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002042/0.008334, allocations: 199.6 kB / 251.6 MB, free: 7.23 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001602/0.008494, allocations: 115.7 kB / 251.7 MB, free: 7.117 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.491e-05/0.008539, allocations: 32 kB / 251.7 MB, free: 7.086 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.198e-05/0.008591, allocations: 36 kB / 251.8 MB, free: 7.051 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.119e-05/0.008642, allocations: 55.81 kB / 251.8 MB, free: 6.996 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.719e-05/0.008729, allocations: 83.81 kB / 251.9 MB, free: 6.914 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002624/0.008992, allocations: 211.2 kB / 252.1 MB, free: 6.707 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.362e-05/0.009005, allocations: 0 / 252.1 MB, free: 6.707 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.12e-07/0.009006, allocations: 0 / 252.1 MB, free: 6.707 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.58e-05/0.009022, allocations: 0 / 252.1 MB, free: 6.707 MB / 250.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.0006496/0.009671, allocations: 0.5389 MB / 252.6 MB, free: 6.145 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.915e-05/0.0097, allocations: 11.98 kB / 252.7 MB, free: 6.133 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.782e-05/0.009758, allocations: 44.84 kB / 252.7 MB, free: 6.09 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002209/0.009979, allocations: 182 kB / 252.9 MB, free: 5.887 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.377e-05/0.01004, allocations: 76.61 kB / 253 MB, free: 5.801 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.824e-05/0.01008, allocations: 32.38 kB / 253 MB, free: 5.77 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002327/0.01031, allocations: 314 kB / 253.3 MB, free: 5.418 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.797e-06/0.01032, allocations: 4.125 kB / 253.3 MB, free: 5.414 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.653e-05/0.01034, allocations: 20.12 kB / 253.3 MB, free: 5.395 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.911e-06/0.01035, allocations: 4 kB / 253.3 MB, free: 5.391 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.587e-05/0.01043, allocations: 76.48 kB / 253.4 MB, free: 5.32 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007839/0.01121, allocations: 0.9982 MB / 254.4 MB, free: 4.262 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001681/0.01138, allocations: 90.52 kB / 254.5 MB, free: 4.164 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.635e-05/0.01141, allocations: 28.84 kB / 254.5 MB, free: 4.133 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.078e-05/0.01142, allocations: 0 / 254.5 MB, free: 4.133 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.742e-05/0.01144, allocations: 34.75 kB / 254.5 MB, free: 4.09 MB / 250.7 MB Notification: Performance of pre-optimization done (n=10): time 8.72e-07/0.01144, allocations: 0 / 254.5 MB, free: 4.09 MB / 250.7 MB Notification: Performance of matching and sorting (n=10): time 0.000313/0.01175, allocations: 166.2 kB / 254.7 MB, free: 3.918 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.072e-05/0.01177, allocations: 51.41 kB / 254.8 MB, free: 3.855 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001054/0.01188, allocations: 191.8 kB / 254.9 MB, free: 3.656 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.267e-05/0.01189, allocations: 25.7 kB / 255 MB, free: 3.625 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.552e-05/0.01197, allocations: 176 kB / 255.1 MB, free: 3.449 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.422e-05/0.01199, allocations: 39.67 kB / 255.2 MB, free: 3.41 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.699e-05/0.01204, allocations: 49.64 kB / 255.2 MB, free: 3.355 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 6.876e-05/0.01211, allocations: 326.8 kB / 255.5 MB, free: 3.027 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.374e-05/0.01216, allocations: 15.98 kB / 255.6 MB, free: 3.012 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.93e-05/0.01221, allocations: 84.88 kB / 255.6 MB, free: 2.898 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.394e-05/0.01229, allocations: 116.4 kB / 255.8 MB, free: 2.754 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.01229, allocations: 0 / 255.8 MB, free: 2.754 MB / 250.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001859/0.01248, allocations: 166.1 kB / 255.9 MB, free: 2.582 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.155e-05/0.01249, allocations: 8 kB / 255.9 MB, free: 2.574 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.0125, allocations: 4 kB / 255.9 MB, free: 2.57 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001039/0.0126, allocations: 33.12 kB / 256 MB, free: 2.535 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.092e-05/0.01266, allocations: 31.92 kB / 256 MB, free: 2.504 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007694/0.01343, allocations: 1.375 MB / 257.4 MB, free: 1.047 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.445e-05/0.0135, allocations: 15.84 kB / 257.4 MB, free: 1.031 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.666e-06/0.0135, allocations: 15.98 kB / 257.4 MB, free: 1.016 MB / 250.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.112e-05/0.01358, allocations: 125.8 kB / 257.5 MB, free: 0.8828 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.146e-05/0.0136, allocations: 11.98 kB / 257.5 MB, free: 0.8711 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.417e-05/0.01361, allocations: 17.47 kB / 257.6 MB, free: 0.8594 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-06/0.01361, allocations: 0 / 257.6 MB, free: 0.8594 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.793e-06/0.01361, allocations: 0 / 257.6 MB, free: 0.8594 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.01362, allocations: 4 kB / 257.6 MB, free: 0.8555 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001276/0.01375, allocations: 129.8 kB / 257.7 MB, free: 0.7109 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.01375, allocations: 0 / 257.7 MB, free: 0.7109 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.23e-05/0.01379, allocations: 15.94 kB / 257.7 MB, free: 0.6953 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.185e-05/0.0138, allocations: 15.84 kB / 257.7 MB, free: 0.6797 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.632e-05/0.01387, allocations: 36.83 kB / 257.7 MB, free: 0.6406 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.283e-06/0.01387, allocations: 4 kB / 257.8 MB, free: 0.6367 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000713/0.01459, allocations: 1.371 MB / 259.1 MB, free: 15.18 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.01459, allocations: 0 / 259.1 MB, free: 15.18 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001904/0.01478, allocations: 236.1 kB / 259.4 MB, free: 14.93 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.156e-05/0.01479, allocations: 4 kB / 259.4 MB, free: 14.92 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.476e-05/0.01485, allocations: 11.98 kB / 259.4 MB, free: 14.91 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.009e-05/0.01488, allocations: 11.98 kB / 259.4 MB, free: 14.9 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.549e-06/0.01488, allocations: 0 / 259.4 MB, free: 14.9 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.65e-05/0.01492, allocations: 53.84 kB / 259.4 MB, free: 14.84 MB / 266.7 MB Notification: Performance of sort global known variables: time 3e-08/0.01492, allocations: 0 / 259.4 MB, free: 14.84 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002181/0.01513, allocations: 63.84 kB / 259.5 MB, free: 14.78 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 5.974e-05/0.01519, allocations: 80.45 kB / 259.6 MB, free: 14.7 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000206/0.0154, allocations: 198.4 kB / 259.8 MB, free: 14.49 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.292e-06/0.01541, allocations: 4 kB / 259.8 MB, free: 14.48 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000103/0.01551, allocations: 159.4 kB / 259.9 MB, free: 14.31 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001614/0.01567, allocations: 47.41 kB / 260 MB, free: 14.27 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00155/0.01722, allocations: 457.9 kB / 260.4 MB, free: 13.79 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.178e-05/0.01727, allocations: 87.7 kB / 260.5 MB, free: 13.69 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.912e-05/0.01731, allocations: 13.48 kB / 260.5 MB, free: 13.68 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.164e-05/0.01738, allocations: 75.38 kB / 260.6 MB, free: 13.6 MB / 266.7 MB Notification: Performance of SimCode: time 6.42e-07/0.01738, allocations: 0 / 260.6 MB, free: 13.6 MB / 266.7 MB Notification: Performance of Templates: time 0.004088/0.02147, allocations: 2.233 MB / 262.8 MB, free: 11.4 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.4554377999156713]