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.0008683/0.0008683, allocations: 73.09 kB / 20.65 MB, free: 3.844 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.0009019/0.0009019, allocations: 169 kB / 24.06 MB, free: 452 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.9401/0.9401, allocations: 177.1 MB / 204.5 MB, free: 5.496 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.009402/0.009402, allocations: 1.318 MB / 262.4 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.031e-06/1.031e-06, allocations: 0 / 331.7 MB, free: 3.715 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.6e-05/1.703e-05, allocations: 4.844 kB / 331.7 MB, free: 3.711 MB / 298.7 MB Notification: Performance of NFInst.instantiate(BikeTrailer.Examples.ChargeBattery): time 0.003952/0.003969, allocations: 2.625 MB / 334.3 MB, free: 1.062 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001216/0.005185, allocations: 0.6349 MB / 334.9 MB, free: 432 kB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001656/0.00535, allocations: 7.938 kB / 334.9 MB, free: 424 kB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001773/0.005527, allocations: 47.52 kB / 335 MB, free: 376 kB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000161/0.005688, allocations: 67.36 kB / 335.1 MB, free: 308 kB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002557/0.005944, allocations: 103.8 kB / 335.2 MB, free: 204 kB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003694/0.006313, allocations: 326.7 kB / 335.5 MB, free: 15.88 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002305/0.006544, allocations: 115.6 kB / 335.6 MB, free: 15.77 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002241/0.006768, allocations: 187.6 kB / 335.8 MB, free: 15.58 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001925/0.006961, allocations: 107.7 kB / 335.9 MB, free: 15.48 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 5.722e-05/0.007018, allocations: 36 kB / 335.9 MB, free: 15.44 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.644e-05/0.007064, allocations: 32 kB / 335.9 MB, free: 15.41 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 5.806e-05/0.007122, allocations: 67.77 kB / 336 MB, free: 15.34 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 9.534e-05/0.007218, allocations: 103.7 kB / 336.1 MB, free: 15.24 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002895/0.007507, allocations: 231.2 kB / 336.3 MB, free: 15.02 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.064e-06/0.007509, allocations: 0 / 336.3 MB, free: 15.02 MB / 314.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.00751, allocations: 0 / 336.3 MB, free: 15.02 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.959e-06/0.007515, allocations: 0 / 336.3 MB, free: 15.02 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.0007728/0.008288, allocations: 0.6053 MB / 336.9 MB, free: 14.37 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.434e-05/0.008322, allocations: 8.031 kB / 337 MB, free: 14.36 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.136e-05/0.008414, allocations: 60.7 kB / 337 MB, free: 14.3 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002586/0.008672, allocations: 212.2 kB / 337.2 MB, free: 14.07 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.402e-05/0.008746, allocations: 80.61 kB / 337.3 MB, free: 13.98 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.519e-05/0.008831, allocations: 28.38 kB / 337.3 MB, free: 13.95 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000475/0.009307, allocations: 328.1 kB / 337.6 MB, free: 13.59 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.517e-05/0.009322, allocations: 192 / 337.6 MB, free: 13.59 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.219e-05/0.009354, allocations: 16.12 kB / 337.7 MB, free: 13.57 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.258e-05/0.009366, allocations: 8 kB / 337.7 MB, free: 13.56 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001709/0.009537, allocations: 88.39 kB / 337.8 MB, free: 13.48 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001063/0.0106, allocations: 1.344 MB / 339.1 MB, free: 12.06 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002058/0.01081, allocations: 103.1 kB / 339.2 MB, free: 11.95 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.892e-05/0.01084, allocations: 27.67 kB / 339.2 MB, free: 11.91 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.097e-05/0.01085, allocations: 4 kB / 339.2 MB, free: 11.91 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.025e-05/0.01087, allocations: 37.52 kB / 339.3 MB, free: 11.86 MB / 314.7 MB Notification: Performance of pre-optimization done (n=10): time 1.082e-06/0.01087, allocations: 0 / 339.3 MB, free: 11.86 MB / 314.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003511/0.01122, allocations: 185.1 kB / 339.5 MB, free: 11.67 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.092e-05/0.01124, allocations: 51.41 kB / 339.5 MB, free: 11.61 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000121/0.01136, allocations: 247.5 kB / 339.7 MB, free: 11.35 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.606e-05/0.01138, allocations: 33.7 kB / 339.8 MB, free: 11.31 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.847e-05/0.01147, allocations: 234.7 kB / 340 MB, free: 11.08 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.233e-05/0.01149, allocations: 39.67 kB / 340 MB, free: 11.04 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.688e-05/0.01153, allocations: 51.3 kB / 340.1 MB, free: 10.98 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001107/0.01165, allocations: 0.4962 MB / 340.6 MB, free: 10.47 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.914e-05/0.01167, allocations: 15.98 kB / 340.6 MB, free: 10.46 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.718e-05/0.01174, allocations: 123.7 kB / 340.7 MB, free: 10.3 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001033/0.01184, allocations: 148.6 kB / 340.9 MB, free: 10.11 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.01185, allocations: 0 / 340.9 MB, free: 10.11 MB / 314.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002294/0.01208, allocations: 185 kB / 341.1 MB, free: 9.918 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.42e-05/0.01209, allocations: 4 kB / 341.1 MB, free: 9.914 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/0.0121, allocations: 4 kB / 341.1 MB, free: 9.91 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001075/0.0122, allocations: 39.94 kB / 341.1 MB, free: 9.867 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.859e-05/0.01226, allocations: 31.92 kB / 341.1 MB, free: 9.836 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008638/0.01313, allocations: 2.009 MB / 343.1 MB, free: 7.715 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.654e-05/0.01318, allocations: 19.88 kB / 343.2 MB, free: 7.695 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.566e-06/0.01319, allocations: 8 kB / 343.2 MB, free: 7.688 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 (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 8.605e-05/0.01328, allocations: 184.4 kB / 343.3 MB, free: 7.496 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.667e-05/0.0133, allocations: 15.91 kB / 343.4 MB, free: 7.48 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.756e-05/0.01332, allocations: 21.45 kB / 343.4 MB, free: 7.461 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.72e-07/0.01332, allocations: 0 / 343.4 MB, free: 7.461 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.42e-07/0.01332, allocations: 3.938 kB / 343.4 MB, free: 7.457 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.01333, allocations: 0 / 343.4 MB, free: 7.457 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00014/0.01347, allocations: 165.1 kB / 343.5 MB, free: 7.27 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.01347, allocations: 0 / 343.5 MB, free: 7.27 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.203e-05/0.01351, allocations: 15.98 kB / 343.6 MB, free: 7.254 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.507e-05/0.01357, allocations: 31.77 kB / 343.6 MB, free: 7.219 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.094e-05/0.01359, allocations: 11.98 kB / 343.6 MB, free: 7.207 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007627/0.01435, allocations: 2.012 MB / 345.6 MB, free: 5.082 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.01435, allocations: 3.938 kB / 345.6 MB, free: 5.078 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002222/0.01457, allocations: 299.3 kB / 345.9 MB, free: 4.762 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.103e-05/0.01459, allocations: 23.83 kB / 345.9 MB, free: 4.738 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.083e-05/0.0146, allocations: 0 / 345.9 MB, free: 4.738 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.884e-05/0.01466, allocations: 12 kB / 345.9 MB, free: 4.727 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.192e-05/0.0147, allocations: 11.97 kB / 346 MB, free: 4.715 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.19e-06/0.0147, allocations: 0 / 346 MB, free: 4.715 MB / 314.7 MB Notification: Performance of sorting global known variables: time 6.044e-05/0.01476, allocations: 163.1 kB / 346.1 MB, free: 4.555 MB / 314.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01476, allocations: 0 / 346.1 MB, free: 4.555 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002332/0.01499, allocations: 63.78 kB / 346.2 MB, free: 4.492 MB / 314.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 7.1e-05/0.01507, allocations: 99.27 kB / 346.3 MB, free: 4.387 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002353/0.0153, allocations: 264.4 kB / 346.5 MB, free: 4.109 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.0153, allocations: 4 kB / 346.5 MB, free: 4.105 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001217/0.01542, allocations: 214 kB / 346.8 MB, free: 3.875 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002077/0.01563, allocations: 34.89 kB / 346.8 MB, free: 3.844 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007296/0.01636, allocations: 0.4922 MB / 347.3 MB, free: 3.312 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.906e-05/0.01644, allocations: 141.8 kB / 347.4 MB, free: 3.156 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.788e-05/0.01652, allocations: 94.19 kB / 347.5 MB, free: 3.062 MB / 314.7 MB Notification: Performance of SimCode: time 6.01e-07/0.01652, allocations: 0 / 347.5 MB, free: 3.062 MB / 314.7 MB Notification: Performance of Templates: time 0.003241/0.01976, allocations: 3.687 MB / 351.2 MB, free: 15.38 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: 3.536281683947891]