Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex.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.00204/0.00204, allocations: 113.9 kB / 18.94 MB, free: 2.953 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.003005/0.003005, allocations: 191.2 kB / 22.23 MB, free: 5.133 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.56/1.56, allocations: 225.6 MB / 251 MB, free: 13.02 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo): time 0.06909/0.06909, allocations: 11.34 MB / 317.6 MB, free: 13.77 MB / 254.1 MB
"
[Timeout remaining time 180]
Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/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(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex")
translateModel(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.002949/0.002949, allocations: 63.89 kB / 443 MB, free: 6.438 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.1313/0.1343, allocations: 54.89 MB / 497.9 MB, free: 15.45 MB / 366.1 MB
Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex): time 0.003677/0.138, allocations: 1.705 MB / 499.6 MB, free: 13.73 MB / 366.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001063/0.139, allocations: 366.7 kB / 500 MB, free: 13.37 MB / 366.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001426/0.1392, allocations: 0 / 500 MB, free: 13.37 MB / 366.1 MB
Notification: Performance of NFTyping.typeComponents: time 6.084e-05/0.1392, allocations: 15.8 kB / 500 MB, free: 13.35 MB / 366.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0001573/0.1394, allocations: 23.75 kB / 0.4883 GB, free: 13.33 MB / 366.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0005318/0.1399, allocations: 115.8 kB / 0.4884 GB, free: 13.21 MB / 366.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0003103/0.1402, allocations: 163.6 kB / 0.4886 GB, free: 13.05 MB / 366.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001511/0.1404, allocations: 9.812 kB / 0.4886 GB, free: 13.04 MB / 366.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001947/0.1406, allocations: 75.64 kB / 0.4886 GB, free: 12.97 MB / 366.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0001421/0.1407, allocations: 83.59 kB / 0.4887 GB, free: 12.89 MB / 366.1 MB
Notification: Performance of NFPackage.collectConstants: time 4.091e-05/0.1407, allocations: 16 kB / 0.4887 GB, free: 12.87 MB / 366.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.00018/0.1409, allocations: 79.94 kB / 0.4888 GB, free: 12.79 MB / 366.1 MB
Notification: Performance of NFScalarize.scalarize: time 7.481e-05/0.141, allocations: 47.77 kB / 0.4889 GB, free: 12.75 MB / 366.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0001055/0.1411, allocations: 75.52 kB / 0.4889 GB, free: 12.67 MB / 366.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0004077/0.1415, allocations: 203.2 kB / 0.4891 GB, free: 12.47 MB / 366.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.1415, allocations: 0 / 0.4891 GB, free: 12.47 MB / 366.1 MB
Notification: Performance of FrontEnd: time 1.623e-06/0.1415, allocations: 0 / 0.4891 GB, free: 12.47 MB / 366.1 MB
Notification: Performance of Transformations before backend: time 8.176e-06/0.1415, allocations: 0 / 0.4891 GB, free: 12.47 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: 22
 * Number of variables: 22
Notification: Performance of Generate backend data structure: time 0.000959/0.1425, allocations: 413.5 kB / 0.4895 GB, free: 12.04 MB / 366.1 MB
Notification: Performance of prepare preOptimizeDAE: time 5.438e-05/0.1425, allocations: 12.92 kB / 0.4895 GB, free: 12.02 MB / 366.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 8.829e-05/0.1426, allocations: 20.83 kB / 0.4895 GB, free: 12 MB / 366.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003197/0.143, allocations: 178 kB / 0.4897 GB, free: 11.8 MB / 366.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.067e-05/0.143, allocations: 12.56 kB / 0.4897 GB, free: 11.79 MB / 366.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 4.814e-05/0.143, allocations: 16.36 kB / 0.4897 GB, free: 11.78 MB / 366.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003741/0.1434, allocations: 176.1 kB / 0.4899 GB, free: 11.59 MB / 366.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.465e-05/0.1434, allocations: 4 kB / 0.4899 GB, free: 11.58 MB / 366.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.778e-05/0.1434, allocations: 7.984 kB / 0.4899 GB, free: 11.57 MB / 366.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.741e-06/0.1434, allocations: 0 / 0.4899 GB, free: 11.57 MB / 366.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001779/0.1436, allocations: 59.97 kB / 0.49 GB, free: 11.52 MB / 366.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009664/0.1446, allocations: 439.6 kB / 0.4904 GB, free: 11.04 MB / 366.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0003129/0.1449, allocations: 130.6 kB / 0.4905 GB, free: 10.91 MB / 366.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.000147/0.145, allocations: 64.83 kB / 0.4906 GB, free: 10.84 MB / 366.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 1.609e-05/0.1451, allocations: 7.938 kB / 0.4906 GB, free: 10.83 MB / 366.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003823/0.1454, allocations: 153.8 kB / 0.4907 GB, free: 10.67 MB / 366.1 MB
Notification: Performance of pre-optimization done (n=20): time 1.583e-06/0.1454, allocations: 0 / 0.4907 GB, free: 10.67 MB / 366.1 MB
Notification: Performance of matching and sorting (n=20): time 0.0006835/0.1461, allocations: 261.4 kB / 0.491 GB, free: 10.41 MB / 366.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001252/0.1463, allocations: 162.2 kB / 0.4911 GB, free: 10.21 MB / 366.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002263/0.1465, allocations: 200.1 kB / 0.4913 GB, free: 10.01 MB / 366.1 MB
Notification: Performance of collectPreVariables (initialization): time 3.854e-05/0.1465, allocations: 37.7 kB / 0.4914 GB, free: 9.965 MB / 366.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001051/0.1466, allocations: 124.4 kB / 0.4915 GB, free: 9.84 MB / 366.1 MB
Notification: Performance of collectInitialBindings (initialization): time 5.798e-05/0.1467, allocations: 59.58 kB / 0.4915 GB, free: 9.781 MB / 366.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 9.964e-05/0.1468, allocations: 57.66 kB / 0.4916 GB, free: 9.719 MB / 366.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001671/0.147, allocations: 334.8 kB / 0.4919 GB, free: 9.383 MB / 366.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.00012/0.1471, allocations: 44.27 kB / 0.492 GB, free: 9.336 MB / 366.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.000231/0.1473, allocations: 173 kB / 0.4921 GB, free: 9.117 MB / 366.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0003957/0.1477, allocations: 229.1 kB / 0.4923 GB, free: 8.855 MB / 366.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.1477, allocations: 0 / 0.4923 GB, free: 8.855 MB / 366.1 MB
Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004654/0.1482, allocations: 253.2 kB / 0.4926 GB, free: 8.602 MB / 366.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.091e-05/0.1482, allocations: 8 kB / 0.4926 GB, free: 8.594 MB / 366.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-06/0.1482, allocations: 0 / 0.4926 GB, free: 8.594 MB / 366.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 2.18e-05/0.1482, allocations: 8 kB / 0.4926 GB, free: 8.586 MB / 366.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002274/0.1484, allocations: 51.84 kB / 0.4927 GB, free: 8.535 MB / 366.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.503e-05/0.1485, allocations: 8 kB / 0.4927 GB, free: 8.527 MB / 366.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001445/0.1486, allocations: 24.27 kB / 0.4927 GB, free: 8.504 MB / 366.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.666e-05/0.1486, allocations: 8 kB / 0.4927 GB, free: 8.496 MB / 366.1 MB
Warning: Assuming fixed start value for the following 3 variables:
         cplxP_dig_TU.u_pre1:DISCRETE(fixed = true protected = true )  type: Real
         cplxP_dig_FE.u_pre1:DISCRETE(fixed = true protected = true )  type: Real
         cplxP_dig_BE.u_pre1:DISCRETE(fixed = true protected = true )  type: Real
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 13
 * Number of states: 0 ()
 * Number of discrete variables: 21 ($PRE.cplxP_dig_TU.u_pre1,cplxP_dig_TU.u_pre1,cplxP_dig_TU.y_pre1,$PRE.cplxP_dig_TU.y_pre1,$PRE.cplxP_dig_FE.u_pre1,cplxP_dig_FE.u_pre1,cplxP_dig_FE.y_pre1,$PRE.cplxP_dig_FE.y_pre1,$PRE.cplxP_dig_BE.u_pre1,cplxP_dig_BE.u_pre1,cplxP_dig_BE.y_pre1,$PRE.cplxP_dig_BE.y_pre1,$whenCondition3,$whenCondition2,$whenCondition1,cplxP_dig_TU.y,$PRE.cplxP_dig_TU.y,cplxP_dig_FE.y,$PRE.cplxP_dig_FE.y,cplxP_dig_BE.y,$PRE.cplxP_dig_BE.y)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (34):
 * Single equations (assignments): 34
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 0
 * Mixed (continuous/discrete) equation systems: 0
Notification: Performance of prepare postOptimizeDAE: time 0.0002195/0.1488, allocations: 159.3 kB / 0.4928 GB, free: 8.332 MB / 366.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 4.228e-05/0.1489, allocations: 19.86 kB / 0.4929 GB, free: 8.312 MB / 366.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.622e-05/0.1489, allocations: 21.8 kB / 0.4929 GB, free: 8.285 MB / 366.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.1489, allocations: 4 kB / 0.4929 GB, free: 8.281 MB / 366.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.1489, allocations: 0 / 0.4929 GB, free: 8.281 MB / 366.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.149, allocations: 4 kB / 0.4929 GB, free: 8.277 MB / 366.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007615/0.1497, allocations: 0.5034 MB / 0.4934 GB, free: 7.727 MB / 366.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.534e-06/0.1497, allocations: 0 / 0.4934 GB, free: 7.727 MB / 366.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000168/0.1499, allocations: 23.98 kB / 0.4934 GB, free: 7.703 MB / 366.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 3.065e-06/0.1499, allocations: 0 / 0.4934 GB, free: 7.703 MB / 366.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.877e-05/0.1499, allocations: 7.984 kB / 0.4934 GB, free: 7.695 MB / 366.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.1499, allocations: 0 / 0.4934 GB, free: 7.695 MB / 366.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.1499, allocations: 0 / 0.4934 GB, free: 7.695 MB / 366.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006126/0.1505, allocations: 391.2 kB / 0.4938 GB, free: 7.297 MB / 366.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 3.729e-05/0.1506, allocations: 23.83 kB / 0.4938 GB, free: 7.273 MB / 366.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.64e-05/0.1506, allocations: 11.98 kB / 0.4938 GB, free: 7.262 MB / 366.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001247/0.1507, allocations: 4 kB / 0.4938 GB, free: 7.258 MB / 366.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 5.766e-05/0.1508, allocations: 19.91 kB / 0.4938 GB, free: 7.238 MB / 366.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.517e-05/0.1508, allocations: 8 kB / 0.4939 GB, free: 7.23 MB / 366.1 MB
Notification: Performance of sorting global known variables: time 0.0001359/0.151, allocations: 147.3 kB / 0.494 GB, free: 7.086 MB / 366.1 MB
Notification: Performance of sort global known variables: time 1.01e-07/0.151, allocations: 4.062 kB / 0.494 GB, free: 7.082 MB / 366.1 MB
Notification: Performance of remove unused functions: time 0.000348/0.1513, allocations: 55.92 kB / 0.494 GB, free: 7.027 MB / 366.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 1
 * Number of states: 2 (cplxP.y,cplxP.dy)
 * Number of discrete variables: 12 ($whenCondition3,$whenCondition2,$whenCondition1,cplxP_dig_BE.y,cplxP_dig_BE.u_pre1,cplxP_dig_BE.y_pre1,cplxP_dig_FE.y,cplxP_dig_FE.u_pre1,cplxP_dig_FE.y_pre1,cplxP_dig_TU.y,cplxP_dig_TU.u_pre1,cplxP_dig_TU.y_pre1)
 * Number of discrete states: 12 (cplxP_dig_TU.u,cplxP_dig_TU.u_pre1,cplxP_dig_TU.y,cplxP_dig_TU.y_pre1,cplxP_dig_FE.u,cplxP_dig_FE.u_pre1,cplxP_dig_FE.y,cplxP_dig_FE.y_pre1,cplxP_dig_BE.u,cplxP_dig_BE.u_pre1,cplxP_dig_BE.y,cplxP_dig_BE.y_pre1)
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (20):
 * Single equations (assignments): 11
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 9
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 0
 * Mixed (continuous/discrete) equation systems: 0
Notification: Performance of Backend phase and start with SimCode phase: time 0.000208/0.1515, allocations: 138.3 kB / 0.4942 GB, free: 6.887 MB / 366.1 MB
Notification: Performance of simCode: created initialization part: time 0.0003768/0.1519, allocations: 150.7 kB / 0.4943 GB, free: 6.742 MB / 366.1 MB
Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.1519, allocations: 0 / 0.4943 GB, free: 6.742 MB / 366.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0001511/0.152, allocations: 75.92 kB / 0.4944 GB, free: 6.668 MB / 366.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003642/0.1524, allocations: 31.97 kB / 0.4944 GB, free: 6.637 MB / 366.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008292/0.1532, allocations: 344.3 kB / 0.4948 GB, free: 6.273 MB / 366.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004313/0.1537, allocations: 0.7284 MB / 0.4955 GB, free: 5.52 MB / 366.1 MB
Notification: Performance of simCode: alias equations: time 9.077e-05/0.1538, allocations: 21.94 kB / 0.4955 GB, free: 5.496 MB / 366.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 4.425e-05/0.1538, allocations: 19.44 kB / 0.4955 GB, free: 5.477 MB / 366.1 MB
Notification: Performance of SimCode: time 6.31e-07/0.1538, allocations: 0 / 0.4955 GB, free: 5.477 MB / 366.1 MB
Notification: Performance of Templates: time 0.006935/0.1607, allocations: 2.51 MB / 0.498 GB, free: 2.984 MB / 366.1 MB
"
[Timeout remaining time 660]
make -j1 -f IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex.makefile [Timeout 660]
(rm -f IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex.sim & ./IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex  -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonComplex.pipe 2>&1) [Timeout 480]
[Calling sys.exit(0), Time elapsed: 4.82892922218889]
Failed to read output from testmodel.py, exit status != 0:
0.17001936305314302 0.18575929299999994 0.040788078000000005
Calling exit ...
<OMPython.OMCSessionZMQ object at 0x7f570b98d7b0>