Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.VariableLoad.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.00148/0.00148, allocations: 113.6 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.001436/0.001436, allocations: 194.3 kB / 23.03 MB, free: 5.016 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.556/1.556, allocations: 225.6 MB / 251.8 MB, free: 13.01 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.06543/0.06543, allocations: 8.244 MB / 315.3 MB, free: 452 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.VariableLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.VariableLoad")
translateModel(PowerSysPro.Examples.VariableLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PowerSysPro_PowerSysPro.Examples.VariableLoad") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.002339/0.002339, allocations: 67.89 kB / 439.7 MB, free: 12.23 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.1183/0.1206, allocations: 54.39 MB / 494.1 MB, free: 5.75 MB / 350.1 MB
Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.VariableLoad): time 0.005194/0.1258, allocations: 2.507 MB / 496.6 MB, free: 3.238 MB / 350.1 MB
Notification: Performance of NFInst.instExpressions: time 0.0048/0.1306, allocations: 2.665 MB / 499.3 MB, free: 0.5508 MB / 350.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0002791/0.1309, allocations: 8 kB / 499.3 MB, free: 0.543 MB / 350.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0006772/0.1316, allocations: 163 kB / 499.5 MB, free: 392 kB / 350.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.001064/0.1326, allocations: 294.4 kB / 499.7 MB, free: 96 kB / 350.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.002691/0.1353, allocations: 1.301 MB / 0.4893 GB, free: 14.79 MB / 366.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0008319/0.1362, allocations: 422.2 kB / 0.4897 GB, free: 14.38 MB / 366.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0002475/0.1364, allocations: 88.55 kB / 0.4898 GB, free: 14.29 MB / 366.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0003265/0.1367, allocations: 167.4 kB / 0.49 GB, free: 14.13 MB / 366.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0003993/0.1371, allocations: 211.1 kB / 0.4902 GB, free: 13.92 MB / 366.1 MB
Notification: Performance of NFPackage.collectConstants: time 9.925e-05/0.1372, allocations: 32 kB / 0.4902 GB, free: 13.89 MB / 366.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0008728/0.1381, allocations: 351.7 kB / 0.4905 GB, free: 13.55 MB / 366.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0001423/0.1382, allocations: 79.69 kB / 0.4906 GB, free: 13.47 MB / 366.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0002585/0.1385, allocations: 191 kB / 0.4908 GB, free: 13.28 MB / 366.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.00134/0.1398, allocations: 0.6344 MB / 0.4914 GB, free: 12.64 MB / 366.1 MB
Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.1398, allocations: 4 kB / 0.4914 GB, free: 12.64 MB / 366.1 MB
Notification: Performance of FrontEnd: time 1.433e-06/0.1399, allocations: 4 kB / 0.4914 GB, free: 12.64 MB / 366.1 MB
Notification: Performance of Transformations before backend: time 2.776e-05/0.1399, allocations: 0 / 0.4914 GB, free: 12.64 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: 66
 * Number of variables: 66
Notification: Performance of Generate backend data structure: time 0.005214/0.1451, allocations: 1.16 MB / 0.4925 GB, free: 11.45 MB / 366.1 MB
Notification: Performance of prepare preOptimizeDAE: time 5.031e-05/0.1451, allocations: 19.83 kB / 0.4926 GB, free: 11.43 MB / 366.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001543/0.1453, allocations: 40.7 kB / 0.4926 GB, free: 11.39 MB / 366.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004953/0.1458, allocations: 265.4 kB / 0.4928 GB, free: 11.11 MB / 366.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.57e-05/0.1459, allocations: 62.84 kB / 0.4929 GB, free: 11.04 MB / 366.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 6.947e-05/0.1459, allocations: 36.12 kB / 0.4929 GB, free: 11 MB / 366.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008474/0.1468, allocations: 449.8 kB / 0.4934 GB, free: 10.55 MB / 366.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.571e-05/0.1468, allocations: 0 / 0.4934 GB, free: 10.55 MB / 366.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.031e-05/0.1468, allocations: 12 kB / 0.4934 GB, free: 10.54 MB / 366.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.867e-05/0.1469, allocations: 8 kB / 0.4934 GB, free: 10.53 MB / 366.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007913/0.1477, allocations: 394.5 kB / 0.4938 GB, free: 10.14 MB / 366.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002921/0.1506, allocations: 1.718 MB / 0.4954 GB, free: 8.262 MB / 366.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.001053/0.1516, allocations: 455 kB / 0.4959 GB, free: 7.805 MB / 366.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0003936/0.152, allocations: 216.8 kB / 0.4961 GB, free: 7.59 MB / 366.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 7.493e-05/0.1521, allocations: 23.97 kB / 0.4961 GB, free: 7.566 MB / 366.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006761/0.1528, allocations: 323.1 kB / 0.4964 GB, free: 7.238 MB / 366.1 MB
Notification: Performance of pre-optimization done (n=43): time 5.01e-06/0.1528, allocations: 3.984 kB / 0.4964 GB, free: 7.234 MB / 366.1 MB
Notification: Performance of matching and sorting (n=43): time 0.004615/0.1574, allocations: 1.264 MB / 0.4977 GB, free: 5.961 MB / 366.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 8.222e-05/0.1575, allocations: 114.7 kB / 0.4978 GB, free: 5.824 MB / 366.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003996/0.1579, allocations: 288.1 kB / 0.498 GB, free: 5.531 MB / 366.1 MB
Notification: Performance of collectPreVariables (initialization): time 6.824e-05/0.1579, allocations: 37.7 kB / 0.4981 GB, free: 5.488 MB / 366.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001525/0.1581, allocations: 169 kB / 0.4982 GB, free: 5.316 MB / 366.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0001577/0.1583, allocations: 154.7 kB / 0.4984 GB, free: 5.164 MB / 366.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002014/0.1585, allocations: 94.17 kB / 0.4985 GB, free: 5.066 MB / 366.1 MB
Notification: Performance of setup shared object (initialization): time 0.000174/0.1586, allocations: 342.8 kB / 0.4988 GB, free: 4.723 MB / 366.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004685/0.1591, allocations: 260.9 kB / 0.4991 GB, free: 4.465 MB / 366.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005151/0.1596, allocations: 308 kB / 0.4993 GB, free: 4.156 MB / 366.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0009691/0.1606, allocations: 0.5613 MB / 0.4999 GB, free: 3.594 MB / 366.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.578e-06/0.1606, allocations: 4.031 kB / 0.4999 GB, free: 3.59 MB / 366.1 MB
Notification: Performance of matching and sorting (n=61) (initialization): time 0.002374/0.163, allocations: 0.908 MB / 0.5008 GB, free: 2.668 MB / 366.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.502e-05/0.163, allocations: 8 kB / 0.5008 GB, free: 2.66 MB / 366.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/0.163, allocations: 0 / 0.5008 GB, free: 2.66 MB / 366.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.003049/0.166, allocations: 0.6055 MB / 0.5014 GB, free: 2.051 MB / 366.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003249/0.1664, allocations: 75.89 kB / 0.5015 GB, free: 1.977 MB / 366.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001898/0.1683, allocations: 1.064 MB / 0.5025 GB, free: 0.8867 MB / 366.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004398/0.1687, allocations: 55.55 kB / 0.5025 GB, free: 0.832 MB / 366.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.47e-05/0.1688, allocations: 20 kB / 0.5026 GB, free: 0.8125 MB / 366.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 1
 * Number of states: 0 ()
 * Number of discrete variables: 3 (varLoad.degradedMode,$PRE.varLoad.degradedMode,$whenCondition1)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (46):
 * Single equations (assignments): 45
 * 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
   {(7,9)}
Notification: Performance of prepare postOptimizeDAE: time 0.0002777/0.169, allocations: 157.7 kB / 0.5027 GB, free: 0.6484 MB / 366.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001133/0.1692, allocations: 35.81 kB / 0.5027 GB, free: 0.6133 MB / 366.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00155/0.1707, allocations: 0.7741 MB / 0.5035 GB, free: 15.82 MB / 382.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.233e-06/0.1707, allocations: 4 kB / 0.5035 GB, free: 15.82 MB / 382.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.1707, allocations: 3.938 kB / 0.5035 GB, free: 15.82 MB / 382.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.017e-06/0.1707, allocations: 3.984 kB / 0.5035 GB, free: 15.81 MB / 382.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006948/0.1714, allocations: 0.5398 MB / 0.504 GB, free: 15.23 MB / 382.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.909e-06/0.1714, allocations: 0 / 0.504 GB, free: 15.23 MB / 382.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001964/0.1716, allocations: 55.91 kB / 0.5041 GB, free: 15.18 MB / 382.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.002841/0.1745, allocations: 0.5822 MB / 0.5047 GB, free: 14.59 MB / 382.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.951e-05/0.1745, allocations: 15.98 kB / 0.5047 GB, free: 14.57 MB / 382.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00192/0.1764, allocations: 1.082 MB / 0.5057 GB, free: 13.47 MB / 382.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.1764, allocations: 3.938 kB / 0.5057 GB, free: 13.46 MB / 382.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001454/0.1779, allocations: 0.725 MB / 0.5064 GB, free: 12.72 MB / 382.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0001169/0.178, allocations: 39.64 kB / 0.5065 GB, free: 12.68 MB / 382.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.725e-05/0.1781, allocations: 16 kB / 0.5065 GB, free: 12.66 MB / 382.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003848/0.1785, allocations: 23.92 kB / 0.5065 GB, free: 12.64 MB / 382.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000115/0.1786, allocations: 32.38 kB / 0.5066 GB, free: 12.61 MB / 382.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.177e-05/0.1787, allocations: 16 kB / 0.5066 GB, free: 12.59 MB / 382.1 MB
Notification: Performance of sorting global known variables: time 0.0003158/0.179, allocations: 203.1 kB / 0.5068 GB, free: 12.4 MB / 382.1 MB
Notification: Performance of sort global known variables: time 9e-08/0.179, allocations: 0 / 0.5068 GB, free: 12.4 MB / 382.1 MB
Notification: Performance of remove unused functions: time 0.0006264/0.1796, allocations: 139.8 kB / 0.5069 GB, free: 12.26 MB / 382.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 1
 * Number of states: 0 ()
 * Number of discrete variables: 2 ($whenCondition1,varLoad.degradedMode)
 * Number of discrete states: 1 (varLoad.degradedMode)
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (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
   {(7,10)}
Notification: Performance of Backend phase and start with SimCode phase: time 0.001805/0.1814, allocations: 423.3 kB / 0.5073 GB, free: 11.99 MB / 382.1 MB
Notification: Performance of simCode: created initialization part: time 0.002295/0.1837, allocations: 0.6651 MB / 0.508 GB, free: 11.32 MB / 382.1 MB
Notification: Performance of simCode: created event and clocks part: time 6.662e-06/0.1837, allocations: 0 / 0.508 GB, free: 11.32 MB / 382.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.001465/0.1852, allocations: 386.3 kB / 0.5083 GB, free: 10.95 MB / 382.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000474/0.1857, allocations: 44.97 kB / 0.5084 GB, free: 10.9 MB / 382.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00189/0.1875, allocations: 0.7558 MB / 0.5091 GB, free: 10.13 MB / 382.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000566/0.1881, allocations: 0.7926 MB / 0.5099 GB, free: 9.312 MB / 382.1 MB
Notification: Performance of simCode: alias equations: time 0.0002407/0.1884, allocations: 66.89 kB / 0.5099 GB, free: 9.25 MB / 382.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000122/0.1885, allocations: 35.42 kB / 0.51 GB, free: 9.215 MB / 382.1 MB
Notification: Performance of SimCode: time 1.122e-06/0.1885, allocations: 0 / 0.51 GB, free: 9.215 MB / 382.1 MB
Notification: Performance of Templates: time 0.01712/0.2056, allocations: 8.483 MB / 0.5183 GB, free: 0.7578 MB / 382.1 MB
"
[Timeout remaining time 660]
make -j1 -f PowerSysPro_PowerSysPro.Examples.VariableLoad.makefile [Timeout 660]
(rm -f PowerSysPro_PowerSysPro.Examples.VariableLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.VariableLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.VariableLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.VariableLoad.sim & ./PowerSysPro_PowerSysPro.Examples.VariableLoad  -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSysPro_PowerSysPro.Examples.VariableLoad.pipe 2>&1) [Timeout 480]
[Calling os._exit(0), Time elapsed: 5.293576715514064]
Failed to read output from testmodel.py, exit status != 0:
0.42404140904545784 0.43857822900000004 0.29591431
Calling exit ...
<OMPython.OMCSessionZMQ object at 0x7f6d3aa817b0>