Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.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.001608/0.001608, allocations: 110.8 kB / 17.84 MB, free: 5.242 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.00176/0.00176, allocations: 187.7 kB / 20.79 MB, free: 2.305 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.55/1.55, allocations: 225.6 MB / 249.2 MB, free: 3.621 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05289/0.05289, allocations: 8.234 MB / 312.3 MB, free: 2.094 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-master/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.Examples.UsingBatteries.OneBatteryOneLineOneLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad") translateModel(PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001909/0.001909, allocations: 67.89 kB / 435.1 MB, free: 11.29 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2304/0.2323, allocations: 54.36 MB / 489.5 MB, free: 27.63 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad): time 0.003954/0.2363, allocations: 3.15 MB / 492.7 MB, free: 25.17 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00166/0.238, allocations: 1.183 MB / 493.8 MB, free: 24.23 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001662/0.2381, allocations: 5.375 kB / 493.8 MB, free: 24.23 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007779/0.2389, allocations: 442 kB / 494.3 MB, free: 23.99 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004131/0.2393, allocations: 274.9 kB / 494.5 MB, free: 23.81 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001506/0.2408, allocations: 0.9984 MB / 495.5 MB, free: 23.07 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005622/0.2414, allocations: 0.5097 MB / 496 MB, free: 22.77 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002093/0.2416, allocations: 110.7 kB / 496.2 MB, free: 22.69 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000188/0.2418, allocations: 239.1 kB / 496.4 MB, free: 22.55 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004375/0.2422, allocations: 379 kB / 496.8 MB, free: 22.35 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.975e-05/0.2423, allocations: 49.38 kB / 496.8 MB, free: 22.35 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004647/0.2428, allocations: 277.5 kB / 497.1 MB, free: 22.24 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002324/0.243, allocations: 355.8 kB / 497.4 MB, free: 22.03 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002977/0.2433, allocations: 449.6 kB / 497.9 MB, free: 21.68 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001125/0.2444, allocations: 1.335 MB / 499.2 MB, free: 20.78 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.2444, allocations: 0 / 499.2 MB, free: 20.78 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.2444, allocations: 1.156 kB / 499.2 MB, free: 20.78 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.204e-05/0.2444, allocations: 0 / 499.2 MB, free: 20.78 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.003279/0.2477, allocations: 1.595 MB / 0.4891 GB, free: 19.58 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.047e-05/0.2477, allocations: 14.11 kB / 0.4891 GB, free: 19.58 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001945/0.2479, allocations: 110.7 kB / 0.4892 GB, free: 19.52 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001076/0.249, allocations: 0.8737 MB / 0.49 GB, free: 18.89 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.394e-05/0.2491, allocations: 86.56 kB / 0.4901 GB, free: 18.81 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.915e-05/0.2492, allocations: 27.56 kB / 0.4901 GB, free: 18.8 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007599/0.2499, allocations: 454.5 kB / 0.4906 GB, free: 18.5 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.35e-05/0.2499, allocations: 3.938 kB / 0.4906 GB, free: 18.5 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.26e-05/0.25, allocations: 12.19 kB / 0.4906 GB, free: 18.49 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.237e-06/0.25, allocations: 6.344 kB / 0.4906 GB, free: 18.49 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005944/0.2506, allocations: 316.9 kB / 0.4909 GB, free: 18.33 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002918/0.2535, allocations: 2.13 MB / 0.493 GB, free: 16.67 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00097/0.2545, allocations: 451.2 kB / 0.4934 GB, free: 16.38 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004133/0.2549, allocations: 192.7 kB / 0.4936 GB, free: 16.29 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001289/0.255, allocations: 92.02 kB / 0.4937 GB, free: 16.18 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.634e-05/0.255, allocations: 37.08 kB / 0.4937 GB, free: 16.14 MB / 366.1 MB Notification: Performance of pre-optimization done (n=28): time 2.335e-06/0.255, allocations: 0 / 0.4937 GB, free: 16.14 MB / 366.1 MB Notification: Performance of matching and sorting (n=28): time 0.002401/0.2574, allocations: 0.8301 MB / 0.4945 GB, free: 15.64 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.052e-05/0.2575, allocations: 239 kB / 0.4948 GB, free: 15.36 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002201/0.2597, allocations: 1.737 MB / 0.4965 GB, free: 14.53 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.164e-05/0.2598, allocations: 36.64 kB / 0.4965 GB, free: 14.49 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003353/0.2601, allocations: 438.2 kB / 0.4969 GB, free: 14.12 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.624e-05/0.2602, allocations: 102.1 kB / 0.497 GB, free: 14.04 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001346/0.2603, allocations: 71.41 kB / 0.4971 GB, free: 13.98 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.669e-05/0.2604, allocations: 320.6 kB / 0.4974 GB, free: 13.67 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003523/0.2607, allocations: 152.3 kB / 0.4975 GB, free: 13.59 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003922/0.2611, allocations: 253 kB / 0.4978 GB, free: 13.41 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003546/0.2647, allocations: 0.9418 MB / 0.4987 GB, free: 12.92 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.2647, allocations: 1.375 kB / 0.4987 GB, free: 12.92 MB / 366.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001476/0.2662, allocations: 0.6043 MB / 0.4993 GB, free: 12.57 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.924e-05/0.2662, allocations: 5.031 kB / 0.4993 GB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.2662, allocations: 1.406 kB / 0.4993 GB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006875/0.2669, allocations: 147 kB / 0.4994 GB, free: 12.49 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003212/0.2672, allocations: 73.58 kB / 0.4995 GB, free: 12.47 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00227/0.2695, allocations: 2.041 MB / 0.5015 GB, free: 10.62 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006192/0.2701, allocations: 42.83 kB / 0.5015 GB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.041e-05/0.2701, allocations: 16.05 kB / 0.5015 GB, free: 10.59 MB / 366.1 MB Warning: Assuming fixed start value for the following 1 variables: bat.battery.integrator.q:VARIABLE(flow=false start = bat.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: 4 * Number of states: 0 () * Number of discrete variables: 1 (charging.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 32 * 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 {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0005794/0.2707, allocations: 405.4 kB / 0.5019 GB, free: 10.33 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001827/0.2709, allocations: 99.88 kB / 0.502 GB, free: 10.28 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001344/0.2722, allocations: 0.5854 MB / 0.5026 GB, free: 9.934 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.571e-06/0.2722, allocations: 11.81 kB / 0.5026 GB, free: 9.926 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.593e-06/0.2722, allocations: 0 / 0.5026 GB, free: 9.926 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.002e-06/0.2722, allocations: 9.234 kB / 0.5026 GB, free: 9.918 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00222/0.2744, allocations: 1.462 MB / 0.504 GB, free: 8.871 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.2745, allocations: 0 / 0.504 GB, free: 8.871 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002751/0.2747, allocations: 58.61 kB / 0.5041 GB, free: 8.855 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006208/0.2753, allocations: 146.3 kB / 0.5042 GB, free: 8.773 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.465e-05/0.2754, allocations: 6.719 kB / 0.5042 GB, free: 8.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001758/0.2771, allocations: 2.017 MB / 0.5062 GB, free: 6.73 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.195e-06/0.2771, allocations: 3.938 kB / 0.5062 GB, free: 6.727 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001652/0.2788, allocations: 0.8265 MB / 0.507 GB, free: 5.879 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003207/0.2791, allocations: 240.3 kB / 0.5073 GB, free: 5.625 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.962e-05/0.2792, allocations: 11.94 kB / 0.5073 GB, free: 5.613 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003773/0.2796, allocations: 43.89 kB / 0.5073 GB, free: 5.57 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.237e-05/0.2797, allocations: 27.91 kB / 0.5073 GB, free: 5.543 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.111e-05/0.2797, allocations: 16.06 kB / 0.5073 GB, free: 5.527 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001358/0.2811, allocations: 1.26 MB / 0.5086 GB, free: 4.258 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2811, allocations: 0 / 0.5086 GB, free: 4.258 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005744/0.2816, allocations: 159.8 kB / 0.5087 GB, free: 4.102 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (bat.battery.integrator.q) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 24 * 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 {(2,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000873/0.2825, allocations: 271.4 kB / 0.509 GB, free: 3.918 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001063/0.2836, allocations: 0.4983 MB / 0.5095 GB, free: 3.406 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.2836, allocations: 0 / 0.5095 GB, free: 3.406 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005861/0.2842, allocations: 334.8 kB / 0.5098 GB, free: 3.066 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005772/0.2847, allocations: 82.3 kB / 0.5099 GB, free: 2.988 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002724/0.2875, allocations: 1.986 MB / 0.5118 GB, free: 0.957 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000495/0.2879, allocations: 1.076 MB / 0.5129 GB, free: 15.86 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002096/0.2882, allocations: 59.42 kB / 0.5129 GB, free: 15.8 MB / 382.1 MB Notification: Performance of SimCode: time 6.91e-07/0.2882, allocations: 0 / 0.5129 GB, free: 15.8 MB / 382.1 MB Notification: Performance of Templates: time 0.02281/0.311, allocations: 14.95 MB / 0.5275 GB, free: 0.8438 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.makefile [Timeout 660] (rm -f PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.sim & ./PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad.pipe 2>&1) [Timeout 480] [Calling os._exit(0), Time elapsed: 7.712484772084281] Failed to read output from testmodel.py, exit status != 0: 0.31900460505858064 0.331757608 0.08453363300000001 Calling exit ...