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.001428/0.001428, allocations: 107.6 kB / 18.95 MB, free: 2.805 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.001686/0.001686, allocations: 214 kB / 22.24 MB, free: 5.117 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.526/1.526, allocations: 230.6 MB / 256 MB, free: 7.797 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.0681/0.0681, allocations: 11.34 MB / 323.8 MB, free: 8.043 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.00239/0.00239, allocations: 63.91 kB / 451.5 MB, free: 9.844 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.116, allocations: 56.08 MB / 0.4956 GB, free: 1.664 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing): time 0.004111/0.1201, allocations: 2.115 MB / 0.4977 GB, free: 15.54 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002777/0.1229, allocations: 1.434 MB / 0.4991 GB, free: 14.09 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001749/0.1231, allocations: 7.938 kB / 0.4991 GB, free: 14.09 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008598/0.1239, allocations: 283.1 kB / 0.4994 GB, free: 13.81 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006703/0.1246, allocations: 247 kB / 0.4996 GB, free: 13.57 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008047/0.1254, allocations: 310 kB / 0.4999 GB, free: 13.27 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005024/0.1259, allocations: 390.9 kB / 0.5003 GB, free: 12.88 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001599/0.1261, allocations: 53.3 kB / 0.5003 GB, free: 12.83 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003421/0.1264, allocations: 179.2 kB / 0.5005 GB, free: 12.65 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002644/0.1267, allocations: 151.3 kB / 0.5007 GB, free: 12.5 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.428e-05/0.1267, allocations: 24 kB / 0.5007 GB, free: 12.48 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003019/0.127, allocations: 143.8 kB / 0.5008 GB, free: 12.34 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001127/0.1272, allocations: 83.75 kB / 0.5009 GB, free: 12.26 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001337/0.1273, allocations: 115.2 kB / 0.501 GB, free: 12.14 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005725/0.1279, allocations: 426.2 kB / 0.5014 GB, free: 11.73 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.906e-06/0.1279, allocations: 0 / 0.5014 GB, free: 11.73 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1279, allocations: 0 / 0.5014 GB, free: 11.73 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.151e-05/0.1279, allocations: 0 / 0.5014 GB, free: 11.73 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.001186/0.1291, allocations: 0.6322 MB / 0.502 GB, free: 11.05 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.53e-05/0.1291, allocations: 12.03 kB / 0.502 GB, free: 11.04 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001931/0.1293, allocations: 44.7 kB / 0.5021 GB, free: 11 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005091/0.1298, allocations: 278.3 kB / 0.5023 GB, free: 10.7 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.902e-05/0.1298, allocations: 12.38 kB / 0.5024 GB, free: 10.69 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.633e-05/0.1299, allocations: 15.94 kB / 0.5024 GB, free: 10.68 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004383/0.1303, allocations: 221 kB / 0.5026 GB, free: 10.44 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.282e-05/0.1303, allocations: 3.938 kB / 0.5026 GB, free: 10.44 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.812e-05/0.1303, allocations: 0 / 0.5026 GB, free: 10.44 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.595e-06/0.1303, allocations: 4 kB / 0.5026 GB, free: 10.43 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002657/0.1306, allocations: 103.9 kB / 0.5027 GB, free: 10.33 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008359/0.1314, allocations: 444 kB / 0.5031 GB, free: 9.867 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004793/0.1319, allocations: 158 kB / 0.5033 GB, free: 9.707 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000165/0.1321, allocations: 69 kB / 0.5033 GB, free: 9.637 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.747e-05/0.1321, allocations: 0 / 0.5033 GB, free: 9.637 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000388/0.1325, allocations: 236.3 kB / 0.5036 GB, free: 9.375 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 1.382e-06/0.1325, allocations: 0 / 0.5036 GB, free: 9.375 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.0007681/0.1333, allocations: 333.2 kB / 0.5039 GB, free: 9.043 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.312e-05/0.1333, allocations: 81.11 kB / 0.504 GB, free: 8.945 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004846/0.1338, allocations: 397.6 kB / 0.5043 GB, free: 8.547 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.32e-05/0.1338, allocations: 33.7 kB / 0.5044 GB, free: 8.508 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001576/0.134, allocations: 180.4 kB / 0.5045 GB, free: 8.328 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.682e-05/0.1341, allocations: 55.58 kB / 0.5046 GB, free: 8.273 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.695e-05/0.1342, allocations: 53.69 kB / 0.5046 GB, free: 8.215 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001797/0.1343, allocations: 346.8 kB / 0.505 GB, free: 7.867 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001584/0.1345, allocations: 59.95 kB / 0.505 GB, free: 7.809 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003023/0.1348, allocations: 247.3 kB / 0.5053 GB, free: 7.5 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004616/0.1353, allocations: 254.9 kB / 0.5055 GB, free: 7.211 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.1353, allocations: 0 / 0.5055 GB, free: 7.211 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005537/0.1358, allocations: 277.1 kB / 0.5058 GB, free: 6.934 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/0.1358, allocations: 8.344 kB / 0.5058 GB, free: 6.926 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.1358, allocations: 7.938 kB / 0.5058 GB, free: 6.918 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.854e-05/0.1359, allocations: 8 kB / 0.5058 GB, free: 6.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001504/0.136, allocations: 43.84 kB / 0.5058 GB, free: 6.867 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.019e-05/0.136, allocations: 4 kB / 0.5058 GB, free: 6.863 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001649/0.1362, allocations: 35.77 kB / 0.5059 GB, free: 6.828 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.728e-05/0.1362, allocations: 8 kB / 0.5059 GB, free: 6.82 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.0002437/0.1365, allocations: 190.3 kB / 0.5061 GB, free: 6.625 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.974e-05/0.1365, allocations: 39.7 kB / 0.5061 GB, free: 6.586 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000593/0.1371, allocations: 287 kB / 0.5064 GB, free: 6.305 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.562e-06/0.1371, allocations: 4 kB / 0.5064 GB, free: 6.301 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.1371, allocations: 0 / 0.5064 GB, free: 6.301 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-06/0.1371, allocations: 3.984 kB / 0.5064 GB, free: 6.297 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000302/0.1374, allocations: 241 kB / 0.5066 GB, free: 6.031 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.285e-06/0.1374, allocations: 0 / 0.5066 GB, free: 6.031 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.859e-05/0.1375, allocations: 12 kB / 0.5066 GB, free: 6.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.54e-06/0.1375, allocations: 4 kB / 0.5066 GB, free: 6.016 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.002e-05/0.1375, allocations: 7.984 kB / 0.5066 GB, free: 6.008 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.643e-06/0.1376, allocations: 4 kB / 0.5066 GB, free: 6.004 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.1376, allocations: 0 / 0.5066 GB, free: 6.004 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005825/0.1381, allocations: 308.6 kB / 0.5069 GB, free: 5.684 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.703e-05/0.1382, allocations: 27.77 kB / 0.507 GB, free: 5.656 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.097e-05/0.1383, allocations: 8 kB / 0.507 GB, free: 5.648 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001462/0.1384, allocations: 23.97 kB / 0.507 GB, free: 5.625 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.907e-05/0.1385, allocations: 23.91 kB / 0.507 GB, free: 5.602 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.25e-05/0.1385, allocations: 4 kB / 0.507 GB, free: 5.598 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003339/0.1388, allocations: 287.2 kB / 0.5073 GB, free: 5.316 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1388, allocations: 0 / 0.5073 GB, free: 5.316 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003794/0.1392, allocations: 79.86 kB / 0.5074 GB, free: 5.238 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.001724/0.1409, allocations: 487.2 kB / 0.5078 GB, free: 4.934 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004724/0.1414, allocations: 188.9 kB / 0.508 GB, free: 4.754 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.538e-06/0.1414, allocations: 4 kB / 0.508 GB, free: 4.75 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002059/0.1416, allocations: 79.91 kB / 0.5081 GB, free: 4.672 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004498/0.1421, allocations: 79.75 kB / 0.5082 GB, free: 4.605 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001021/0.1431, allocations: 0.5368 MB / 0.5087 GB, free: 4.039 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001823/0.1433, allocations: 173.1 kB / 0.5089 GB, free: 3.844 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001433/0.1434, allocations: 42.95 kB / 0.5089 GB, free: 3.805 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.31e-05/0.1435, allocations: 35.42 kB / 0.5089 GB, free: 3.77 MB / 382.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1435, allocations: 0 / 0.5089 GB, free: 3.77 MB / 382.1 MB Notification: Performance of Templates: time 0.2034/0.3469, allocations: 4.841 MB / 0.5137 GB, free: 23.02 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.018424462527037] Failed to read output from testmodel.py, exit status != 0: 0.3554750718176365 0.36763032300000004 0.23674061100000002 Calling exit ...