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.001469/0.001469, allocations: 111 kB / 17.8 MB, free: 5.258 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.001454/0.001454, allocations: 183.8 kB / 20.73 MB, free: 2.328 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.33/1.33, allocations: 222.9 MB / 246.4 MB, free: 4.211 MB / 190.1 MB " [Timeout remaining time 179] 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.1477/0.1477, allocations: 8.084 MB / 306.7 MB, free: 3.02 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.001875/0.001875, allocations: 63.91 kB / 423.9 MB, free: 6.52 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.203/0.2049, allocations: 51.53 MB / 475.4 MB, free: 22.01 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.UsingBatteries.OneBatteryOneLineOneLoad): time 0.00369/0.2086, allocations: 3.134 MB / 478.5 MB, free: 19.55 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001518/0.2101, allocations: 1.175 MB / 479.7 MB, free: 18.61 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001522/0.2103, allocations: 5.781 kB / 479.7 MB, free: 18.61 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006891/0.211, allocations: 431.5 kB / 480.1 MB, free: 18.38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003585/0.2114, allocations: 274 kB / 480.4 MB, free: 18.2 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001343/0.2127, allocations: 0.9901 MB / 481.4 MB, free: 17.46 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000445/0.2132, allocations: 0.5138 MB / 481.9 MB, free: 17.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002128/0.2134, allocations: 163.3 kB / 482.1 MB, free: 17.07 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000172/0.2136, allocations: 234.4 kB / 482.3 MB, free: 16.93 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003541/0.2139, allocations: 359.7 kB / 482.7 MB, free: 16.74 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.275e-05/0.214, allocations: 52.59 kB / 482.7 MB, free: 16.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004225/0.2144, allocations: 274.2 kB / 483 MB, free: 16.63 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002109/0.2147, allocations: 351.5 kB / 483.3 MB, free: 16.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00026/0.2149, allocations: 453.8 kB / 483.8 MB, free: 16.07 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009922/0.2159, allocations: 1.335 MB / 485.1 MB, free: 15.17 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.845e-06/0.2159, allocations: 1.094 kB / 485.1 MB, free: 15.17 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.2159, allocations: 0 / 485.1 MB, free: 15.17 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.566e-05/0.216, allocations: 0 / 485.1 MB, free: 15.17 MB / 350.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.002758/0.2187, allocations: 1.592 MB / 486.7 MB, free: 13.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.076e-05/0.2188, allocations: 13.48 kB / 486.7 MB, free: 13.97 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001413/0.2189, allocations: 111.1 kB / 486.8 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008997/0.2198, allocations: 0.88 MB / 487.7 MB, free: 13.28 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.731e-05/0.2199, allocations: 80.09 kB / 487.8 MB, free: 13.21 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.084e-05/0.22, allocations: 26.75 kB / 487.8 MB, free: 13.2 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006402/0.2206, allocations: 455.2 kB / 488.2 MB, free: 12.89 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.234e-05/0.2206, allocations: 0 / 488.2 MB, free: 12.89 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.658e-05/0.2207, allocations: 16.12 kB / 488.3 MB, free: 12.88 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.147e-05/0.2207, allocations: 9.5 kB / 488.3 MB, free: 12.88 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005165/0.2212, allocations: 313.6 kB / 488.6 MB, free: 12.73 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002417/0.2236, allocations: 2.122 MB / 490.7 MB, free: 11.07 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008869/0.2245, allocations: 485.6 kB / 491.2 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003716/0.2249, allocations: 213.7 kB / 491.4 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001053/0.225, allocations: 91.53 kB / 491.5 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.632e-05/0.2251, allocations: 38.2 kB / 491.5 MB, free: 10.51 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.542e-06/0.2251, allocations: 0 / 491.5 MB, free: 10.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.002041/0.2271, allocations: 0.8306 MB / 492.3 MB, free: 10.01 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.56e-05/0.2272, allocations: 239.4 kB / 492.6 MB, free: 9.727 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001628/0.2288, allocations: 1.737 MB / 494.3 MB, free: 8.902 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.59e-05/0.2288, allocations: 32.23 kB / 494.3 MB, free: 8.867 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002601/0.2291, allocations: 446.7 kB / 494.8 MB, free: 8.492 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.941e-05/0.2292, allocations: 101.1 kB / 494.9 MB, free: 8.402 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000101/0.2293, allocations: 67.56 kB / 494.9 MB, free: 8.355 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.654e-05/0.2293, allocations: 320.9 kB / 495.2 MB, free: 8.039 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002787/0.2296, allocations: 151.9 kB / 495.4 MB, free: 7.965 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002953/0.2299, allocations: 256.5 kB / 495.6 MB, free: 7.691 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003118/0.233, allocations: 0.9424 MB / 496.6 MB, free: 6.738 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.233, allocations: 0 / 496.6 MB, free: 6.738 MB / 350.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001223/0.2343, allocations: 0.6105 MB / 497.2 MB, free: 6.117 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.397e-05/0.2343, allocations: 8 kB / 497.2 MB, free: 6.109 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.2343, allocations: 0 / 497.2 MB, free: 6.109 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005901/0.2349, allocations: 148.7 kB / 497.4 MB, free: 5.961 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002635/0.2352, allocations: 75.89 kB / 497.4 MB, free: 5.887 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001768/0.237, allocations: 2.042 MB / 499.5 MB, free: 3.707 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004043/0.2374, allocations: 39.83 kB / 499.5 MB, free: 3.668 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.503e-05/0.2374, allocations: 15.98 kB / 499.5 MB, free: 3.652 MB / 350.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.0003888/0.2378, allocations: 405.6 kB / 499.9 MB, free: 3.246 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001135/0.2379, allocations: 99.34 kB / 0.4883 GB, free: 3.148 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001141/0.2391, allocations: 0.5857 MB / 0.4889 GB, free: 2.551 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.2391, allocations: 11.88 kB / 0.4889 GB, free: 2.539 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.783e-06/0.2391, allocations: 0 / 0.4889 GB, free: 2.539 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.143e-06/0.2391, allocations: 3.984 kB / 0.4889 GB, free: 2.535 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001857/0.241, allocations: 1.467 MB / 0.4903 GB, free: 1.008 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.241, allocations: 3.938 kB / 0.4903 GB, free: 1.004 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002251/0.2412, allocations: 63.92 kB / 0.4904 GB, free: 0.9414 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005314/0.2418, allocations: 144.7 kB / 0.4905 GB, free: 0.7969 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.098e-05/0.2418, allocations: 8 kB / 0.4905 GB, free: 0.7891 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002095/0.2439, allocations: 2.013 MB / 0.4925 GB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.189e-06/0.2439, allocations: 11.95 kB / 0.4925 GB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001721/0.2456, allocations: 0.8304 MB / 0.4933 GB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003165/0.246, allocations: 240.4 kB / 0.4935 GB, free: 13.51 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.213e-05/0.2461, allocations: 12 kB / 0.4936 GB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003669/0.2464, allocations: 35.97 kB / 0.4936 GB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001043/0.2465, allocations: 39.89 kB / 0.4936 GB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.369e-05/0.2466, allocations: 8 kB / 0.4936 GB, free: 13.42 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001697/0.2483, allocations: 1.26 MB / 0.4949 GB, free: 12.15 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.2483, allocations: 0 / 0.4949 GB, free: 12.15 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005811/0.2489, allocations: 159.8 kB / 0.495 GB, free: 11.99 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.0009088/0.2498, allocations: 271.5 kB / 0.4953 GB, free: 11.81 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001199/0.251, allocations: 0.5178 MB / 0.4958 GB, free: 11.28 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.251, allocations: 4.188 kB / 0.4958 GB, free: 11.27 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006835/0.2517, allocations: 338.5 kB / 0.4961 GB, free: 10.93 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005684/0.2523, allocations: 90.86 kB / 0.4962 GB, free: 10.84 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00329/0.2556, allocations: 1.986 MB / 0.4981 GB, free: 8.816 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007382/0.2563, allocations: 1.08 MB / 0.4992 GB, free: 7.711 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001691/0.2565, allocations: 51.44 kB / 0.4992 GB, free: 7.66 MB / 366.1 MB Notification: Performance of SimCode: time 4.71e-07/0.2565, allocations: 0 / 0.4992 GB, free: 7.66 MB / 366.1 MB Notification: Performance of Templates: time 0.02026/0.2768, allocations: 14.94 MB / 0.5138 GB, free: 8.719 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.262426899978891] Failed to read output from testmodel.py, exit status != 0: 0.28372574388049543 0.29618619 0.07780730200000001 Calling exit ...