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.001306/0.001306, allocations: 105.8 kB / 18.84 MB, free: 3.023 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.002037/0.002037, allocations: 189.5 kB / 22.1 MB, free: 4.223 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.49/1.49, allocations: 225.6 MB / 250.8 MB, free: 2.902 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.06278/0.06278, allocations: 11.35 MB / 317.4 MB, free: 244 kB / 238.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-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: "" <> buildModelFMU(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Counter_Examples_countZeroCrossing",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Counter_Examples_countZeroCrossing",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001954/0.001954, allocations: 63.91 kB / 442.2 MB, free: 5.598 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2547/0.2566, allocations: 54.88 MB / 497.1 MB, free: 24.41 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing): time 0.003627/0.2603, allocations: 2.184 MB / 499.2 MB, free: 22.86 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00198/0.2623, allocations: 1.349 MB / 0.4889 GB, free: 21.81 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001554/0.2624, allocations: 7.594 kB / 0.4889 GB, free: 21.8 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008716/0.2633, allocations: 282.8 kB / 0.4891 GB, free: 21.64 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004745/0.2638, allocations: 206.5 kB / 0.4893 GB, free: 21.5 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009522/0.2647, allocations: 359.2 kB / 0.4897 GB, free: 21.26 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004264/0.2651, allocations: 376.2 kB / 0.49 GB, free: 21.04 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001539/0.2653, allocations: 42 kB / 0.4901 GB, free: 21 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002258/0.2655, allocations: 172 kB / 0.4902 GB, free: 20.9 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000182/0.2657, allocations: 164.9 kB / 0.4904 GB, free: 20.79 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.164e-05/0.2657, allocations: 21.31 kB / 0.4904 GB, free: 20.79 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000254/0.266, allocations: 135 kB / 0.4905 GB, free: 20.73 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.108e-05/0.2661, allocations: 82.33 kB / 0.4906 GB, free: 20.68 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001092/0.2662, allocations: 130.7 kB / 0.4908 GB, free: 20.57 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004763/0.2667, allocations: 406.4 kB / 0.4911 GB, free: 20.3 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.2667, allocations: 0 / 0.4911 GB, free: 20.3 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.2667, allocations: 1.406 kB / 0.4911 GB, free: 20.3 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.466e-05/0.2667, allocations: 0 / 0.4911 GB, free: 20.3 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.001062/0.2677, allocations: 0.6185 MB / 0.4917 GB, free: 19.74 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.392e-05/0.2678, allocations: 9.156 kB / 0.4918 GB, free: 19.74 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.442e-05/0.2678, allocations: 51.92 kB / 0.4918 GB, free: 19.68 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8e-05/0.2679, allocations: 37.2 kB / 0.4918 GB, free: 19.66 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003864/0.2683, allocations: 264.5 kB / 0.4921 GB, free: 19.43 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.895e-05/0.2683, allocations: 21.5 kB / 0.4921 GB, free: 19.41 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.939e-05/0.2684, allocations: 18.77 kB / 0.4921 GB, free: 19.41 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004052/0.2688, allocations: 293.1 kB / 0.4924 GB, free: 19.14 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.2688, allocations: 0 / 0.4924 GB, free: 19.14 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.412e-05/0.2688, allocations: 9.953 kB / 0.4924 GB, free: 19.14 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.2688, allocations: 4.062 kB / 0.4924 GB, free: 19.14 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002426/0.2691, allocations: 92.56 kB / 0.4925 GB, free: 19.09 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007532/0.2698, allocations: 0.5004 MB / 0.493 GB, free: 18.65 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004659/0.2703, allocations: 162.7 kB / 0.4932 GB, free: 18.55 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001536/0.2704, allocations: 57.67 kB / 0.4932 GB, free: 18.52 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.801e-05/0.2705, allocations: 2.156 kB / 0.4932 GB, free: 18.52 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003363/0.2708, allocations: 237.8 kB / 0.4934 GB, free: 18.32 MB / 366.1 MB Notification: Performance of pre-optimization done (n=21): time 1.383e-06/0.2708, allocations: 0 / 0.4934 GB, free: 18.32 MB / 366.1 MB Notification: Performance of matching and sorting (n=21): time 0.0007609/0.2716, allocations: 316.4 kB / 0.4937 GB, free: 18.17 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.647e-05/0.2716, allocations: 141 kB / 0.4939 GB, free: 18 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004381/0.2721, allocations: 390.5 kB / 0.4942 GB, free: 17.76 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.845e-05/0.2721, allocations: 34.05 kB / 0.4943 GB, free: 17.73 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.798e-05/0.2722, allocations: 168.3 kB / 0.4944 GB, free: 17.57 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.917e-05/0.2722, allocations: 59.42 kB / 0.4945 GB, free: 17.52 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.707e-05/0.2723, allocations: 50.92 kB / 0.4945 GB, free: 17.49 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.876e-05/0.2724, allocations: 347.1 kB / 0.4949 GB, free: 17.15 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001505/0.2726, allocations: 52.81 kB / 0.4949 GB, free: 17.12 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002691/0.2728, allocations: 306.8 kB / 0.4952 GB, free: 16.78 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004512/0.2733, allocations: 254 kB / 0.4955 GB, free: 16.58 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/0.2733, allocations: 1.562 kB / 0.4955 GB, free: 16.58 MB / 366.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000533/0.2738, allocations: 272.4 kB / 0.4957 GB, free: 16.43 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.184e-05/0.2738, allocations: 5.781 kB / 0.4957 GB, free: 16.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.062e-05/0.2738, allocations: 3.375 kB / 0.4957 GB, free: 16.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.609e-05/0.2739, allocations: 4.625 kB / 0.4957 GB, free: 16.43 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001618/0.274, allocations: 41.31 kB / 0.4958 GB, free: 16.42 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.35e-05/0.274, allocations: 8.75 kB / 0.4958 GB, free: 16.41 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001766/0.2742, allocations: 43.55 kB / 0.4958 GB, free: 16.38 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.459e-05/0.2743, allocations: 9.344 kB / 0.4958 GB, free: 16.38 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.0002629/0.2745, allocations: 182.2 kB / 0.496 GB, free: 16.23 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.468e-05/0.2746, allocations: 43.34 kB / 0.496 GB, free: 16.2 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006105/0.2752, allocations: 269.8 kB / 0.4963 GB, free: 16.06 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.243e-06/0.2752, allocations: 2.531 kB / 0.4963 GB, free: 16.06 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.62e-06/0.2752, allocations: 0 / 0.4963 GB, free: 16.06 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.2752, allocations: 1.375 kB / 0.4963 GB, free: 16.06 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003315/0.2755, allocations: 288.4 kB / 0.4966 GB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.2755, allocations: 1.344 kB / 0.4966 GB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.357e-05/0.2756, allocations: 16.8 kB / 0.4966 GB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.2756, allocations: 5.094 kB / 0.4966 GB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.095e-05/0.2756, allocations: 7.219 kB / 0.4966 GB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.406e-06/0.2756, allocations: 1.781 kB / 0.4966 GB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.2756, allocations: 0 / 0.4966 GB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005369/0.2762, allocations: 293.6 kB / 0.4969 GB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.825e-05/0.2762, allocations: 37.2 kB / 0.4969 GB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.995e-05/0.2763, allocations: 3.281 kB / 0.4969 GB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001482/0.2764, allocations: 24.97 kB / 0.497 GB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.481e-05/0.2765, allocations: 18.42 kB / 0.497 GB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.914e-05/0.2765, allocations: 11.02 kB / 0.497 GB, free: 15.54 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000293/0.2768, allocations: 279.9 kB / 0.4973 GB, free: 15.37 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2768, allocations: 0 / 0.4973 GB, free: 15.37 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003945/0.2772, allocations: 74.03 kB / 0.4973 GB, free: 15.36 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.00209/0.2793, allocations: 1.17 MB / 0.4985 GB, free: 14.52 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004817/0.2798, allocations: 182.4 kB / 0.4986 GB, free: 14.45 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.2798, allocations: 4.125 kB / 0.4986 GB, free: 14.44 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001857/0.28, allocations: 80.77 kB / 0.4987 GB, free: 14.41 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000505/0.2805, allocations: 82.56 kB / 0.4988 GB, free: 14.37 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003413/0.2839, allocations: 2.978 MB / 0.5017 GB, free: 12.19 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002026/0.2841, allocations: 0.7808 MB / 0.5025 GB, free: 11.44 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001522/0.2842, allocations: 51.69 kB / 0.5025 GB, free: 11.41 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001386/0.2844, allocations: 99.67 kB / 0.5026 GB, free: 11.34 MB / 366.1 MB Notification: Performance of SimCode: time 6.81e-07/0.2844, allocations: 0 / 0.5026 GB, free: 11.34 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03445/0.3188, allocations: 8.13 MB / 0.5106 GB, free: 5.633 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.56/11.88, allocations: 4.062 kB / 0.5106 GB, free: 5.629 MB / 366.1 MB " [Timeout remaining time 648] (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 & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing_res.csv --start-time 0 --stop-time 20 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.008 IndustrialControlSystems_IndustrialControlSystems_Logical_Counter_Examples_countZeroCrossing.fmu > IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.786057937890291] Failed to read output from testmodel.py, exit status != 0: 12.05116631090641 12.077208143 11.805461083 Calling exit ...