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.001319/0.001319, allocations: 113.8 kB / 19.74 MB, free: 2.152 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.001404/0.001404, allocations: 191.2 kB / 23.03 MB, free: 5.02 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.518/1.518, allocations: 225.6 MB / 251.8 MB, free: 13 MB / 206.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.06108/0.06108, allocations: 8.24 MB / 315.3 MB, free: 380 kB / 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.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.002283/0.002283, allocations: 63.89 kB / 439.7 MB, free: 12.17 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.149/0.1513, allocations: 54.4 MB / 494.1 MB, free: 5.676 MB / 350.1 MB
Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.MixingOneSourceOneBatteryOneDieselOneLoad): time 0.01018/0.1615, allocations: 4.658 MB / 498.8 MB, free: 0.9922 MB / 350.1 MB
Notification: Performance of NFInst.instExpressions: time 0.004493/0.166, allocations: 1.783 MB / 0.4888 GB, free: 15.2 MB / 366.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0008052/0.1668, allocations: 8 kB / 0.4889 GB, free: 15.19 MB / 366.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.001497/0.1683, allocations: 0.4941 MB / 0.4893 GB, free: 14.69 MB / 366.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.001538/0.1698, allocations: 394 kB / 0.4897 GB, free: 14.3 MB / 366.1 MB
[/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1/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.00308/0.1729, allocations: 1.1 MB / 0.4908 GB, free: 13.21 MB / 366.1 MB
Notification: Performance of NFFlatten.flatten: time 0.001615/0.1745, allocations: 0.8255 MB / 0.4916 GB, free: 12.38 MB / 366.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0005344/0.175, allocations: 242 kB / 0.4918 GB, free: 12.14 MB / 366.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0006006/0.1756, allocations: 394.7 kB / 0.4922 GB, free: 11.75 MB / 366.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0009351/0.1766, allocations: 0.5919 MB / 0.4928 GB, free: 11.16 MB / 366.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.0001314/0.1767, allocations: 84 kB / 0.4929 GB, free: 11.07 MB / 366.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0007743/0.1775, allocations: 311.8 kB / 0.4932 GB, free: 10.77 MB / 366.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0004363/0.1779, allocations: 418.8 kB / 0.4936 GB, free: 10.36 MB / 366.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0006468/0.1786, allocations: 0.6098 MB / 0.4941 GB, free: 9.746 MB / 366.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.002252/0.1808, allocations: 1.658 MB / 0.4958 GB, free: 8.082 MB / 366.1 MB
Notification: Performance of FrontEnd - DAE generated: time 5.64e-06/0.1808, allocations: 0 / 0.4958 GB, free: 8.082 MB / 366.1 MB
Notification: Performance of FrontEnd: time 1.633e-06/0.1808, allocations: 0 / 0.4958 GB, free: 8.082 MB / 366.1 MB
Notification: Performance of Transformations before backend: time 1.32e-05/0.1808, allocations: 4 kB / 0.4958 GB, free: 8.078 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: 153
 * Number of variables: 153
Notification: Performance of Generate backend data structure: time 0.005458/0.1863, allocations: 1.868 MB / 0.4976 GB, free: 6.172 MB / 366.1 MB
Notification: Performance of prepare preOptimizeDAE: time 5.064e-05/0.1864, allocations: 15.89 kB / 0.4976 GB, free: 6.156 MB / 366.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002734/0.1866, allocations: 156 kB / 0.4978 GB, free: 6.004 MB / 366.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.001637/0.1883, allocations: 0.9222 MB / 0.4987 GB, free: 5.043 MB / 366.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002743/0.1885, allocations: 224 kB / 0.4989 GB, free: 4.785 MB / 366.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001109/0.1886, allocations: 60.38 kB / 0.4989 GB, free: 4.727 MB / 366.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.001817/0.1905, allocations: 0.8436 MB / 0.4998 GB, free: 3.852 MB / 366.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.505e-05/0.1905, allocations: 0 / 0.4998 GB, free: 3.852 MB / 366.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.442e-05/0.1906, allocations: 24 kB / 0.4998 GB, free: 3.828 MB / 366.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.702e-05/0.1906, allocations: 16 kB / 0.4998 GB, free: 3.812 MB / 366.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001364/0.1919, allocations: 0.7001 MB / 0.5005 GB, free: 3.113 MB / 366.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006218/0.1982, allocations: 3.52 MB / 0.5039 GB, free: 15.42 MB / 382.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.002356/0.2005, allocations: 0.9819 MB / 0.5049 GB, free: 14.43 MB / 382.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0009597/0.2015, allocations: 464.2 kB / 0.5053 GB, free: 13.97 MB / 382.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 0.0001506/0.2016, allocations: 24.97 kB / 0.5053 GB, free: 13.95 MB / 382.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001299/0.2029, allocations: 0.5515 MB / 0.5059 GB, free: 13.38 MB / 382.1 MB
Notification: Performance of pre-optimization done (n=89): time 3.597e-06/0.2029, allocations: 0 / 0.5059 GB, free: 13.38 MB / 382.1 MB
Notification: Performance of matching and sorting (n=89): time 0.009058/0.212, allocations: 2.458 MB / 0.5083 GB, free: 10.91 MB / 382.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001984/0.2122, allocations: 274 kB / 0.5085 GB, free: 10.59 MB / 382.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002923/0.2151, allocations: 1.779 MB / 0.5103 GB, free: 8.789 MB / 382.1 MB
Notification: Performance of collectPreVariables (initialization): time 0.0001068/0.2152, allocations: 45.7 kB / 0.5103 GB, free: 8.738 MB / 382.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0005688/0.2158, allocations: 498.1 kB / 0.5108 GB, free: 8.246 MB / 382.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0003649/0.2161, allocations: 305.3 kB / 0.5111 GB, free: 7.945 MB / 382.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002909/0.2164, allocations: 146.6 kB / 0.5112 GB, free: 7.797 MB / 382.1 MB
Notification: Performance of setup shared object (initialization): time 0.0002086/0.2166, allocations: 341.9 kB / 0.5116 GB, free: 7.457 MB / 382.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007792/0.2174, allocations: 361.8 kB / 0.5119 GB, free: 7.102 MB / 382.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009188/0.2183, allocations: 0.4949 MB / 0.5124 GB, free: 6.562 MB / 382.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.006809/0.2251, allocations: 1.975 MB / 0.5143 GB, free: 4.57 MB / 382.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.332e-06/0.2252, allocations: 4 kB / 0.5143 GB, free: 4.566 MB / 382.1 MB
Notification: Performance of matching and sorting (n=101) (initialization): time 0.003905/0.2291, allocations: 1.408 MB / 0.5157 GB, free: 3.148 MB / 382.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.903e-05/0.2291, allocations: 8 kB / 0.5157 GB, free: 3.141 MB / 382.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.283e-05/0.2291, allocations: 0 / 0.5157 GB, free: 3.141 MB / 382.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.001964/0.2311, allocations: 0.5449 MB / 0.5162 GB, free: 2.594 MB / 382.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004612/0.2315, allocations: 123.8 kB / 0.5163 GB, free: 2.473 MB / 382.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002001/0.2335, allocations: 1.178 MB / 0.5175 GB, free: 1.266 MB / 382.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008821/0.2344, allocations: 91.42 kB / 0.5176 GB, free: 1.176 MB / 382.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.228e-05/0.2345, allocations: 31.98 kB / 0.5176 GB, free: 1.145 MB / 382.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.0009824/0.2355, allocations: 446.8 kB / 0.518 GB, free: 0.6992 MB / 382.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004355/0.2359, allocations: 127.2 kB / 0.5182 GB, free: 0.5742 MB / 382.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3076/0.5435, allocations: 1.471 MB / 0.5196 GB, free: 36.09 MB / 382.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.726e-05/0.5435, allocations: 9.859 kB / 0.5196 GB, free: 36.09 MB / 382.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 1.055e-05/0.5435, allocations: 0.6875 kB / 0.5196 GB, free: 36.09 MB / 382.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.764e-05/0.5435, allocations: 6.609 kB / 0.5196 GB, free: 36.09 MB / 382.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006864/0.5504, allocations: 3.109 MB / 0.5226 GB, free: 35.36 MB / 382.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.855e-06/0.5504, allocations: 0 / 0.5226 GB, free: 35.36 MB / 382.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004281/0.5508, allocations: 99.73 kB / 0.5227 GB, free: 35.36 MB / 382.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.001915/0.5527, allocations: 0.5356 MB / 0.5233 GB, free: 35.24 MB / 382.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.51e-05/0.5528, allocations: 16.88 kB / 0.5233 GB, free: 35.23 MB / 382.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001632/0.5544, allocations: 1.164 MB / 0.5244 GB, free: 34.42 MB / 382.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.5544, allocations: 0 / 0.5244 GB, free: 34.42 MB / 382.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004602/0.559, allocations: 1.999 MB / 0.5264 GB, free: 33.59 MB / 382.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0008503/0.5599, allocations: 202.8 kB / 0.5266 GB, free: 33.5 MB / 382.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001841/0.5601, allocations: 18.39 kB / 0.5266 GB, free: 33.49 MB / 382.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006949/0.5608, allocations: 53.25 kB / 0.5266 GB, free: 33.48 MB / 382.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002576/0.561, allocations: 78.47 kB / 0.5267 GB, free: 33.46 MB / 382.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.142e-05/0.5611, allocations: 25.03 kB / 0.5267 GB, free: 33.46 MB / 382.1 MB
Notification: Performance of sorting global known variables: time 0.002288/0.5634, allocations: 1.288 MB / 0.528 GB, free: 32.99 MB / 382.1 MB
Notification: Performance of sort global known variables: time 8e-08/0.5634, allocations: 5.531 kB / 0.528 GB, free: 32.98 MB / 382.1 MB
Notification: Performance of remove unused functions: time 0.0009718/0.5644, allocations: 250 kB / 0.5282 GB, free: 32.95 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.001028/0.5654, allocations: 291.1 kB / 0.5285 GB, free: 32.82 MB / 382.1 MB
Notification: Performance of simCode: created initialization part: time 0.00312/0.5685, allocations: 1.058 MB / 0.5295 GB, free: 32.5 MB / 382.1 MB
Notification: Performance of simCode: created event and clocks part: time 5.72e-06/0.5685, allocations: 4.688 kB / 0.5295 GB, free: 32.5 MB / 382.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.001999/0.5705, allocations: 0.6338 MB / 0.5302 GB, free: 32.32 MB / 382.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007746/0.5713, allocations: 117.9 kB / 0.5303 GB, free: 32.25 MB / 382.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005218/0.5765, allocations: 2.522 MB / 0.5327 GB, free: 31.16 MB / 382.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008065/0.5773, allocations: 1.173 MB / 0.5339 GB, free: 30.37 MB / 382.1 MB
Notification: Performance of simCode: alias equations: time 0.0004332/0.5777, allocations: 170.4 kB / 0.5341 GB, free: 30.35 MB / 382.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002186/0.578, allocations: 76.09 kB / 0.5341 GB, free: 30.34 MB / 382.1 MB
Notification: Performance of SimCode: time 1.713e-06/0.578, allocations: 3.938 kB / 0.5341 GB, free: 30.33 MB / 382.1 MB
Notification: Performance of Templates: time 0.02915/0.6071, allocations: 16.23 MB / 0.55 GB, free: 20.12 MB / 382.1 MB
"
[Timeout remaining time 659]
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: 5.739486303180456]
Failed to read output from testmodel.py, exit status != 0:
0.6158567452803254 0.6254250219999999 0.44224529599999995
Calling exit ...
<OMPython.OMCSessionZMQ object at 0x7f8a99e357b0>