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.001365/0.001365, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.002539/0.002539, allocations: 213.5 kB / 22.24 MB, free: 4.855 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.434/1.434, allocations: 230.6 MB / 256 MB, free: 7.797 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.0629/0.0629, allocations: 11.35 MB / 323.8 MB, free: 8.047 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.001981/0.001981, allocations: 75.88 kB / 451 MB, free: 10.35 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1044, allocations: 56.07 MB / 0.4952 GB, free: 2.18 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing): time 0.003648/0.1081, allocations: 2.115 MB / 0.4972 GB, free: 52 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002438/0.1105, allocations: 1.438 MB / 0.4986 GB, free: 14.61 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001177/0.1106, allocations: 7.938 kB / 0.4986 GB, free: 14.6 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008006/0.1114, allocations: 274.5 kB / 0.4989 GB, free: 14.33 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00057/0.112, allocations: 255 kB / 0.4991 GB, free: 14.08 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006818/0.1127, allocations: 303.2 kB / 0.4994 GB, free: 13.79 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004495/0.1131, allocations: 402.9 kB / 0.4998 GB, free: 13.39 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001318/0.1133, allocations: 45.61 kB / 0.4999 GB, free: 13.34 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002829/0.1136, allocations: 179.2 kB / 0.5 GB, free: 13.17 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002154/0.1138, allocations: 163.2 kB / 0.5002 GB, free: 13.01 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.337e-05/0.1138, allocations: 20 kB / 0.5002 GB, free: 12.99 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002654/0.1141, allocations: 135.9 kB / 0.5003 GB, free: 12.86 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001102/0.1142, allocations: 91.61 kB / 0.5004 GB, free: 12.77 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001246/0.1143, allocations: 103.3 kB / 0.5005 GB, free: 12.66 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005323/0.1149, allocations: 426.2 kB / 0.5009 GB, free: 12.25 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.1149, allocations: 0 / 0.5009 GB, free: 12.25 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1149, allocations: 0 / 0.5009 GB, free: 12.25 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.631e-06/0.1149, allocations: 0 / 0.5009 GB, free: 12.25 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.001073/0.1159, allocations: 0.6439 MB / 0.5015 GB, free: 11.56 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.849e-05/0.116, allocations: 8.031 kB / 0.5016 GB, free: 11.55 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.497e-05/0.116, allocations: 50.67 kB / 0.5016 GB, free: 11.49 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001779/0.1162, allocations: 48.69 kB / 0.5017 GB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004242/0.1166, allocations: 266.4 kB / 0.5019 GB, free: 11.16 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.828e-05/0.1167, allocations: 24.05 kB / 0.5019 GB, free: 11.14 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.006e-05/0.1167, allocations: 20 kB / 0.5019 GB, free: 11.12 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000371/0.1171, allocations: 213 kB / 0.5022 GB, free: 10.89 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/0.1171, allocations: 3.938 kB / 0.5022 GB, free: 10.89 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.089e-05/0.1171, allocations: 11.98 kB / 0.5022 GB, free: 10.88 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.843e-06/0.1171, allocations: 4 kB / 0.5022 GB, free: 10.88 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002489/0.1173, allocations: 95.94 kB / 0.5023 GB, free: 10.78 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007867/0.1181, allocations: 471.4 kB / 0.5027 GB, free: 10.28 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000472/0.1186, allocations: 177.1 kB / 0.5029 GB, free: 10.1 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001597/0.1188, allocations: 60.83 kB / 0.5029 GB, free: 10.04 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.727e-05/0.1188, allocations: 4 kB / 0.5029 GB, free: 10.03 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004029/0.1192, allocations: 232.3 kB / 0.5032 GB, free: 9.773 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 1.383e-06/0.1192, allocations: 4 kB / 0.5032 GB, free: 9.77 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.0007304/0.1199, allocations: 328.7 kB / 0.5035 GB, free: 9.445 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.066e-05/0.12, allocations: 85.09 kB / 0.5036 GB, free: 9.344 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004651/0.1205, allocations: 417.6 kB / 0.504 GB, free: 8.926 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.059e-05/0.1205, allocations: 33.7 kB / 0.504 GB, free: 8.887 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00014/0.1206, allocations: 172.5 kB / 0.5042 GB, free: 8.715 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.598e-05/0.1207, allocations: 55.58 kB / 0.5042 GB, free: 8.66 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.773e-05/0.1208, allocations: 49.7 kB / 0.5043 GB, free: 8.605 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001721/0.1209, allocations: 346.8 kB / 0.5046 GB, free: 8.258 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00015/0.1211, allocations: 67.89 kB / 0.5047 GB, free: 8.191 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002817/0.1214, allocations: 243.3 kB / 0.5049 GB, free: 7.887 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000452/0.1218, allocations: 246.9 kB / 0.5051 GB, free: 7.605 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.42e-06/0.1218, allocations: 4 kB / 0.5051 GB, free: 7.602 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005397/0.1224, allocations: 289 kB / 0.5054 GB, free: 7.312 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.866e-05/0.1224, allocations: 8 kB / 0.5054 GB, free: 7.305 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.965e-06/0.1224, allocations: 4 kB / 0.5054 GB, free: 7.301 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.683e-05/0.1224, allocations: 7.938 kB / 0.5054 GB, free: 7.293 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001428/0.1225, allocations: 35.91 kB / 0.5055 GB, free: 7.258 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.766e-06/0.1226, allocations: 4.469 kB / 0.5055 GB, free: 7.254 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00016/0.1227, allocations: 43.75 kB / 0.5055 GB, free: 7.211 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.267e-05/0.1227, allocations: 16 kB / 0.5055 GB, free: 7.195 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.0002317/0.123, allocations: 177.5 kB / 0.5057 GB, free: 7.012 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.723e-05/0.123, allocations: 39.77 kB / 0.5057 GB, free: 6.973 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005858/0.1236, allocations: 290.5 kB / 0.506 GB, free: 6.688 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.1236, allocations: 0 / 0.506 GB, free: 6.688 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.1236, allocations: 0 / 0.506 GB, free: 6.688 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.1236, allocations: 7.984 kB / 0.506 GB, free: 6.68 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002999/0.1239, allocations: 264.5 kB / 0.5063 GB, free: 6.379 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.1239, allocations: 0 / 0.5063 GB, free: 6.379 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.627e-05/0.124, allocations: 15.98 kB / 0.5063 GB, free: 6.363 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.352e-06/0.124, allocations: 8.031 kB / 0.5063 GB, free: 6.355 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.073e-05/0.124, allocations: 11.98 kB / 0.5063 GB, free: 6.344 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.557e-06/0.124, allocations: 4 kB / 0.5063 GB, free: 6.34 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.124, allocations: 0 / 0.5063 GB, free: 6.34 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005574/0.1246, allocations: 316.2 kB / 0.5066 GB, free: 6.016 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.645e-05/0.1246, allocations: 31.7 kB / 0.5066 GB, free: 5.984 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.235e-05/0.1247, allocations: 15.94 kB / 0.5066 GB, free: 5.969 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001397/0.1248, allocations: 19.97 kB / 0.5067 GB, free: 5.949 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.816e-05/0.1249, allocations: 19.97 kB / 0.5067 GB, free: 5.93 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.313e-05/0.1249, allocations: 8 kB / 0.5067 GB, free: 5.922 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000334/0.1253, allocations: 303.1 kB / 0.507 GB, free: 5.625 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1253, allocations: 0 / 0.507 GB, free: 5.625 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003346/0.1256, allocations: 71.94 kB / 0.507 GB, free: 5.555 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.002442/0.128, allocations: 1.213 MB / 0.5082 GB, free: 4.496 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004597/0.1285, allocations: 191.6 kB / 0.5084 GB, free: 4.309 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.1285, allocations: 0 / 0.5084 GB, free: 4.309 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001988/0.1287, allocations: 85.95 kB / 0.5085 GB, free: 4.227 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004246/0.1291, allocations: 79.5 kB / 0.5086 GB, free: 4.152 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004037/0.1332, allocations: 3.07 MB / 0.5116 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001813/0.1333, allocations: 177.1 kB / 0.5117 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001471/0.1335, allocations: 50.92 kB / 0.5118 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001634/0.1336, allocations: 107.4 kB / 0.5119 GB, free: 0.5781 MB / 382.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1336, allocations: 0 / 0.5119 GB, free: 0.5781 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2238/0.3574, allocations: 8.941 MB / 0.5206 GB, free: 21.62 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.77/11.13, allocations: 9.047 kB / 0.5206 GB, free: 21.61 MB / 382.1 MB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Logical_Counter_Examples_countZeroCrossing_fmu --startTime=0 --stopTime=20 --stepSize=0.008 --timeout=50 --tolerance=1e-06 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: 13.826157450210303] Failed to read output from testmodel.py, exit status != 0: 11.297998228110373 11.320414674 11.2020914 Calling exit ...