Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.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.001457/0.001457, allocations: 110 kB / 18.94 MB, free: 2.789 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.002156/0.002156, allocations: 195.8 kB / 22.23 MB, free: 5.234 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.441/1.441, allocations: 225.6 MB / 251 MB, free: 13 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.06423/0.06423, allocations: 11.34 MB / 317.6 MB, free: 13.76 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.Logical.Timers.Examples.testT_On,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On")
translateModel(IndustrialControlSystems.Logical.Timers.Examples.testT_On,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001871/0.001871, allocations: 63.91 kB / 443 MB, free: 6.387 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.1155, allocations: 54.89 MB / 497.9 MB, free: 15.4 MB / 366.1 MB
Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Timers.Examples.testT_On): time 0.003814/0.1193, allocations: 2.019 MB / 499.9 MB, free: 13.36 MB / 366.1 MB
Notification: Performance of NFInst.instExpressions: time 0.002296/0.1216, allocations: 1.282 MB / 0.4895 GB, free: 12.07 MB / 366.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001186/0.1217, allocations: 7.938 kB / 0.4895 GB, free: 12.07 MB / 366.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0008537/0.1226, allocations: 279.2 kB / 0.4897 GB, free: 11.79 MB / 366.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0004626/0.123, allocations: 207.2 kB / 0.4899 GB, free: 11.59 MB / 366.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.000796/0.1238, allocations: 312.9 kB / 0.4902 GB, free: 11.29 MB / 366.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0004324/0.1243, allocations: 347 kB / 0.4906 GB, free: 10.95 MB / 366.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001442/0.1244, allocations: 36.58 kB / 0.4906 GB, free: 10.91 MB / 366.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001995/0.1246, allocations: 143.4 kB / 0.4907 GB, free: 10.77 MB / 366.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0001998/0.1248, allocations: 151.4 kB / 0.4909 GB, free: 10.62 MB / 366.1 MB
Notification: Performance of NFPackage.collectConstants: time 3.293e-05/0.1248, allocations: 16 kB / 0.4909 GB, free: 10.61 MB / 366.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0002288/0.1251, allocations: 119.9 kB / 0.491 GB, free: 10.49 MB / 366.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0001003/0.1252, allocations: 75.69 kB / 0.4911 GB, free: 10.41 MB / 366.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.000135/0.1253, allocations: 115.3 kB / 0.4912 GB, free: 10.3 MB / 366.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0004519/0.1258, allocations: 354.5 kB / 0.4915 GB, free: 9.953 MB / 366.1 MB
Notification: Performance of FrontEnd - DAE generated: time 6.693e-06/0.1258, allocations: 8 kB / 0.4915 GB, free: 9.945 MB / 366.1 MB
Notification: Performance of FrontEnd: time 1.313e-06/0.1258, allocations: 4 kB / 0.4915 GB, free: 9.941 MB / 366.1 MB
Notification: Performance of Transformations before backend: time 5.57e-06/0.1258, allocations: 0 / 0.4915 GB, free: 9.941 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: 23
 * Number of variables: 23
Notification: Performance of Generate backend data structure: time 0.0009999/0.1268, allocations: 0.578 MB / 0.4921 GB, free: 9.32 MB / 366.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.692e-05/0.1268, allocations: 8.031 kB / 0.4921 GB, free: 9.312 MB / 366.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 7.248e-05/0.1269, allocations: 32.75 kB / 0.4922 GB, free: 9.281 MB / 366.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004092/0.1273, allocations: 266.6 kB / 0.4924 GB, free: 8.996 MB / 366.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.222e-05/0.1273, allocations: 16.12 kB / 0.4924 GB, free: 8.98 MB / 366.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 2.84e-05/0.1273, allocations: 15.98 kB / 0.4924 GB, free: 8.965 MB / 366.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003021/0.1276, allocations: 153.7 kB / 0.4926 GB, free: 8.805 MB / 366.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 8.837e-06/0.1277, allocations: 0 / 0.4926 GB, free: 8.805 MB / 366.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.982e-05/0.1277, allocations: 7.984 kB / 0.4926 GB, free: 8.797 MB / 366.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.272e-06/0.1277, allocations: 4 kB / 0.4926 GB, free: 8.793 MB / 366.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001694/0.1278, allocations: 67.84 kB / 0.4927 GB, free: 8.727 MB / 366.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007412/0.1286, allocations: 447.5 kB / 0.4931 GB, free: 8.246 MB / 366.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0003411/0.1289, allocations: 130.6 kB / 0.4932 GB, free: 8.109 MB / 366.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001194/0.129, allocations: 52.83 kB / 0.4933 GB, free: 8.055 MB / 366.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 2.272e-05/0.1291, allocations: 4 kB / 0.4933 GB, free: 8.051 MB / 366.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002553/0.1293, allocations: 139.2 kB / 0.4934 GB, free: 7.902 MB / 366.1 MB
Notification: Performance of pre-optimization done (n=17): time 1.533e-06/0.1293, allocations: 0 / 0.4934 GB, free: 7.902 MB / 366.1 MB
Notification: Performance of matching and sorting (n=17): time 0.000607/0.1299, allocations: 259.5 kB / 0.4936 GB, free: 7.645 MB / 366.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 8.061e-05/0.13, allocations: 110.8 kB / 0.4937 GB, free: 7.512 MB / 366.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004302/0.1304, allocations: 384.5 kB / 0.4941 GB, free: 7.129 MB / 366.1 MB
Notification: Performance of collectPreVariables (initialization): time 2.853e-05/0.1305, allocations: 33.7 kB / 0.4941 GB, free: 7.09 MB / 366.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001252/0.1306, allocations: 152.5 kB / 0.4943 GB, free: 6.934 MB / 366.1 MB
Notification: Performance of collectInitialBindings (initialization): time 5.05e-05/0.1306, allocations: 51.58 kB / 0.4943 GB, free: 6.883 MB / 366.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 7.385e-05/0.1307, allocations: 45.7 kB / 0.4944 GB, free: 6.832 MB / 366.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001636/0.1309, allocations: 346.7 kB / 0.4947 GB, free: 6.484 MB / 366.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001118/0.131, allocations: 43.98 kB / 0.4948 GB, free: 6.441 MB / 366.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.00019/0.1312, allocations: 148.1 kB / 0.4949 GB, free: 6.254 MB / 366.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0003219/0.1315, allocations: 188.4 kB / 0.4951 GB, free: 6.039 MB / 366.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.1315, allocations: 0 / 0.4951 GB, free: 6.039 MB / 366.1 MB
Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004076/0.1319, allocations: 225.2 kB / 0.4953 GB, free: 5.812 MB / 366.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.536e-05/0.1319, allocations: 4 kB / 0.4953 GB, free: 5.809 MB / 366.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.1319, allocations: 4 kB / 0.4953 GB, free: 5.805 MB / 366.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 2.062e-05/0.132, allocations: 4 kB / 0.4953 GB, free: 5.801 MB / 366.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001296/0.1321, allocations: 32.17 kB / 0.4953 GB, free: 5.77 MB / 366.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.127e-06/0.1321, allocations: 4.125 kB / 0.4953 GB, free: 5.766 MB / 366.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001152/0.1322, allocations: 27.84 kB / 0.4954 GB, free: 5.738 MB / 366.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.282e-05/0.1322, allocations: 15.92 kB / 0.4954 GB, free: 5.723 MB / 366.1 MB
Warning: Assuming fixed start value for the following 3 variables:
         timer.Q:DISCRETE(flow=false fixed = true )  \"status of the timer\" type: Boolean
         timer.run:DISCRETE(fixed = true )  \"Flag: true while the timer is counting\" type: Boolean
         timer.tr:DISCRETE(flow=false fixed = true )  \"residual time\" type: Real
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 10
 * Number of states: 0 ()
 * Number of discrete variables: 22 ($PRE.timer.Sd,timer.startTime,$PRE.timer.startTime,$PRE.timer.Q,timer.Q,$PRE.timer.run,timer.run,$PRE.timer.tr,timer.tr,$PRE.ResetSignal.combiTimeTable.nextTimeEvent,$whenCondition3,$PRE.SetSignal.combiTimeTable.nextTimeEvent,$whenCondition2,$whenCondition1,ResetSignal.combiTimeTable.nextTimeEventScaled,$PRE.ResetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.combiTimeTable.nextTimeEvent,ResetSignal.y,SetSignal.combiTimeTable.nextTimeEventScaled,$PRE.SetSignal.combiTimeTable.nextTimeEventScaled,SetSignal.combiTimeTable.nextTimeEvent,timer.Sd)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (26):
 * Single equations (assignments): 26
 * 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.0002324/0.1325, allocations: 173.2 kB / 0.4955 GB, free: 5.543 MB / 366.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 4.702e-05/0.1325, allocations: 31.81 kB / 0.4956 GB, free: 5.512 MB / 366.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004661/0.133, allocations: 225.2 kB / 0.4958 GB, free: 5.281 MB / 366.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.995e-06/0.133, allocations: 0 / 0.4958 GB, free: 5.281 MB / 366.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.133, allocations: 0 / 0.4958 GB, free: 5.281 MB / 366.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.72e-06/0.133, allocations: 3.984 kB / 0.4958 GB, free: 5.277 MB / 366.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002874/0.1333, allocations: 264.5 kB / 0.496 GB, free: 4.977 MB / 366.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.1333, allocations: 0 / 0.496 GB, free: 4.977 MB / 366.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.167e-05/0.1333, allocations: 15.92 kB / 0.4961 GB, free: 4.961 MB / 366.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/0.1333, allocations: 0 / 0.4961 GB, free: 4.961 MB / 366.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.667e-05/0.1333, allocations: 8 kB / 0.4961 GB, free: 4.953 MB / 366.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.1333, allocations: 7.938 kB / 0.4961 GB, free: 4.945 MB / 366.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1333, allocations: 0 / 0.4961 GB, free: 4.945 MB / 366.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000431/0.1338, allocations: 251.5 kB / 0.4963 GB, free: 4.684 MB / 366.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 5.014e-05/0.1338, allocations: 27.8 kB / 0.4963 GB, free: 4.656 MB / 366.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.096e-05/0.1339, allocations: 7.984 kB / 0.4964 GB, free: 4.648 MB / 366.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.504e-05/0.134, allocations: 8 kB / 0.4964 GB, free: 4.641 MB / 366.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 5.428e-05/0.134, allocations: 19.97 kB / 0.4964 GB, free: 4.621 MB / 366.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.146e-05/0.134, allocations: 8 kB / 0.4964 GB, free: 4.613 MB / 366.1 MB
Notification: Performance of sorting global known variables: time 0.0003113/0.1343, allocations: 286.9 kB / 0.4967 GB, free: 4.336 MB / 366.1 MB
Notification: Performance of sort global known variables: time 8e-08/0.1343, allocations: 0 / 0.4967 GB, free: 4.336 MB / 366.1 MB
Notification: Performance of remove unused functions: time 0.0003216/0.1347, allocations: 67.88 kB / 0.4967 GB, free: 4.27 MB / 366.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: 13 ($whenCondition3,$whenCondition2,$whenCondition1,timer.Q,timer.tr,timer.run,timer.startTime,timer.Sd,SetSignal.combiTimeTable.nextTimeEvent,SetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.y,ResetSignal.combiTimeTable.nextTimeEvent,ResetSignal.combiTimeTable.nextTimeEventScaled)
 * Number of discrete states: 6 (timer.Sd,timer.startTime,SetSignal.combiTimeTable.nextTimeEvent,ResetSignal.combiTimeTable.nextTimeEvent,SetSignal.combiTimeTable.nextTimeEventScaled,ResetSignal.combiTimeTable.nextTimeEventScaled)
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (16):
 * Single equations (assignments): 9
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 7
 * 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.001496/0.1362, allocations: 442.9 kB / 0.4971 GB, free: 3.992 MB / 366.1 MB
Notification: Performance of simCode: created initialization part: time 0.0003653/0.1365, allocations: 147.8 kB / 0.4973 GB, free: 3.848 MB / 366.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.1365, allocations: 0 / 0.4973 GB, free: 3.848 MB / 366.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0001492/0.1367, allocations: 59.92 kB / 0.4973 GB, free: 3.789 MB / 366.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004143/0.1371, allocations: 73.22 kB / 0.4974 GB, free: 3.715 MB / 366.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008553/0.1379, allocations: 471.2 kB / 0.4979 GB, free: 3.23 MB / 366.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003886/0.1383, allocations: 0.7755 MB / 0.4986 GB, free: 2.43 MB / 366.1 MB
Notification: Performance of simCode: alias equations: time 0.0001777/0.1385, allocations: 42.27 kB / 0.4987 GB, free: 2.391 MB / 366.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 6.555e-05/0.1386, allocations: 27.42 kB / 0.4987 GB, free: 2.363 MB / 366.1 MB
Notification: Performance of SimCode: time 3.01e-07/0.1386, allocations: 0 / 0.4987 GB, free: 2.363 MB / 366.1 MB
Notification: Performance of Templates: time 0.01091/0.1495, allocations: 4.198 MB / 0.5028 GB, free: 14.2 MB / 382.1 MB
"
[Timeout remaining time 660]
make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.makefile [Timeout 660]
(rm -f IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.sim & ./IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On  -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Logical.Timers.Examples.testT_On.pipe 2>&1) [Timeout 480]
[Calling sys.exit(0), Time elapsed: 4.567764926701784]
Failed to read output from testmodel.py, exit status != 0:
0.15668450109660625 0.17222489300000002 0.043108138000000004
Calling exit ...
<OMPython.OMCSessionZMQ object at 0x7f80169957b0>