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 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00207/0.00207, allocations: 106.3 kB / 18.19 MB, free: 3.879 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002651/0.002651, allocations: 188.4 kB / 21.34 MB, free: 0.7383 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.438/1.438, allocations: 225.6 MB / 249.9 MB, free: 3.215 MB / 190.1 MB [Timeout remaining time 88] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.06222/0.06222, allocations: 11.35 MB / 316.4 MB, free: 492 kB / 238.1 MB [Timeout remaining time 90] Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/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=500,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing") translateModel(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing") [Timeout 660] Notification: Performance of FrontEnd - loaded program: time 0.002022/0.002022, allocations: 71.89 kB / 441.1 MB, free: 6.238 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2531/0.2551, allocations: 54.82 MB / 495.9 MB, free: 24.25 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing): time 0.003424/0.2586, allocations: 2.177 MB / 498 MB, free: 22.73 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002006/0.2606, allocations: 1.331 MB / 499.4 MB, free: 21.83 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000138/0.2607, allocations: 6.844 kB / 499.4 MB, free: 21.82 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000783/0.2615, allocations: 264.1 kB / 499.6 MB, free: 21.75 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004428/0.2619, allocations: 195.7 kB / 499.8 MB, free: 21.66 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008497/0.2628, allocations: 366 kB / 0.4885 GB, free: 21.42 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003777/0.2632, allocations: 376.3 kB / 0.4888 GB, free: 21.2 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001428/0.2633, allocations: 41.44 kB / 0.4889 GB, free: 21.17 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002068/0.2635, allocations: 164.7 kB / 0.489 GB, free: 21.07 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001758/0.2637, allocations: 161.8 kB / 0.4892 GB, free: 20.96 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.383e-05/0.2637, allocations: 24.75 kB / 0.4892 GB, free: 20.96 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002399/0.264, allocations: 134 kB / 0.4893 GB, free: 20.9 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.79e-05/0.2641, allocations: 82.19 kB / 0.4894 GB, free: 20.84 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001119/0.2642, allocations: 130.8 kB / 0.4895 GB, free: 20.74 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004289/0.2646, allocations: 400.2 kB / 0.4899 GB, free: 20.47 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.2646, allocations: 0 / 0.4899 GB, free: 20.47 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2646, allocations: 0 / 0.4899 GB, free: 20.47 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.833e-06/0.2646, allocations: 1.25 kB / 0.4899 GB, free: 20.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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.000967/0.2656, allocations: 0.6965 MB / 0.4906 GB, free: 19.82 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.696e-05/0.2656, allocations: 13.3 kB / 0.4906 GB, free: 19.81 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.527e-05/0.2657, allocations: 37.05 kB / 0.4906 GB, free: 19.79 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003714/0.2661, allocations: 336.2 kB / 0.491 GB, free: 19.48 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.226e-05/0.2661, allocations: 6.438 kB / 0.491 GB, free: 19.48 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.427e-05/0.2661, allocations: 17.66 kB / 0.491 GB, free: 19.47 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003618/0.2665, allocations: 203 kB / 0.4912 GB, free: 19.32 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/0.2665, allocations: 0 / 0.4912 GB, free: 19.32 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.396e-05/0.2665, allocations: 9.328 kB / 0.4912 GB, free: 19.32 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/0.2665, allocations: 4.312 kB / 0.4912 GB, free: 19.32 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002341/0.2668, allocations: 88.91 kB / 0.4913 GB, free: 19.28 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006894/0.2675, allocations: 0.5314 MB / 0.4918 GB, free: 18.8 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004655/0.2679, allocations: 153.2 kB / 0.4919 GB, free: 18.71 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001451/0.2681, allocations: 66.05 kB / 0.492 GB, free: 18.67 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3e-05/0.2681, allocations: 7.281 kB / 0.492 GB, free: 18.67 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003053/0.2684, allocations: 175.3 kB / 0.4922 GB, free: 18.54 MB / 366.1 MB Notification: Performance of pre-optimization done (n=21): time 1.462e-06/0.2684, allocations: 0 / 0.4922 GB, free: 18.54 MB / 366.1 MB Notification: Performance of matching and sorting (n=21): time 0.0006928/0.2691, allocations: 327.6 kB / 0.4925 GB, free: 18.37 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.715e-05/0.2692, allocations: 133.1 kB / 0.4926 GB, free: 18.21 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003755/0.2695, allocations: 383.5 kB / 0.493 GB, free: 17.98 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.486e-05/0.2696, allocations: 37.92 kB / 0.493 GB, free: 17.94 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.944e-05/0.2696, allocations: 162.8 kB / 0.4932 GB, free: 17.79 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.238e-05/0.2697, allocations: 60.52 kB / 0.4932 GB, free: 17.74 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.458e-05/0.2698, allocations: 49.89 kB / 0.4933 GB, free: 17.71 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.683e-05/0.2698, allocations: 352.5 kB / 0.4936 GB, free: 17.36 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000136/0.27, allocations: 51.56 kB / 0.4937 GB, free: 17.34 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001869/0.2702, allocations: 180.9 kB / 0.4938 GB, free: 17.15 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003683/0.2705, allocations: 253.5 kB / 0.4941 GB, free: 16.95 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.2705, allocations: 0 / 0.4941 GB, free: 16.95 MB / 366.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004606/0.271, allocations: 281.3 kB / 0.4944 GB, free: 16.8 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.911e-05/0.271, allocations: 9.469 kB / 0.4944 GB, free: 16.79 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.271, allocations: 3.281 kB / 0.4944 GB, free: 16.79 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.027e-05/0.271, allocations: 4.375 kB / 0.4944 GB, free: 16.79 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001412/0.2712, allocations: 37.47 kB / 0.4944 GB, free: 16.78 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.015e-05/0.2712, allocations: 4.312 kB / 0.4944 GB, free: 16.78 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001529/0.2713, allocations: 32.39 kB / 0.4944 GB, free: 16.76 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.974e-05/0.2714, allocations: 13.94 kB / 0.4945 GB, free: 16.76 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.0002103/0.2716, allocations: 176.6 kB / 0.4946 GB, free: 16.61 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.387e-05/0.2716, allocations: 47.55 kB / 0.4947 GB, free: 16.57 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005111/0.2721, allocations: 270.1 kB / 0.4949 GB, free: 16.43 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.549e-06/0.2721, allocations: 10.73 kB / 0.4949 GB, free: 16.43 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.2722, allocations: 0 / 0.4949 GB, free: 16.43 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.2722, allocations: 1.344 kB / 0.4949 GB, free: 16.43 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002414/0.2724, allocations: 309.3 kB / 0.4952 GB, free: 16.13 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.2724, allocations: 5.031 kB / 0.4952 GB, free: 16.12 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.547e-05/0.2725, allocations: 9.656 kB / 0.4952 GB, free: 16.12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.527e-06/0.2725, allocations: 5.016 kB / 0.4952 GB, free: 16.12 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.789e-05/0.2725, allocations: 11.34 kB / 0.4953 GB, free: 16.11 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.432e-06/0.2725, allocations: 0 / 0.4953 GB, free: 16.11 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.2725, allocations: 1.312 kB / 0.4953 GB, free: 16.11 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000463/0.273, allocations: 293.8 kB / 0.4955 GB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.579e-05/0.273, allocations: 113 kB / 0.4956 GB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.83e-05/0.2731, allocations: 7.562 kB / 0.4957 GB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001437/0.2732, allocations: 17.62 kB / 0.4957 GB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.129e-05/0.2733, allocations: 14.77 kB / 0.4957 GB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.575e-05/0.2733, allocations: 19.08 kB / 0.4957 GB, free: 15.79 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002475/0.2735, allocations: 275.5 kB / 0.496 GB, free: 15.62 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2735, allocations: 0 / 0.496 GB, free: 15.62 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003633/0.2739, allocations: 74.42 kB / 0.496 GB, free: 15.6 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.00151/0.2754, allocations: 456.3 kB / 0.4965 GB, free: 15.38 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004171/0.2758, allocations: 181.6 kB / 0.4966 GB, free: 15.3 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.2758, allocations: 0 / 0.4966 GB, free: 15.3 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001734/0.276, allocations: 78.12 kB / 0.4967 GB, free: 15.27 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004112/0.2764, allocations: 74.89 kB / 0.4968 GB, free: 15.23 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007935/0.2772, allocations: 0.5437 MB / 0.4973 GB, free: 14.85 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001848/0.2774, allocations: 0.7774 MB / 0.4981 GB, free: 14.11 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.315e-05/0.2775, allocations: 31.16 kB / 0.4981 GB, free: 14.1 MB / 366.1 MB Notification: Performance of SimCode: time 4.1e-07/0.2775, allocations: 5.062 kB / 0.4981 GB, free: 14.09 MB / 366.1 MB Notification: Performance of Templates: time 0.006897/0.2844, allocations: 4.706 MB / 0.5027 GB, free: 11.64 MB / 366.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]