Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.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.00177/0.00177, 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.001857/0.001857, allocations: 192.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.503/1.503, allocations: 225.6 MB / 251 MB, free: 12.99 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.0658/0.0658, 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.Logical.Counter.Examples.countZeroCrossing,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing")
translateModel(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.0019/0.0019, allocations: 67.89 kB / 443 MB, free: 6.422 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1115, allocations: 54.88 MB / 497.9 MB, free: 15.43 MB / 366.1 MB
Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing): time 0.003905/0.1154, allocations: 2.194 MB / 0.4884 GB, free: 13.22 MB / 366.1 MB
Notification: Performance of NFInst.instExpressions: time 0.002425/0.1178, allocations: 1.348 MB / 0.4897 GB, free: 11.86 MB / 366.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001338/0.118, allocations: 7.938 kB / 0.4897 GB, free: 11.86 MB / 366.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0008552/0.1188, allocations: 271.2 kB / 0.49 GB, free: 11.59 MB / 366.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0004657/0.1193, allocations: 203.2 kB / 0.4902 GB, free: 11.39 MB / 366.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0008697/0.1202, allocations: 360.8 kB / 0.4905 GB, free: 11.04 MB / 366.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0004502/0.1206, allocations: 379 kB / 0.4909 GB, free: 10.67 MB / 366.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001487/0.1208, allocations: 45.33 kB / 0.4909 GB, free: 10.62 MB / 366.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0002556/0.121, allocations: 167.3 kB / 0.4911 GB, free: 10.46 MB / 366.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0002118/0.1212, allocations: 171.2 kB / 0.4912 GB, free: 10.29 MB / 366.1 MB
Notification: Performance of NFPackage.collectConstants: time 4.589e-05/0.1213, allocations: 20 kB / 0.4913 GB, free: 10.27 MB / 366.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0002647/0.1215, allocations: 135.9 kB / 0.4914 GB, free: 10.14 MB / 366.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0001091/0.1216, allocations: 87.67 kB / 0.4915 GB, free: 10.05 MB / 366.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0001466/0.1218, allocations: 123.2 kB / 0.4916 GB, free: 9.93 MB / 366.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0005333/0.1223, allocations: 398.4 kB / 0.492 GB, free: 9.539 MB / 366.1 MB
Notification: Performance of FrontEnd - DAE generated: time 6.642e-06/0.1223, allocations: 4 kB / 0.492 GB, free: 9.535 MB / 366.1 MB
Notification: Performance of FrontEnd: time 1.212e-06/0.1223, allocations: 3.938 kB / 0.492 GB, free: 9.531 MB / 366.1 MB
Notification: Performance of Transformations before backend: time 6.823e-06/0.1223, allocations: 0 / 0.492 GB, free: 9.531 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: 32
 * Number of variables: 32
Notification: Performance of Generate backend data structure: time 0.001145/0.1235, allocations: 0.6206 MB / 0.4926 GB, free: 8.867 MB / 366.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.229e-05/0.1235, allocations: 8.031 kB / 0.4926 GB, free: 8.859 MB / 366.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 8.985e-05/0.1236, allocations: 48.62 kB / 0.4926 GB, free: 8.812 MB / 366.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004324/0.124, allocations: 266.4 kB / 0.4929 GB, free: 8.527 MB / 366.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.256e-05/0.1241, allocations: 8.375 kB / 0.4929 GB, free: 8.52 MB / 366.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 3.558e-05/0.1241, allocations: 15.94 kB / 0.4929 GB, free: 8.504 MB / 366.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004255/0.1245, allocations: 200.1 kB / 0.4931 GB, free: 8.293 MB / 366.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 9.819e-06/0.1245, allocations: 0 / 0.4931 GB, free: 8.293 MB / 366.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.522e-05/0.1246, allocations: 7.984 kB / 0.4931 GB, free: 8.285 MB / 366.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.043e-06/0.1246, allocations: 4 kB / 0.4931 GB, free: 8.281 MB / 366.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002617/0.1248, allocations: 84.48 kB / 0.4932 GB, free: 8.199 MB / 366.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001027/0.1258, allocations: 0.511 MB / 0.4937 GB, free: 7.645 MB / 366.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0005103/0.1264, allocations: 154.6 kB / 0.4938 GB, free: 7.484 MB / 366.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001737/0.1265, allocations: 72.94 kB / 0.4939 GB, free: 7.41 MB / 366.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 2.606e-05/0.1266, allocations: 4 kB / 0.4939 GB, free: 7.406 MB / 366.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003684/0.1269, allocations: 174.6 kB / 0.4941 GB, free: 7.219 MB / 366.1 MB
Notification: Performance of pre-optimization done (n=21): time 1.412e-06/0.1269, allocations: 0 / 0.4941 GB, free: 7.219 MB / 366.1 MB
Notification: Performance of matching and sorting (n=21): time 0.000798/0.1277, allocations: 320.5 kB / 0.4944 GB, free: 6.902 MB / 366.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001134/0.1278, allocations: 132.5 kB / 0.4945 GB, free: 6.742 MB / 366.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004544/0.1283, allocations: 389.6 kB / 0.4949 GB, free: 6.352 MB / 366.1 MB
Notification: Performance of collectPreVariables (initialization): time 4.71e-05/0.1283, allocations: 37.7 kB / 0.4949 GB, free: 6.309 MB / 366.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001347/0.1285, allocations: 160.5 kB / 0.4951 GB, free: 6.148 MB / 366.1 MB
Notification: Performance of collectInitialBindings (initialization): time 6.893e-05/0.1285, allocations: 59.52 kB / 0.4951 GB, free: 6.09 MB / 366.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 8.996e-05/0.1286, allocations: 53.69 kB / 0.4952 GB, free: 6.031 MB / 366.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001752/0.1288, allocations: 350.8 kB / 0.4955 GB, free: 5.68 MB / 366.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001632/0.129, allocations: 55.91 kB / 0.4956 GB, free: 5.625 MB / 366.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002733/0.1292, allocations: 179.3 kB / 0.4957 GB, free: 5.395 MB / 366.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0004685/0.1297, allocations: 255 kB / 0.496 GB, free: 5.105 MB / 366.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.1297, allocations: 0 / 0.496 GB, free: 5.105 MB / 366.1 MB
Notification: Performance of matching and sorting (n=31) (initialization): time 0.000544/0.1303, allocations: 277.1 kB / 0.4962 GB, free: 4.828 MB / 366.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.541e-05/0.1303, allocations: 6.031 kB / 0.4962 GB, free: 4.824 MB / 366.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.235e-06/0.1303, allocations: 7.984 kB / 0.4963 GB, free: 4.816 MB / 366.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.597e-05/0.1303, allocations: 4 kB / 0.4963 GB, free: 4.812 MB / 366.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001499/0.1305, allocations: 35.92 kB / 0.4963 GB, free: 4.777 MB / 366.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.087e-05/0.1305, allocations: 4 kB / 0.4963 GB, free: 4.773 MB / 366.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001634/0.1306, allocations: 31.83 kB / 0.4963 GB, free: 4.742 MB / 366.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.169e-05/0.1307, allocations: 16.22 kB / 0.4963 GB, free: 4.727 MB / 366.1 MB
Warning: Assuming fixed start value for the following 6 variables:
         equal.y:DISCRETE(flow=false fixed = true )  \"output\" type: Boolean
         counter.CUd:DISCRETE(fixed = true )  type: Boolean
         counter.CDd:DISCRETE(fixed = true )  type: Boolean
         counter.Sd:DISCRETE(fixed = true )  type: Boolean
         counter.Q:DISCRETE(flow=false fixed = true )  \"status of the counter (1: counting, 0: not counting)\" type: Boolean
         counter.Value:DISCRETE(start = 0 fixed = true )  type: Integer
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 13
 * Number of states: 0 ()
 * Number of discrete variables: 26 ($PRE.equal.y,equal.y,$PRE.counter.CUd,counter.CUd,$PRE.counter.CDd,counter.CDd,$PRE.counter.Sd,counter.Sd,$PRE.counter.Q,counter.Q,$PRE.counter.Value,counter.Value,$whenCondition4,$PRE.reset.combiTimeTable.nextTimeEvent,$whenCondition3,$PRE.set.combiTimeTable.nextTimeEvent,$whenCondition2,$whenCondition1,reset.combiTimeTable.nextTimeEventScaled,$PRE.reset.combiTimeTable.nextTimeEventScaled,reset.combiTimeTable.nextTimeEvent,reset.y,set.combiTimeTable.nextTimeEventScaled,$PRE.set.combiTimeTable.nextTimeEventScaled,set.combiTimeTable.nextTimeEvent,set.y)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (31):
 * Single equations (assignments): 31
 * 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.0002397/0.1309, allocations: 181.5 kB / 0.4965 GB, free: 4.539 MB / 366.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 6.124e-05/0.131, allocations: 39.7 kB / 0.4966 GB, free: 4.5 MB / 366.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006099/0.1316, allocations: 267.1 kB / 0.4968 GB, free: 4.238 MB / 366.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-05/0.1316, allocations: 7.938 kB / 0.4968 GB, free: 4.23 MB / 366.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.1316, allocations: 128 / 0.4968 GB, free: 4.23 MB / 366.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.582e-06/0.1316, allocations: 4 kB / 0.4968 GB, free: 4.227 MB / 366.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003302/0.1319, allocations: 280.5 kB / 0.4971 GB, free: 3.91 MB / 366.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.1319, allocations: 0 / 0.4971 GB, free: 3.91 MB / 366.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.891e-05/0.132, allocations: 19.98 kB / 0.4971 GB, free: 3.891 MB / 366.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.132, allocations: 0 / 0.4971 GB, free: 3.891 MB / 366.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.14e-05/0.132, allocations: 7.938 kB / 0.4971 GB, free: 3.883 MB / 366.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.132, allocations: 0 / 0.4971 GB, free: 3.883 MB / 366.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/0.132, allocations: 7.984 kB / 0.4971 GB, free: 3.875 MB / 366.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005711/0.1326, allocations: 292.6 kB / 0.4974 GB, free: 3.57 MB / 366.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 5.923e-05/0.1327, allocations: 35.75 kB / 0.4974 GB, free: 3.535 MB / 366.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.471e-05/0.1327, allocations: 11.98 kB / 0.4974 GB, free: 3.523 MB / 366.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001524/0.1329, allocations: 11.98 kB / 0.4975 GB, free: 3.512 MB / 366.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 6.562e-05/0.1329, allocations: 23.97 kB / 0.4975 GB, free: 3.488 MB / 366.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.743e-05/0.133, allocations: 15.88 kB / 0.4975 GB, free: 3.473 MB / 366.1 MB
Notification: Performance of sorting global known variables: time 0.0003414/0.1333, allocations: 275.2 kB / 0.4978 GB, free: 3.203 MB / 366.1 MB
Notification: Performance of sort global known variables: time 8e-08/0.1333, allocations: 0 / 0.4978 GB, free: 3.203 MB / 366.1 MB
Notification: Performance of remove unused functions: time 0.0003664/0.1337, allocations: 75.92 kB / 0.4978 GB, free: 3.129 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: 16 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,counter.Q,counter.Value,counter.CUd,counter.CDd,counter.Sd,set.y,set.combiTimeTable.nextTimeEvent,set.combiTimeTable.nextTimeEventScaled,reset.y,reset.combiTimeTable.nextTimeEvent,reset.combiTimeTable.nextTimeEventScaled,equal.y)
 * Number of discrete states: 8 (counter.Value,counter.Sd,counter.CUd,counter.CDd,set.combiTimeTable.nextTimeEvent,reset.combiTimeTable.nextTimeEvent,set.combiTimeTable.nextTimeEventScaled,reset.combiTimeTable.nextTimeEventScaled)
 * 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.001634/0.1353, allocations: 452.4 kB / 0.4983 GB, free: 2.836 MB / 366.1 MB
Notification: Performance of simCode: created initialization part: time 0.0004773/0.1358, allocations: 175.8 kB / 0.4984 GB, free: 2.664 MB / 366.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.1358, allocations: 0 / 0.4984 GB, free: 2.664 MB / 366.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0002014/0.136, allocations: 83.83 kB / 0.4985 GB, free: 2.582 MB / 366.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004375/0.1364, allocations: 75.83 kB / 0.4986 GB, free: 2.516 MB / 366.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009037/0.1373, allocations: 0.5021 MB / 0.4991 GB, free: 1.98 MB / 366.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004738/0.1378, allocations: 0.779 MB / 0.4998 GB, free: 1.176 MB / 366.1 MB
Notification: Performance of simCode: alias equations: time 0.000128/0.1379, allocations: 46.94 kB / 0.4999 GB, free: 1.133 MB / 366.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 7.424e-05/0.138, allocations: 27.44 kB / 0.4999 GB, free: 1.105 MB / 366.1 MB
Notification: Performance of SimCode: time 3.9e-07/0.138, allocations: 0 / 0.4999 GB, free: 1.105 MB / 366.1 MB
Notification: Performance of Templates: time 0.01036/0.1484, allocations: 4.619 MB / 0.5044 GB, free: 12.52 MB / 382.1 MB
"
[Timeout remaining time 660]
make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.makefile [Timeout 660]
(rm -f IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.sim & ./IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing  -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.pipe 2>&1) [Timeout 480]
[Calling sys.exit(0), Time elapsed: 5.1266277292743325]
Failed to read output from testmodel.py, exit status != 0:
0.15737736970186234 0.37520208299999996 0.048614624
Calling exit ...
<OMPython.OMCSessionZMQ object at 0x7f7df75757b0>