Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002016/0.002016, allocations: 101.8 kB / 18.36 MB, free: 3.949 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002157/0.002157, allocations: 186 kB / 21.54 MB, free: 0.7812 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.613/1.613, allocations: 225.6 MB / 250.2 MB, free: 3.152 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo): time 0.06877/0.06877, allocations: 8.235 MB / 313.5 MB, free: 1.734 MB / 238.1 MB " [Timeout remaining time 180] Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSysPro.Batteries.Examples.BatteryDischargeCharge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=36000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge") translateModel(PowerSysPro.Batteries.Examples.BatteryDischargeCharge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=36000,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002098/0.002098, allocations: 67.89 kB / 437.4 MB, free: 9.566 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3401/0.3422, allocations: 54.35 MB / 491.7 MB, free: 27.54 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Batteries.Examples.BatteryDischargeCharge): time 0.003697/0.3459, allocations: 2.427 MB / 494.1 MB, free: 25.64 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.000859/0.3467, allocations: 0.5084 MB / 494.6 MB, free: 25.24 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001158/0.3468, allocations: 2.656 kB / 494.6 MB, free: 25.24 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004342/0.3473, allocations: 95.38 kB / 494.7 MB, free: 25.17 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002071/0.3475, allocations: 85.89 kB / 494.8 MB, free: 25.1 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002861/0.3478, allocations: 85.59 kB / 494.9 MB, free: 25.03 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003771/0.3481, allocations: 278.2 kB / 495.2 MB, free: 24.87 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002531/0.3484, allocations: 78.61 kB / 495.2 MB, free: 24.82 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000182/0.3486, allocations: 128.5 kB / 495.4 MB, free: 24.73 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002699/0.3488, allocations: 140.7 kB / 495.5 MB, free: 24.64 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.257e-05/0.3489, allocations: 27.22 kB / 495.5 MB, free: 24.64 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001695/0.3491, allocations: 77.83 kB / 495.6 MB, free: 24.62 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001756/0.3492, allocations: 109.8 kB / 495.7 MB, free: 24.54 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001431/0.3494, allocations: 154.9 kB / 495.9 MB, free: 24.42 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004652/0.3499, allocations: 405.5 kB / 496.3 MB, free: 24.13 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.139e-06/0.3499, allocations: 0 / 496.3 MB, free: 24.13 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.3499, allocations: 0 / 496.3 MB, free: 24.13 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.475e-05/0.3499, allocations: 1.375 kB / 496.3 MB, free: 24.13 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001753/0.3516, allocations: 0.8133 MB / 497.1 MB, free: 23.47 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.566e-05/0.3517, allocations: 8.844 kB / 497.1 MB, free: 23.47 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.005e-05/0.3518, allocations: 36.23 kB / 497.1 MB, free: 23.45 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004251/0.3522, allocations: 351.4 kB / 497.5 MB, free: 23.13 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.284e-05/0.3522, allocations: 16.33 kB / 497.5 MB, free: 23.12 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.106e-05/0.3523, allocations: 14.66 kB / 497.5 MB, free: 23.12 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004932/0.3528, allocations: 295.1 kB / 497.8 MB, free: 22.91 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.434e-05/0.3528, allocations: 192 / 497.8 MB, free: 22.91 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.989e-05/0.3528, allocations: 10.25 kB / 497.8 MB, free: 22.9 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.695e-06/0.3528, allocations: 4 kB / 497.8 MB, free: 22.9 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000385/0.3532, allocations: 203.1 kB / 498 MB, free: 22.8 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001223/0.3544, allocations: 0.8298 MB / 498.8 MB, free: 22.11 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005686/0.355, allocations: 284.2 kB / 499.1 MB, free: 21.91 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003095/0.3553, allocations: 137.8 kB / 499.2 MB, free: 21.84 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.065e-05/0.3553, allocations: 3.562 kB / 499.2 MB, free: 21.84 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.476e-05/0.3554, allocations: 36.28 kB / 499.3 MB, free: 21.8 MB / 366.1 MB Notification: Performance of pre-optimization done (n=13): time 1.262e-06/0.3554, allocations: 0 / 499.3 MB, free: 21.8 MB / 366.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007084/0.3561, allocations: 287.8 kB / 499.6 MB, free: 21.65 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.994e-05/0.3561, allocations: 211.8 kB / 499.8 MB, free: 21.4 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003899/0.3565, allocations: 369.1 kB / 0.4884 GB, free: 21.17 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.891e-05/0.3565, allocations: 25.7 kB / 0.4884 GB, free: 21.14 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.414e-05/0.3566, allocations: 172.6 kB / 0.4886 GB, free: 20.98 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.797e-05/0.3567, allocations: 56.88 kB / 0.4887 GB, free: 20.93 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.327e-05/0.3568, allocations: 36.02 kB / 0.4887 GB, free: 20.91 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.448e-05/0.3568, allocations: 340.2 kB / 0.489 GB, free: 20.57 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001971/0.357, allocations: 77.86 kB / 0.4891 GB, free: 20.54 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002563/0.3573, allocations: 160.6 kB / 0.4892 GB, free: 20.41 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007703/0.3581, allocations: 234.7 kB / 0.4895 GB, free: 20.29 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.067e-06/0.3581, allocations: 1.281 kB / 0.4895 GB, free: 20.29 MB / 366.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004277/0.3585, allocations: 216 kB / 0.4897 GB, free: 20.18 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.81e-05/0.3585, allocations: 5.75 kB / 0.4897 GB, free: 20.18 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.3585, allocations: 0 / 0.4897 GB, free: 20.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.132e-05/0.3585, allocations: 6.281 kB / 0.4897 GB, free: 20.17 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001531/0.3587, allocations: 33.41 kB / 0.4897 GB, free: 20.16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.316e-06/0.3587, allocations: 5.156 kB / 0.4897 GB, free: 20.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004571/0.3592, allocations: 78.61 kB / 0.4898 GB, free: 20.13 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.715e-05/0.3592, allocations: 9.625 kB / 0.4898 GB, free: 20.12 MB / 366.1 MB Warning: Assuming fixed start value for the following 1 variables: battery.integrator.q:VARIABLE(flow=false start = battery.SOC_start fixed = true ) \"Charge as current integration\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 2 (pulseSeries.on2,pulseSeries.on1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002721/0.3595, allocations: 170.8 kB / 0.49 GB, free: 19.97 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.964e-05/0.3595, allocations: 26.44 kB / 0.49 GB, free: 19.96 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005756/0.3601, allocations: 238.8 kB / 0.4902 GB, free: 19.81 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.3601, allocations: 1.125 kB / 0.4902 GB, free: 19.81 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.3601, allocations: 0 / 0.4902 GB, free: 19.81 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.788e-06/0.3601, allocations: 5.156 kB / 0.4902 GB, free: 19.81 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008736/0.361, allocations: 0.6514 MB / 0.4909 GB, free: 19.26 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.361, allocations: 0 / 0.4909 GB, free: 19.26 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001457/0.3611, allocations: 38.41 kB / 0.4909 GB, free: 19.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.3611, allocations: 1.281 kB / 0.4909 GB, free: 19.25 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.155e-05/0.3611, allocations: 5.109 kB / 0.4909 GB, free: 19.24 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.3612, allocations: 5.062 kB / 0.4909 GB, free: 19.24 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.3612, allocations: 1.219 kB / 0.4909 GB, free: 19.24 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006866/0.3618, allocations: 438.1 kB / 0.4913 GB, free: 18.95 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.48e-05/0.3619, allocations: 116.6 kB / 0.4914 GB, free: 18.83 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.82e-05/0.362, allocations: 2.281 kB / 0.4914 GB, free: 18.83 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004714/0.3624, allocations: 89.78 kB / 0.4915 GB, free: 18.79 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002537/0.3627, allocations: 128.1 kB / 0.4916 GB, free: 18.71 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.156e-05/0.3627, allocations: 5.562 kB / 0.4917 GB, free: 18.71 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002815/0.363, allocations: 276.1 kB / 0.4919 GB, free: 18.54 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.363, allocations: 0 / 0.4919 GB, free: 18.54 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00035/0.3633, allocations: 66.55 kB / 0.492 GB, free: 18.53 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (battery.integrator.q) * Number of discrete variables: 2 (pulseSeries.on1,pulseSeries.on2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008417/0.3642, allocations: 263 kB / 0.4922 GB, free: 18.38 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004918/0.3647, allocations: 195 kB / 0.4924 GB, free: 18.3 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.3647, allocations: 0 / 0.4924 GB, free: 18.3 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002672/0.3649, allocations: 135.9 kB / 0.4925 GB, free: 18.24 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003568/0.3653, allocations: 24.27 kB / 0.4926 GB, free: 18.23 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001643/0.3669, allocations: 0.6815 MB / 0.4932 GB, free: 17.8 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002648/0.3672, allocations: 0.7572 MB / 0.494 GB, free: 17.07 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001622/0.3674, allocations: 43.95 kB / 0.494 GB, free: 17.06 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001202/0.3675, allocations: 27.47 kB / 0.494 GB, free: 17.05 MB / 366.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3675, allocations: 3.938 kB / 0.494 GB, free: 17.04 MB / 366.1 MB Notification: Performance of Templates: time 0.01032/0.3778, allocations: 5.553 MB / 0.4995 GB, free: 14.28 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.makefile [Timeout 660] (rm -f PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe ; mkfifo PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe >> ../files/PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.sim & ./PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Batteries.Examples.BatteryDischargeCharge.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.3610968524590135]