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.002202/0.002202, allocations: 105.5 kB / 18.95 MB, free: 1.176 MB / 13.93 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.00253/0.00253, allocations: 207.2 kB / 22.25 MB, free: 3.57 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 1.775/1.775, allocations: 230.6 MB / 256 MB, free: 9.605 MB / 202.7 MB " [Timeout remaining time 178] 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.03058/0.03058, allocations: 1.754 MB / 314.2 MB, free: 180 kB / 234.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: BikeTrailer requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003744/0.003744, allocations: 77.16 kB / 437.3 MB, free: 46.01 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09791/0.1017, allocations: 53.8 MB / 491.1 MB, free: 9.777 MB / 346.7 MB Notification: Performance of NFInst.instantiate(BikeTrailer.Examples.ChargeBattery): time 0.00518/0.1068, allocations: 2.509 MB / 493.6 MB, free: 7.258 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001341/0.1082, allocations: 0.6272 MB / 494.3 MB, free: 6.625 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001689/0.1083, allocations: 7.938 kB / 494.3 MB, free: 6.617 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002073/0.1086, allocations: 39.58 kB / 494.3 MB, free: 6.578 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001662/0.1087, allocations: 71.36 kB / 494.4 MB, free: 6.508 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002847/0.109, allocations: 95.89 kB / 494.5 MB, free: 6.414 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004146/0.1094, allocations: 302.9 kB / 494.8 MB, free: 6.117 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002759/0.1097, allocations: 119.5 kB / 494.9 MB, free: 6 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001719/0.1099, allocations: 127.5 kB / 495 MB, free: 5.875 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002243/0.1101, allocations: 111.4 kB / 495.1 MB, free: 5.766 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 5.853e-05/0.1102, allocations: 36 kB / 495.2 MB, free: 5.73 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.612e-05/0.1102, allocations: 32 kB / 495.2 MB, free: 5.699 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 8.289e-05/0.1103, allocations: 67.78 kB / 495.3 MB, free: 5.633 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001595/0.1105, allocations: 127.4 kB / 495.4 MB, free: 5.508 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005485/0.111, allocations: 370.6 kB / 495.7 MB, free: 5.145 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.107e-06/0.111, allocations: 0 / 495.7 MB, free: 5.145 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.993e-06/0.111, allocations: 4 kB / 495.7 MB, free: 5.141 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.904e-06/0.111, allocations: 0 / 495.7 MB, free: 5.141 MB / 346.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.001157/0.1122, allocations: 0.5016 MB / 496.2 MB, free: 4.605 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.912e-05/0.1122, allocations: 8.031 kB / 496.3 MB, free: 4.598 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001129/0.1123, allocations: 40.7 kB / 496.3 MB, free: 4.559 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004683/0.1128, allocations: 210.1 kB / 496.5 MB, free: 4.328 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000115/0.1129, allocations: 72.62 kB / 496.6 MB, free: 4.246 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.268e-05/0.113, allocations: 28.38 kB / 496.6 MB, free: 4.219 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007823/0.1138, allocations: 396.8 kB / 497 MB, free: 3.797 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.646e-05/0.1138, allocations: 0 / 497 MB, free: 3.797 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.031e-05/0.1138, allocations: 12 kB / 497 MB, free: 3.785 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.82e-05/0.1138, allocations: 8 kB / 497 MB, free: 3.777 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004995/0.1143, allocations: 182.5 kB / 497.2 MB, free: 3.594 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002322/0.1167, allocations: 1.153 MB / 498.3 MB, free: 2.367 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006634/0.1173, allocations: 154.5 kB / 498.5 MB, free: 2.207 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001413/0.1175, allocations: 44.84 kB / 498.5 MB, free: 2.16 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.153e-05/0.1175, allocations: 0 / 498.5 MB, free: 2.16 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.428e-05/0.1176, allocations: 38.5 kB / 498.6 MB, free: 2.113 MB / 346.7 MB Notification: Performance of pre-optimization done (n=10): time 2.194e-06/0.1176, allocations: 0 / 498.6 MB, free: 2.113 MB / 346.7 MB Notification: Performance of matching and sorting (n=10): time 0.001158/0.1187, allocations: 266.3 kB / 498.8 MB, free: 1.844 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.235e-05/0.1188, allocations: 51.41 kB / 498.9 MB, free: 1.781 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002928/0.1191, allocations: 202.2 kB / 499.1 MB, free: 1.574 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.977e-05/0.1191, allocations: 25.7 kB / 499.1 MB, free: 1.543 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004939/0.1196, allocations: 188 kB / 499.3 MB, free: 1.355 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.076e-05/0.1196, allocations: 39.67 kB / 499.3 MB, free: 1.316 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.326e-05/0.1197, allocations: 37.7 kB / 499.4 MB, free: 1.273 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002511/0.12, allocations: 330.8 kB / 499.7 MB, free: 0.9414 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001331/0.1201, allocations: 47.97 kB / 499.7 MB, free: 0.8945 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001944/0.1203, allocations: 110.4 kB / 499.8 MB, free: 0.7578 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000366/0.1207, allocations: 168.4 kB / 0.4883 GB, free: 0.5625 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.173e-06/0.1207, allocations: 4 kB / 0.4883 GB, free: 0.5586 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0007598/0.1215, allocations: 262 kB / 0.4885 GB, free: 300 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.82e-05/0.1215, allocations: 12.59 kB / 0.4885 GB, free: 288 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.001e-05/0.1215, allocations: 4 kB / 0.4886 GB, free: 284 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003455/0.1219, allocations: 56.75 kB / 0.4886 GB, free: 224 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001325/0.122, allocations: 20 kB / 0.4886 GB, free: 204 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002238/0.1242, allocations: 1.551 MB / 0.4901 GB, free: 14.55 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001572/0.1244, allocations: 19.89 kB / 0.4902 GB, free: 14.53 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.873e-05/0.1244, allocations: 7.938 kB / 0.4902 GB, free: 14.52 MB / 362.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.0002501/0.1247, allocations: 149.8 kB / 0.4903 GB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.832e-05/0.1247, allocations: 15.91 kB / 0.4903 GB, free: 14.35 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.765e-05/0.1248, allocations: 13.41 kB / 0.4903 GB, free: 14.33 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.1248, allocations: 7.938 kB / 0.4903 GB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.495e-06/0.1248, allocations: 96 / 0.4903 GB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.1248, allocations: 4 kB / 0.4903 GB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003681/0.1251, allocations: 197.2 kB / 0.4905 GB, free: 14.1 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.275e-06/0.1251, allocations: 0 / 0.4905 GB, free: 14.1 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.65e-05/0.1252, allocations: 11.94 kB / 0.4905 GB, free: 14.09 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001934/0.1254, allocations: 44.83 kB / 0.4906 GB, free: 14.04 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.113e-05/0.1254, allocations: 7.984 kB / 0.4906 GB, free: 14.03 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002015/0.1275, allocations: 1.528 MB / 0.4921 GB, free: 12.4 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.1275, allocations: 0 / 0.4921 GB, free: 12.4 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007736/0.1282, allocations: 348.2 kB / 0.4924 GB, free: 12.04 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.536e-05/0.1283, allocations: 19.88 kB / 0.4924 GB, free: 12.02 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.616e-05/0.1283, allocations: 4 kB / 0.4924 GB, free: 12.02 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001458/0.1284, allocations: 15.92 kB / 0.4925 GB, free: 12 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.481e-05/0.1285, allocations: 3.984 kB / 0.4925 GB, free: 12 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.51e-05/0.1285, allocations: 8 kB / 0.4925 GB, free: 11.99 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001609/0.1287, allocations: 135.2 kB / 0.4926 GB, free: 11.86 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1287, allocations: 4.062 kB / 0.4926 GB, free: 11.86 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000492/0.1292, allocations: 63.8 kB / 0.4927 GB, free: 11.79 MB / 362.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 0.0001733/0.1294, allocations: 103.2 kB / 0.4928 GB, free: 11.68 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006653/0.13, allocations: 247 kB / 0.493 GB, free: 11.43 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.13, allocations: 0 / 0.493 GB, free: 11.43 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003543/0.1304, allocations: 182.8 kB / 0.4932 GB, free: 11.24 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003902/0.1308, allocations: 29.98 kB / 0.4932 GB, free: 11.21 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001296/0.1321, allocations: 0.4982 MB / 0.4937 GB, free: 10.69 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00022/0.1323, allocations: 137.8 kB / 0.4938 GB, free: 10.53 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.704e-05/0.1324, allocations: 13.42 kB / 0.4938 GB, free: 10.52 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.414e-05/0.1324, allocations: 15.44 kB / 0.4938 GB, free: 10.5 MB / 362.7 MB Notification: Performance of SimCode: time 6.52e-07/0.1324, allocations: 0 / 0.4938 GB, free: 10.5 MB / 362.7 MB Notification: Performance of Templates: time 0.00716/0.1396, allocations: 2.251 MB / 0.496 GB, free: 8.281 MB / 362.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: 5.798371633980423]