Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.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.001214/0.001214, allocations: 111 kB / 17.8 MB, free: 5.273 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.001226/0.001226, allocations: 183.8 kB / 20.74 MB, free: 2.34 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.312/1.312, allocations: 222.9 MB / 246.4 MB, free: 4.328 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.1531/0.1531, allocations: 8.092 MB / 306.7 MB, free: 2.652 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.MixingOneSourceOneBatteryOneDieselOneLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad") translateModel(PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001862/0.001862, allocations: 63.89 kB / 423.9 MB, free: 6.422 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2158/0.2177, allocations: 51.53 MB / 475.4 MB, free: 22.16 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad): time 0.004409/0.2221, allocations: 4.605 MB / 480 MB, free: 18.54 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002067/0.2242, allocations: 1.75 MB / 481.8 MB, free: 17.13 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002176/0.2244, allocations: 19.31 kB / 481.8 MB, free: 17.12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007553/0.2252, allocations: 495.5 kB / 482.3 MB, free: 16.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005465/0.2257, allocations: 394.9 kB / 482.6 MB, free: 16.56 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo:34:7-34:67:writable] Warning: In relation diesel.rampTime == 0.0, == on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.001502/0.2273, allocations: 1.087 MB / 483.7 MB, free: 15.74 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006987/0.228, allocations: 0.83 MB / 484.6 MB, free: 15.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003804/0.2284, allocations: 328.4 kB / 484.9 MB, free: 15.06 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002972/0.2287, allocations: 385.1 kB / 485.3 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000573/0.2292, allocations: 0.5799 MB / 485.8 MB, free: 14.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00012/0.2294, allocations: 79.81 kB / 485.9 MB, free: 14.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005376/0.2299, allocations: 301.6 kB / 486.2 MB, free: 14.4 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002961/0.2302, allocations: 429.2 kB / 486.6 MB, free: 14.13 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003953/0.2306, allocations: 0.608 MB / 487.2 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001378/0.232, allocations: 1.66 MB / 488.9 MB, free: 12.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.698e-06/0.232, allocations: 1.656 kB / 488.9 MB, free: 12.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.232, allocations: 0 / 488.9 MB, free: 12.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.278e-05/0.232, allocations: 0 / 488.9 MB, free: 12.52 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: 153 * Number of variables: 153 Notification: Performance of Generate backend data structure: time 0.003649/0.2357, allocations: 1.946 MB / 490.8 MB, free: 11.1 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.279e-05/0.2357, allocations: 12.95 kB / 490.9 MB, free: 11.1 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002071/0.2359, allocations: 162.7 kB / 491 MB, free: 11.01 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001092/0.237, allocations: 0.9636 MB / 492 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001344/0.2372, allocations: 230.1 kB / 492.2 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.973e-05/0.2373, allocations: 60.41 kB / 492.3 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001218/0.2385, allocations: 0.8353 MB / 493.1 MB, free: 9.539 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.995e-05/0.2385, allocations: 0 / 493.1 MB, free: 9.539 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.468e-05/0.2386, allocations: 27.34 kB / 493.1 MB, free: 9.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.867e-05/0.2386, allocations: 13.97 kB / 493.1 MB, free: 9.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009963/0.2396, allocations: 0.6741 MB / 493.8 MB, free: 9.18 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003751/0.2434, allocations: 3.56 MB / 497.4 MB, free: 6.059 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001657/0.2451, allocations: 1.421 MB / 498.8 MB, free: 4.543 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006708/0.2458, allocations: 0.4963 MB / 499.3 MB, free: 4.039 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001475/0.2459, allocations: 98.08 kB / 499.4 MB, free: 3.926 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007857/0.2467, allocations: 0.5515 MB / 499.9 MB, free: 3.355 MB / 350.1 MB Notification: Performance of pre-optimization done (n=89): time 2.054e-06/0.2467, allocations: 0 / 499.9 MB, free: 3.355 MB / 350.1 MB Notification: Performance of matching and sorting (n=89): time 0.006864/0.2536, allocations: 2.535 MB / 0.4907 GB, free: 0.793 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.546e-05/0.2537, allocations: 274 kB / 0.491 GB, free: 472 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002198/0.2559, allocations: 1.783 MB / 0.4927 GB, free: 14.66 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.252e-05/0.256, allocations: 45.7 kB / 0.4927 GB, free: 14.61 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004654/0.2564, allocations: 490 kB / 0.4932 GB, free: 14.12 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002655/0.2567, allocations: 317.2 kB / 0.4935 GB, free: 13.81 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002469/0.257, allocations: 154.6 kB / 0.4937 GB, free: 13.66 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001499/0.2571, allocations: 334 kB / 0.494 GB, free: 13.32 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006818/0.2578, allocations: 357.8 kB / 0.4943 GB, free: 12.98 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007964/0.2586, allocations: 0.491 MB / 0.4948 GB, free: 12.44 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006066/0.2647, allocations: 1.952 MB / 0.4967 GB, free: 10.47 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/0.2647, allocations: 4 kB / 0.4967 GB, free: 10.47 MB / 366.1 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.003275/0.268, allocations: 1.419 MB / 0.4981 GB, free: 9.039 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.882e-05/0.268, allocations: 10.19 kB / 0.4981 GB, free: 9.031 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.268, allocations: 0 / 0.4981 GB, free: 9.031 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001781/0.2698, allocations: 0.5488 MB / 0.4986 GB, free: 8.48 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004172/0.2702, allocations: 119.8 kB / 0.4988 GB, free: 8.363 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001694/0.272, allocations: 1.182 MB / 0.4999 GB, free: 7.152 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005792/0.2725, allocations: 83.48 kB / 0.5 GB, free: 7.07 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.89e-05/0.2726, allocations: 35.92 kB / 0.5 GB, free: 7.035 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: 7 * Number of states: 0 () * Number of discrete variables: 10 (delay.firstTrigger,$PRE.delay.firstTrigger,$whenCondition2,delay.sampleTrigger,$whenCondition1,$PRE.delay.y,delay.y,o.y,n1.y,n2.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 67 * 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 {(12,22)} Notification: Performance of prepare postOptimizeDAE: time 0.0007147/0.2733, allocations: 453.6 kB / 0.5005 GB, free: 6.582 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000191/0.2735, allocations: 127.2 kB / 0.5006 GB, free: 6.457 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003411/0.277, allocations: 1.479 MB / 0.502 GB, free: 4.961 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.053e-05/0.277, allocations: 8 kB / 0.502 GB, free: 4.953 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.277, allocations: 0 / 0.502 GB, free: 4.953 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.117e-05/0.277, allocations: 7.969 kB / 0.502 GB, free: 4.945 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005525/0.2825, allocations: 3.138 MB / 0.5051 GB, free: 1.746 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.701e-06/0.2826, allocations: 4 kB / 0.5051 GB, free: 1.742 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003708/0.2829, allocations: 111.8 kB / 0.5052 GB, free: 1.633 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001718/0.2847, allocations: 0.5238 MB / 0.5057 GB, free: 1.105 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.801e-05/0.2847, allocations: 23.98 kB / 0.5057 GB, free: 1.082 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00166/0.2864, allocations: 1.158 MB / 0.5069 GB, free: 15.9 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.2864, allocations: 0 / 0.5069 GB, free: 15.9 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004075/0.2905, allocations: 2.006 MB / 0.5088 GB, free: 13.87 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003536/0.2909, allocations: 280 kB / 0.5091 GB, free: 13.58 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001339/0.291, allocations: 19.94 kB / 0.5091 GB, free: 13.56 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005197/0.2915, allocations: 51.95 kB / 0.5092 GB, free: 13.51 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001598/0.2917, allocations: 68.89 kB / 0.5092 GB, free: 13.44 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.008e-05/0.2918, allocations: 28.11 kB / 0.5093 GB, free: 13.41 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001683/0.2935, allocations: 1.293 MB / 0.5105 GB, free: 12.11 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2935, allocations: 0 / 0.5105 GB, free: 12.11 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006746/0.2941, allocations: 243.7 kB / 0.5108 GB, free: 11.88 MB / 382.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: 8 (delay.sampleTrigger,$whenCondition2,$whenCondition1,n2.y,n1.y,o.y,delay.firstTrigger,delay.y) * Number of discrete states: 1 (delay.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (64): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {(12,21)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009378/0.2951, allocations: 294.8 kB / 0.511 GB, free: 11.66 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002757/0.2979, allocations: 1.105 MB / 0.5121 GB, free: 10.55 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.948e-06/0.2979, allocations: 0 / 0.5121 GB, free: 10.55 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001877/0.2998, allocations: 0.6842 MB / 0.5128 GB, free: 9.871 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006853/0.3005, allocations: 108.4 kB / 0.5129 GB, free: 9.762 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004633/0.3051, allocations: 2.596 MB / 0.5154 GB, free: 7.133 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009136/0.306, allocations: 1.173 MB / 0.5166 GB, free: 5.934 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002387/0.3063, allocations: 79.42 kB / 0.5166 GB, free: 5.855 MB / 382.1 MB Notification: Performance of SimCode: time 1.994e-06/0.3063, allocations: 0 / 0.5166 GB, free: 5.855 MB / 382.1 MB Notification: Performance of Templates: time 0.02664/0.3329, allocations: 19.4 MB / 0.5356 GB, free: 2.453 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.makefile [Timeout 660] (rm -f PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.sim & ./PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 7.759808630915359] Failed to read output from testmodel.py, exit status != 0: 0.3399692471139133 0.352441901 0.117939791 Calling exit ...