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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001596/0.001596, allocations: 100.4 kB / 19.7 MB, free: 2.125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001923/0.001923, allocations: 206 kB / 23 MB, free: 4.934 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.585/1.585, allocations: 230.6 MB / 256.8 MB, free: 7.789 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.06676/0.06676, allocations: 11.34 MB / 324.5 MB, free: 8.035 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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: IndustrialControlSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0021/0.0021, allocations: 63.91 kB / 452.2 MB, free: 9.816 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.113, allocations: 56.07 MB / 0.4964 GB, free: 1.648 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing): time 0.004213/0.1172, allocations: 2.13 MB / 0.4985 GB, free: 15.5 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002811/0.12, allocations: 1.433 MB / 0.4999 GB, free: 14.07 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002122/0.1202, allocations: 3.938 kB / 0.4999 GB, free: 14.06 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000935/0.1212, allocations: 281.8 kB / 0.5001 GB, free: 13.79 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007291/0.1219, allocations: 251 kB / 0.5004 GB, free: 13.54 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008795/0.1228, allocations: 314.4 kB / 0.5007 GB, free: 13.24 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005646/0.1233, allocations: 394.9 kB / 0.501 GB, free: 12.85 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001715/0.1235, allocations: 45.31 kB / 0.5011 GB, free: 12.8 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003624/0.1239, allocations: 175.2 kB / 0.5013 GB, free: 12.63 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002803/0.1241, allocations: 159.3 kB / 0.5014 GB, free: 12.48 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.734e-05/0.1242, allocations: 24 kB / 0.5014 GB, free: 12.45 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003397/0.1245, allocations: 139.8 kB / 0.5016 GB, free: 12.32 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001197/0.1247, allocations: 79.73 kB / 0.5016 GB, free: 12.24 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001436/0.1248, allocations: 107.3 kB / 0.5017 GB, free: 12.13 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006346/0.1254, allocations: 438.2 kB / 0.5022 GB, free: 11.7 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.1254, allocations: 0 / 0.5022 GB, free: 11.7 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1254, allocations: 0 / 0.5022 GB, free: 11.7 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.52e-05/0.1255, allocations: 0 / 0.5022 GB, free: 11.7 MB / 382.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.001259/0.1267, allocations: 0.6283 MB / 0.5028 GB, free: 11.03 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.77e-05/0.1267, allocations: 8.031 kB / 0.5028 GB, free: 11.02 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002311/0.127, allocations: 48.69 kB / 0.5028 GB, free: 10.98 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004968/0.1275, allocations: 282.3 kB / 0.5031 GB, free: 10.68 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.262e-05/0.1275, allocations: 12.38 kB / 0.5031 GB, free: 10.67 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.342e-05/0.1275, allocations: 15.94 kB / 0.5031 GB, free: 10.65 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004068/0.1279, allocations: 224.9 kB / 0.5033 GB, free: 10.41 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.769e-06/0.128, allocations: 0 / 0.5033 GB, free: 10.41 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.292e-05/0.128, allocations: 4 kB / 0.5033 GB, free: 10.41 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.253e-06/0.128, allocations: 7.938 kB / 0.5033 GB, free: 10.4 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002611/0.1282, allocations: 95.94 kB / 0.5034 GB, free: 10.31 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007951/0.129, allocations: 436 kB / 0.5039 GB, free: 9.852 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004646/0.1295, allocations: 162.7 kB / 0.504 GB, free: 9.684 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001666/0.1297, allocations: 68.91 kB / 0.5041 GB, free: 9.613 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.667e-05/0.1297, allocations: 0 / 0.5041 GB, free: 9.613 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004041/0.1301, allocations: 236.3 kB / 0.5043 GB, free: 9.352 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 1.482e-06/0.1301, allocations: 3.938 kB / 0.5043 GB, free: 9.348 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.0007575/0.1308, allocations: 329.2 kB / 0.5046 GB, free: 9.02 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.531e-05/0.1309, allocations: 85.11 kB / 0.5047 GB, free: 8.918 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004917/0.1314, allocations: 397.6 kB / 0.5051 GB, free: 8.52 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.371e-05/0.1314, allocations: 29.7 kB / 0.5051 GB, free: 8.484 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00015/0.1316, allocations: 176.5 kB / 0.5053 GB, free: 8.309 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.825e-05/0.1317, allocations: 63.56 kB / 0.5053 GB, free: 8.246 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.724e-05/0.1318, allocations: 53.7 kB / 0.5054 GB, free: 8.188 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001792/0.1319, allocations: 346.8 kB / 0.5057 GB, free: 7.84 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001563/0.1321, allocations: 55.97 kB / 0.5058 GB, free: 7.785 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003055/0.1324, allocations: 247.2 kB / 0.506 GB, free: 7.477 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000472/0.1329, allocations: 250.9 kB / 0.5062 GB, free: 7.191 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.357e-06/0.1329, allocations: 4 kB / 0.5062 GB, free: 7.188 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005771/0.1335, allocations: 281 kB / 0.5065 GB, free: 6.906 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.683e-05/0.1335, allocations: 4 kB / 0.5065 GB, free: 6.902 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.004e-05/0.1335, allocations: 4 kB / 0.5065 GB, free: 6.898 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.917e-05/0.1335, allocations: 4.344 kB / 0.5065 GB, free: 6.895 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001601/0.1337, allocations: 47.91 kB / 0.5066 GB, free: 6.848 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.668e-06/0.1337, allocations: 4 kB / 0.5066 GB, free: 6.844 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001758/0.1338, allocations: 31.83 kB / 0.5066 GB, free: 6.812 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.822e-05/0.1339, allocations: 8 kB / 0.5066 GB, free: 6.805 MB / 382.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.0002651/0.1341, allocations: 189.6 kB / 0.5068 GB, free: 6.609 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.178e-05/0.1342, allocations: 39.7 kB / 0.5068 GB, free: 6.57 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006097/0.1348, allocations: 288.8 kB / 0.5071 GB, free: 6.285 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.011e-06/0.1348, allocations: 4 kB / 0.5071 GB, free: 6.281 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.1348, allocations: 3.938 kB / 0.5071 GB, free: 6.277 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.017e-06/0.1348, allocations: 0 / 0.5071 GB, free: 6.277 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002967/0.1351, allocations: 237 kB / 0.5073 GB, free: 6.016 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.1351, allocations: 0 / 0.5073 GB, free: 6.016 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.337e-05/0.1352, allocations: 19.98 kB / 0.5074 GB, free: 5.996 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.935e-06/0.1352, allocations: 0 / 0.5074 GB, free: 5.996 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.162e-05/0.1352, allocations: 11.92 kB / 0.5074 GB, free: 5.984 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.1352, allocations: 0 / 0.5074 GB, free: 5.984 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.1352, allocations: 0 / 0.5074 GB, free: 5.984 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005684/0.1358, allocations: 306.2 kB / 0.5077 GB, free: 5.668 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.621e-05/0.1359, allocations: 39.75 kB / 0.5077 GB, free: 5.629 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.889e-05/0.1359, allocations: 4 kB / 0.5077 GB, free: 5.625 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001391/0.136, allocations: 15.98 kB / 0.5077 GB, free: 5.609 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.382e-05/0.1361, allocations: 23.91 kB / 0.5077 GB, free: 5.586 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.235e-05/0.1361, allocations: 15.98 kB / 0.5078 GB, free: 5.57 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003365/0.1365, allocations: 283.2 kB / 0.508 GB, free: 5.293 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1365, allocations: 0 / 0.508 GB, free: 5.293 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003841/0.1369, allocations: 75.88 kB / 0.5081 GB, free: 5.219 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: 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 (22): * Single equations (assignments): 13 * 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.00175/0.1386, allocations: 488.1 kB / 0.5086 GB, free: 4.914 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004961/0.1391, allocations: 181.5 kB / 0.5087 GB, free: 4.738 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.1391, allocations: 0 / 0.5087 GB, free: 4.738 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002099/0.1393, allocations: 87.89 kB / 0.5088 GB, free: 4.652 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004577/0.1398, allocations: 96.28 kB / 0.5089 GB, free: 4.574 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00105/0.1408, allocations: 0.5665 MB / 0.5095 GB, free: 3.973 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001931/0.141, allocations: 177.1 kB / 0.5096 GB, free: 3.773 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.054e-05/0.1411, allocations: 35.42 kB / 0.5097 GB, free: 3.738 MB / 382.1 MB Notification: Performance of SimCode: time 3.7e-07/0.1411, allocations: 0 / 0.5097 GB, free: 3.738 MB / 382.1 MB Notification: Performance of Templates: time 0.2016/0.3427, allocations: 4.845 MB / 0.5144 GB, free: 23.04 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: 8.015053822193295] Failed to read output from testmodel.py, exit status != 0: 0.35089612286537886 0.36211562399999997 0.23402045400000002 Calling exit ...