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.001541/0.001541, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001793/0.001793, allocations: 209.3 kB / 22.24 MB, free: 5.262 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.389/1.389, allocations: 230.6 MB / 256 MB, free: 7.781 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.06454/0.06454, allocations: 11.34 MB / 323.8 MB, free: 8.016 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.002053/0.002053, allocations: 71.88 kB / 451 MB, free: 10.32 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1112, allocations: 56.07 MB / 0.4952 GB, free: 2.152 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing): time 0.003596/0.1148, allocations: 2.115 MB / 0.4972 GB, free: 24 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00251/0.1173, allocations: 1.43 MB / 0.4986 GB, free: 14.59 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001349/0.1174, allocations: 11.94 kB / 0.4986 GB, free: 14.57 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007798/0.1182, allocations: 279.1 kB / 0.4989 GB, free: 14.3 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000556/0.1187, allocations: 247 kB / 0.4991 GB, free: 14.06 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007035/0.1194, allocations: 309.9 kB / 0.4994 GB, free: 13.76 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004279/0.1199, allocations: 402.9 kB / 0.4998 GB, free: 13.36 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001384/0.12, allocations: 49.53 kB / 0.4999 GB, free: 13.31 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002683/0.1203, allocations: 175.2 kB / 0.5 GB, free: 13.14 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002042/0.1205, allocations: 159.3 kB / 0.5002 GB, free: 12.98 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.125e-05/0.1205, allocations: 24 kB / 0.5002 GB, free: 12.96 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002425/0.1208, allocations: 139.8 kB / 0.5003 GB, free: 12.82 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001097/0.1209, allocations: 83.73 kB / 0.5004 GB, free: 12.74 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001157/0.121, allocations: 111.3 kB / 0.5005 GB, free: 12.63 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005184/0.1215, allocations: 422.2 kB / 0.5009 GB, free: 12.22 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.386e-06/0.1215, allocations: 7.984 kB / 0.5009 GB, free: 12.21 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1215, allocations: 0 / 0.5009 GB, free: 12.21 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.8e-06/0.1215, allocations: 0 / 0.5009 GB, free: 12.21 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.001095/0.1226, allocations: 0.6361 MB / 0.5016 GB, free: 11.53 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.784e-05/0.1226, allocations: 8.031 kB / 0.5016 GB, free: 11.52 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.305e-05/0.1227, allocations: 46.73 kB / 0.5016 GB, free: 11.47 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001815/0.1229, allocations: 48.69 kB / 0.5017 GB, free: 11.42 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004486/0.1233, allocations: 274.4 kB / 0.5019 GB, free: 11.13 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.31e-05/0.1234, allocations: 20.11 kB / 0.5019 GB, free: 11.11 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.819e-05/0.1234, allocations: 8 kB / 0.5019 GB, free: 11.11 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003737/0.1238, allocations: 216.9 kB / 0.5021 GB, free: 10.88 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/0.1238, allocations: 4 kB / 0.5022 GB, free: 10.87 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.299e-05/0.1238, allocations: 11.98 kB / 0.5022 GB, free: 10.86 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.454e-06/0.1238, allocations: 7.938 kB / 0.5022 GB, free: 10.85 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002395/0.124, allocations: 91.94 kB / 0.5023 GB, free: 10.76 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007956/0.1248, allocations: 475.4 kB / 0.5027 GB, free: 10.25 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004644/0.1253, allocations: 174.1 kB / 0.5029 GB, free: 10.08 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001551/0.1255, allocations: 60.83 kB / 0.5029 GB, free: 10.02 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.585e-05/0.1255, allocations: 8 kB / 0.5029 GB, free: 10.01 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003709/0.1258, allocations: 228.3 kB / 0.5032 GB, free: 9.754 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 1.763e-06/0.1258, allocations: 0 / 0.5032 GB, free: 9.754 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.0007101/0.1266, allocations: 335 kB / 0.5035 GB, free: 9.422 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.01e-05/0.1266, allocations: 81.11 kB / 0.5036 GB, free: 9.324 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000459/0.1271, allocations: 417.6 kB / 0.504 GB, free: 8.906 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.06e-05/0.1271, allocations: 33.7 kB / 0.504 GB, free: 8.867 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001342/0.1273, allocations: 168.5 kB / 0.5042 GB, free: 8.699 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.486e-05/0.1273, allocations: 59.58 kB / 0.5042 GB, free: 8.641 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.603e-05/0.1274, allocations: 53.69 kB / 0.5043 GB, free: 8.582 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001666/0.1276, allocations: 342.8 kB / 0.5046 GB, free: 8.238 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001444/0.1277, allocations: 59.95 kB / 0.5046 GB, free: 8.18 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000286/0.128, allocations: 251.2 kB / 0.5049 GB, free: 7.867 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004369/0.1284, allocations: 258.9 kB / 0.5051 GB, free: 7.574 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.04e-06/0.1284, allocations: 4 kB / 0.5051 GB, free: 7.57 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005143/0.1289, allocations: 285.1 kB / 0.5054 GB, free: 7.285 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.77e-05/0.129, allocations: 8 kB / 0.5054 GB, free: 7.277 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.129, allocations: 0 / 0.5054 GB, free: 7.277 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/0.129, allocations: 8 kB / 0.5054 GB, free: 7.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001475/0.1291, allocations: 35.91 kB / 0.5055 GB, free: 7.234 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.956e-06/0.1291, allocations: 4 kB / 0.5055 GB, free: 7.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001532/0.1293, allocations: 31.81 kB / 0.5055 GB, free: 7.199 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.916e-05/0.1293, allocations: 12 kB / 0.5055 GB, free: 7.188 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.0002539/0.1296, allocations: 193.8 kB / 0.5057 GB, free: 6.988 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.624e-05/0.1296, allocations: 39.77 kB / 0.5057 GB, free: 6.949 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005773/0.1302, allocations: 292.8 kB / 0.506 GB, free: 6.66 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.1302, allocations: 4 kB / 0.506 GB, free: 6.656 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.1302, allocations: 0 / 0.506 GB, free: 6.656 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.1302, allocations: 0 / 0.506 GB, free: 6.656 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002996/0.1305, allocations: 272.4 kB / 0.5063 GB, free: 6.348 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.1305, allocations: 0 / 0.5063 GB, free: 6.348 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.435e-05/0.1306, allocations: 12 kB / 0.5063 GB, free: 6.336 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.305e-06/0.1306, allocations: 0 / 0.5063 GB, free: 6.336 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.792e-05/0.1306, allocations: 11.98 kB / 0.5063 GB, free: 6.324 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.1306, allocations: 4 kB / 0.5063 GB, free: 6.32 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.1306, allocations: 0 / 0.5063 GB, free: 6.32 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005377/0.1312, allocations: 316 kB / 0.5066 GB, free: 5.996 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.189e-05/0.1312, allocations: 35.7 kB / 0.5066 GB, free: 5.961 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.637e-05/0.1313, allocations: 15.92 kB / 0.5066 GB, free: 5.945 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001366/0.1314, allocations: 15.98 kB / 0.5067 GB, free: 5.93 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.305e-05/0.1315, allocations: 15.97 kB / 0.5067 GB, free: 5.914 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.684e-05/0.1315, allocations: 12 kB / 0.5067 GB, free: 5.902 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003371/0.1318, allocations: 295.1 kB / 0.507 GB, free: 5.613 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1318, allocations: 0 / 0.507 GB, free: 5.613 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003514/0.1322, allocations: 75.94 kB / 0.507 GB, free: 5.539 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.002412/0.1346, allocations: 1.216 MB / 0.5082 GB, free: 4.477 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004371/0.135, allocations: 180.2 kB / 0.5084 GB, free: 4.301 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.636e-06/0.1351, allocations: 8.062 kB / 0.5084 GB, free: 4.293 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001957/0.1352, allocations: 87.89 kB / 0.5085 GB, free: 4.207 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00041/0.1357, allocations: 88.86 kB / 0.5086 GB, free: 4.129 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004007/0.1397, allocations: 3.069 MB / 0.5116 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001739/0.1398, allocations: 177.1 kB / 0.5117 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001335/0.14, allocations: 51.12 kB / 0.5118 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001596/0.1401, allocations: 111.4 kB / 0.5119 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1401, allocations: 0 / 0.5119 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2421/0.3822, allocations: 8.93 MB / 0.5206 GB, free: 21.97 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.96/11.35, allocations: 8.438 kB / 0.5206 GB, free: 21.97 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.158171800896525] Failed to read output from testmodel.py, exit status != 0: 11.506110734771937 11.519630792 11.395507872 Calling exit ...