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.001453/0.001453, allocations: 102.5 kB / 16.45 MB, free: 6.449 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.001597/0.001597, allocations: 206.4 kB / 19.42 MB, free: 3.641 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.524/1.524, allocations: 230.6 MB / 252.8 MB, free: 8.98 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.1041/0.1041, allocations: 11.33 MB / 320.2 MB, free: 9.426 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.002059/0.002059, allocations: 63.91 kB / 445.8 MB, free: 13.77 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.123/0.1251, allocations: 56.02 MB / 0.4901 GB, free: 5.648 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing): time 0.004104/0.1292, allocations: 2.203 MB / 0.4922 GB, free: 3.43 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002827/0.132, allocations: 1.512 MB / 0.4937 GB, free: 1.91 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001535/0.1321, allocations: 7.938 kB / 0.4937 GB, free: 1.902 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008267/0.133, allocations: 267.1 kB / 0.4939 GB, free: 1.641 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005759/0.1336, allocations: 247 kB / 0.4942 GB, free: 1.398 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007946/0.1343, allocations: 302.2 kB / 0.4945 GB, free: 1.105 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005244/0.1349, allocations: 402.9 kB / 0.4949 GB, free: 0.7109 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001583/0.135, allocations: 49.22 kB / 0.4949 GB, free: 0.6602 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003145/0.1353, allocations: 175.3 kB / 0.4951 GB, free: 500 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002298/0.1356, allocations: 163.3 kB / 0.4952 GB, free: 336 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.537e-05/0.1356, allocations: 31.94 kB / 0.4953 GB, free: 304 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002588/0.1359, allocations: 135.8 kB / 0.4954 GB, free: 168 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001137/0.136, allocations: 83.73 kB / 0.4955 GB, free: 84 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001493/0.1361, allocations: 131.2 kB / 0.4956 GB, free: 15.95 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005723/0.1367, allocations: 426.2 kB / 0.496 GB, free: 15.54 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.1367, allocations: 0 / 0.496 GB, free: 15.54 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.1367, allocations: 0 / 0.496 GB, free: 15.54 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.702e-06/0.1367, allocations: 4 kB / 0.496 GB, free: 15.53 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.001226/0.138, allocations: 0.7229 MB / 0.4967 GB, free: 14.75 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.559e-05/0.138, allocations: 8.031 kB / 0.4967 GB, free: 14.74 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.186e-05/0.1381, allocations: 46.73 kB / 0.4968 GB, free: 14.68 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000201/0.1383, allocations: 48.69 kB / 0.4968 GB, free: 14.64 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004843/0.1387, allocations: 336.2 kB / 0.4971 GB, free: 14.27 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.556e-05/0.1388, allocations: 12.12 kB / 0.4971 GB, free: 14.26 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.168e-05/0.1388, allocations: 19.98 kB / 0.4972 GB, free: 14.24 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004196/0.1392, allocations: 192.1 kB / 0.4973 GB, free: 14.04 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.238e-06/0.1392, allocations: 0 / 0.4973 GB, free: 14.04 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.409e-05/0.1393, allocations: 4 kB / 0.4973 GB, free: 14.04 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.284e-06/0.1393, allocations: 4 kB / 0.4973 GB, free: 14.03 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002643/0.1395, allocations: 99.86 kB / 0.4974 GB, free: 13.93 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009204/0.1404, allocations: 0.5315 MB / 0.498 GB, free: 13.35 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005261/0.141, allocations: 158.8 kB / 0.4981 GB, free: 13.19 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001802/0.1412, allocations: 68.77 kB / 0.4982 GB, free: 13.12 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.734e-05/0.1412, allocations: 7.938 kB / 0.4982 GB, free: 13.11 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003652/0.1415, allocations: 183.3 kB / 0.4984 GB, free: 12.91 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 1.333e-06/0.1415, allocations: 0 / 0.4984 GB, free: 12.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.0007762/0.1423, allocations: 321.2 kB / 0.4987 GB, free: 12.59 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001159/0.1424, allocations: 136.5 kB / 0.4988 GB, free: 12.43 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004904/0.1429, allocations: 409.6 kB / 0.4992 GB, free: 12.02 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.97e-05/0.143, allocations: 29.7 kB / 0.4992 GB, free: 11.98 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001493/0.1431, allocations: 176.5 kB / 0.4994 GB, free: 11.81 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.092e-05/0.1432, allocations: 55.58 kB / 0.4994 GB, free: 11.75 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.457e-05/0.1433, allocations: 49.7 kB / 0.4995 GB, free: 11.7 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001817/0.1434, allocations: 350.8 kB / 0.4998 GB, free: 11.35 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001516/0.1436, allocations: 51.97 kB / 0.4999 GB, free: 11.3 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003349/0.1439, allocations: 175.4 kB / 0.5 GB, free: 11.07 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004902/0.1444, allocations: 254.9 kB / 0.5003 GB, free: 10.78 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/0.1444, allocations: 0 / 0.5003 GB, free: 10.78 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005505/0.145, allocations: 273.2 kB / 0.5005 GB, free: 10.51 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.714e-05/0.145, allocations: 8 kB / 0.5006 GB, free: 10.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.145, allocations: 3.984 kB / 0.5006 GB, free: 10.5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.584e-05/0.145, allocations: 8 kB / 0.5006 GB, free: 10.49 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001526/0.1452, allocations: 39.91 kB / 0.5006 GB, free: 10.45 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.202e-05/0.1452, allocations: 7.938 kB / 0.5006 GB, free: 10.44 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001656/0.1453, allocations: 35.77 kB / 0.5006 GB, free: 10.41 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.064e-05/0.1454, allocations: 12.22 kB / 0.5007 GB, free: 10.39 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.0002524/0.1456, allocations: 185.2 kB / 0.5008 GB, free: 10.2 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.34e-05/0.1457, allocations: 39.75 kB / 0.5009 GB, free: 10.16 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.903e-05/0.1458, allocations: 35.36 kB / 0.5009 GB, free: 10.13 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.1458, allocations: 4.125 kB / 0.5009 GB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.015e-06/0.1458, allocations: 7.938 kB / 0.5009 GB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.1458, allocations: 0 / 0.5009 GB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003558/0.1461, allocations: 329.3 kB / 0.5012 GB, free: 9.746 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.1461, allocations: 0 / 0.5012 GB, free: 9.746 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.391e-05/0.1462, allocations: 16 kB / 0.5012 GB, free: 9.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.098e-06/0.1462, allocations: 3.984 kB / 0.5012 GB, free: 9.727 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.822e-05/0.1462, allocations: 4 kB / 0.5012 GB, free: 9.723 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.1462, allocations: 0 / 0.5012 GB, free: 9.723 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.1462, allocations: 0 / 0.5012 GB, free: 9.723 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005826/0.1468, allocations: 299.5 kB / 0.5015 GB, free: 9.414 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.59e-05/0.1469, allocations: 108.9 kB / 0.5016 GB, free: 9.289 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.279e-05/0.147, allocations: 11.94 kB / 0.5017 GB, free: 9.277 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001497/0.1471, allocations: 15.97 kB / 0.5017 GB, free: 9.262 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.228e-05/0.1472, allocations: 15.98 kB / 0.5017 GB, free: 9.246 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.744e-05/0.1472, allocations: 11.98 kB / 0.5017 GB, free: 9.234 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003539/0.1475, allocations: 303.1 kB / 0.502 GB, free: 8.941 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1475, allocations: 0 / 0.502 GB, free: 8.941 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003761/0.1479, allocations: 75.88 kB / 0.5021 GB, free: 8.867 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,reset.combiTimeTable.nextTimeEventScaled,set.combiTimeTable.nextTimeEventScaled,set.combiTimeTable.nextTimeEvent,reset.combiTimeTable.nextTimeEvent) * 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.002421/0.1503, allocations: 1.173 MB / 0.5032 GB, free: 7.824 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004588/0.1508, allocations: 171.7 kB / 0.5034 GB, free: 7.656 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1508, allocations: 0 / 0.5034 GB, free: 7.656 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001979/0.151, allocations: 82.7 kB / 0.5034 GB, free: 7.578 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004504/0.1515, allocations: 93.16 kB / 0.5035 GB, free: 7.496 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004223/0.1557, allocations: 3.044 MB / 0.5065 GB, free: 4.297 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004603/0.1561, allocations: 0.7795 MB / 0.5073 GB, free: 3.492 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001546/0.1563, allocations: 38.95 kB / 0.5073 GB, free: 3.453 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001799/0.1565, allocations: 111.3 kB / 0.5074 GB, free: 3.344 MB / 382.1 MB Notification: Performance of SimCode: time 6.31e-07/0.1565, allocations: 0 / 0.5074 GB, free: 3.344 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2379/0.3944, allocations: 8.1 MB / 0.5153 GB, free: 23.21 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.531/8.926, allocations: 10.61 kB / 0.5153 GB, free: 23.21 MB / 382.1 MB " [Timeout remaining time 651] (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: 11.987311302000307] Failed to read output from testmodel.py, exit status != 0: 9.057874003003235 9.077410322 8.936765127 Calling exit ...