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.001296/0.001296, allocations: 110.6 kB / 18.94 MB, free: 2.949 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.001535/0.001535, allocations: 220.2 kB / 22.26 MB, free: 5.125 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.456/1.456, allocations: 230.6 MB / 256 MB, free: 7.977 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.06651/0.06651, allocations: 11.34 MB / 323.8 MB, free: 8.238 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: "" <> 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: 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.002025/0.002025, allocations: 63.91 kB / 451 MB, free: 10.51 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1084, allocations: 56.08 MB / 0.4952 GB, free: 2.336 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing): time 0.003915/0.1123, allocations: 2.222 MB / 0.4974 GB, free: 104 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002686/0.115, allocations: 1.528 MB / 0.4989 GB, free: 14.57 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001465/0.1152, allocations: 7.938 kB / 0.4989 GB, free: 14.56 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008682/0.116, allocations: 279.1 kB / 0.4992 GB, free: 14.29 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005949/0.1166, allocations: 247 kB / 0.4994 GB, free: 14.04 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008109/0.1174, allocations: 317.7 kB / 0.4997 GB, free: 13.73 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004914/0.1179, allocations: 406.8 kB / 0.5001 GB, free: 13.34 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001579/0.1181, allocations: 45.61 kB / 0.5001 GB, free: 13.29 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003179/0.1184, allocations: 179.3 kB / 0.5003 GB, free: 13.11 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000244/0.1187, allocations: 171.2 kB / 0.5005 GB, free: 12.95 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.208e-05/0.1187, allocations: 24 kB / 0.5005 GB, free: 12.92 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002811/0.119, allocations: 147.8 kB / 0.5006 GB, free: 12.78 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001072/0.1191, allocations: 75.75 kB / 0.5007 GB, free: 12.7 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001484/0.1192, allocations: 139.1 kB / 0.5008 GB, free: 12.57 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005779/0.1198, allocations: 426.2 kB / 0.5012 GB, free: 12.15 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.1198, allocations: 0 / 0.5012 GB, free: 12.15 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1198, allocations: 0 / 0.5012 GB, free: 12.15 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.354e-06/0.1198, allocations: 0 / 0.5012 GB, free: 12.15 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.001194/0.121, allocations: 0.6438 MB / 0.5019 GB, free: 11.46 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.14e-05/0.1211, allocations: 8.031 kB / 0.5019 GB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.635e-05/0.1211, allocations: 42.73 kB / 0.5019 GB, free: 11.4 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001864/0.1213, allocations: 48.69 kB / 0.502 GB, free: 11.36 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004394/0.1217, allocations: 282.3 kB / 0.5022 GB, free: 11.06 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.322e-05/0.1218, allocations: 16.12 kB / 0.5022 GB, free: 11.04 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.775e-05/0.1218, allocations: 8 kB / 0.5023 GB, free: 11.04 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004137/0.1222, allocations: 196.7 kB / 0.5024 GB, free: 10.83 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.181e-05/0.1222, allocations: 0 / 0.5024 GB, free: 10.83 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.912e-05/0.1222, allocations: 11.98 kB / 0.5025 GB, free: 10.82 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.795e-06/0.1223, allocations: 4 kB / 0.5025 GB, free: 10.81 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000265/0.1225, allocations: 95.88 kB / 0.5025 GB, free: 10.72 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000948/0.1235, allocations: 0.507 MB / 0.503 GB, free: 10.17 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005075/0.124, allocations: 158.8 kB / 0.5032 GB, free: 10 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001614/0.1241, allocations: 60.83 kB / 0.5033 GB, free: 9.941 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.597e-05/0.1242, allocations: 8 kB / 0.5033 GB, free: 9.934 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003719/0.1245, allocations: 169 kB / 0.5034 GB, free: 9.75 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 1.593e-06/0.1245, allocations: 0 / 0.5034 GB, free: 9.75 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.0007694/0.1253, allocations: 323.5 kB / 0.5037 GB, free: 9.43 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001034/0.1254, allocations: 148.5 kB / 0.5039 GB, free: 9.254 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004886/0.1259, allocations: 405.6 kB / 0.5043 GB, free: 8.844 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.477e-05/0.1259, allocations: 33.7 kB / 0.5043 GB, free: 8.805 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001416/0.1261, allocations: 164.5 kB / 0.5044 GB, free: 8.641 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.9e-05/0.1261, allocations: 59.58 kB / 0.5045 GB, free: 8.582 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.882e-05/0.1262, allocations: 49.7 kB / 0.5046 GB, free: 8.527 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001732/0.1264, allocations: 350.8 kB / 0.5049 GB, free: 8.176 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001409/0.1265, allocations: 55.91 kB / 0.5049 GB, free: 8.121 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002406/0.1268, allocations: 179.3 kB / 0.5051 GB, free: 7.891 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005187/0.1273, allocations: 254.9 kB / 0.5054 GB, free: 7.602 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.001e-06/0.1273, allocations: 4 kB / 0.5054 GB, free: 7.598 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005201/0.1278, allocations: 273.3 kB / 0.5056 GB, free: 7.324 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.123e-05/0.1278, allocations: 8 kB / 0.5056 GB, free: 7.316 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.756e-06/0.1278, allocations: 4 kB / 0.5056 GB, free: 7.312 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.806e-05/0.1279, allocations: 4 kB / 0.5056 GB, free: 7.309 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000143/0.128, allocations: 35.92 kB / 0.5057 GB, free: 7.273 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.552e-05/0.128, allocations: 11.92 kB / 0.5057 GB, free: 7.262 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001562/0.1282, allocations: 31.83 kB / 0.5057 GB, free: 7.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.267e-05/0.1282, allocations: 12 kB / 0.5057 GB, free: 7.219 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.0002468/0.1285, allocations: 185.6 kB / 0.5059 GB, free: 7.027 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.623e-05/0.1285, allocations: 35.77 kB / 0.5059 GB, free: 6.992 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005837/0.1291, allocations: 276.9 kB / 0.5062 GB, free: 6.719 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.54e-06/0.1291, allocations: 4 kB / 0.5062 GB, free: 6.715 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.483e-06/0.1291, allocations: 4.109 kB / 0.5062 GB, free: 6.711 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.1291, allocations: 0 / 0.5062 GB, free: 6.711 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003408/0.1294, allocations: 296.5 kB / 0.5065 GB, free: 6.379 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.1294, allocations: 3.938 kB / 0.5065 GB, free: 6.375 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.645e-05/0.1295, allocations: 11.98 kB / 0.5065 GB, free: 6.363 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.989e-06/0.1295, allocations: 4 kB / 0.5065 GB, free: 6.359 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.195e-05/0.1295, allocations: 11.92 kB / 0.5065 GB, free: 6.348 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.288e-06/0.1295, allocations: 4 kB / 0.5065 GB, free: 6.344 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.1295, allocations: 4 kB / 0.5065 GB, free: 6.34 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005172/0.1301, allocations: 283.9 kB / 0.5068 GB, free: 6.047 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.362e-05/0.1301, allocations: 39.69 kB / 0.5068 GB, free: 6.008 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.051e-05/0.1302, allocations: 8 kB / 0.5068 GB, free: 6 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001375/0.1303, allocations: 15.98 kB / 0.5069 GB, free: 5.984 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.252e-05/0.1304, allocations: 23.84 kB / 0.5069 GB, free: 5.961 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.509e-05/0.1304, allocations: 12 kB / 0.5069 GB, free: 5.949 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003819/0.1308, allocations: 295.1 kB / 0.5072 GB, free: 5.664 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1308, allocations: 0 / 0.5072 GB, free: 5.664 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003834/0.1312, allocations: 71.94 kB / 0.5072 GB, free: 5.594 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 (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.002446/0.1336, allocations: 1.178 MB / 0.5084 GB, free: 4.547 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004768/0.1341, allocations: 171.8 kB / 0.5086 GB, free: 4.379 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.1341, allocations: 0.6875 kB / 0.5086 GB, free: 4.379 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002095/0.1343, allocations: 86.12 kB / 0.5086 GB, free: 4.297 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004722/0.1348, allocations: 95.61 kB / 0.5087 GB, free: 4.211 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004399/0.1392, allocations: 3.035 MB / 0.5117 GB, free: 1.016 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004462/0.1396, allocations: 0.7912 MB / 0.5125 GB, free: 200 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001634/0.1398, allocations: 38.95 kB / 0.5125 GB, free: 160 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001821/0.14, allocations: 107.4 kB / 0.5126 GB, free: 52 kB / 382.1 MB Notification: Performance of SimCode: time 7.01e-07/0.14, allocations: 3.938 kB / 0.5126 GB, free: 48 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2399/0.3799, allocations: 8.298 MB / 0.5207 GB, free: 21.57 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.52/11.9, allocations: 3.922 kB / 0.5207 GB, free: 21.57 MB / 382.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.76122082699294] Failed to read output from testmodel.py, exit status != 0: 12.061403217994666 12.074755304 11.952076502 Calling exit ...