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.001374/0.001374, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001678/0.001678, allocations: 217 kB / 22.25 MB, free: 5.082 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.474/1.474, allocations: 230.6 MB / 256 MB, free: 8.012 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.06721/0.06721, allocations: 11.35 MB / 323.8 MB, free: 8.227 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.002083/0.002083, allocations: 63.91 kB / 451 MB, free: 10.53 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1025, allocations: 56.07 MB / 0.4952 GB, free: 2.355 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing): time 0.00395/0.1065, allocations: 2.216 MB / 0.4974 GB, free: 128 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002966/0.1094, allocations: 1.535 MB / 0.4989 GB, free: 14.58 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003176/0.1097, allocations: 7.938 kB / 0.4989 GB, free: 14.57 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00101/0.1107, allocations: 274.1 kB / 0.4992 GB, free: 14.31 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007842/0.1115, allocations: 251 kB / 0.4994 GB, free: 14.06 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000951/0.1125, allocations: 314.6 kB / 0.4997 GB, free: 13.76 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007382/0.1132, allocations: 398.8 kB / 0.5001 GB, free: 13.37 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002148/0.1134, allocations: 57.59 kB / 0.5001 GB, free: 13.31 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004873/0.1139, allocations: 175.3 kB / 0.5003 GB, free: 13.14 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003382/0.1143, allocations: 171.2 kB / 0.5005 GB, free: 12.97 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.81e-05/0.1143, allocations: 20 kB / 0.5005 GB, free: 12.95 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003946/0.1147, allocations: 147.8 kB / 0.5006 GB, free: 12.8 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001252/0.1149, allocations: 75.75 kB / 0.5007 GB, free: 12.73 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001808/0.115, allocations: 143.1 kB / 0.5008 GB, free: 12.59 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006633/0.1157, allocations: 418.3 kB / 0.5012 GB, free: 12.18 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.1157, allocations: 0 / 0.5012 GB, free: 12.18 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.1157, allocations: 0 / 0.5012 GB, free: 12.18 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.706e-05/0.1157, allocations: 8 kB / 0.5012 GB, free: 12.17 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.001373/0.1171, allocations: 0.6399 MB / 0.5019 GB, free: 11.49 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.701e-05/0.1172, allocations: 8.031 kB / 0.5019 GB, free: 11.48 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.864e-05/0.1172, allocations: 46.73 kB / 0.5019 GB, free: 11.43 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000267/0.1175, allocations: 48.69 kB / 0.502 GB, free: 11.38 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005548/0.118, allocations: 278.4 kB / 0.5022 GB, free: 11.09 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.805e-05/0.1181, allocations: 20.11 kB / 0.5022 GB, free: 11.07 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.189e-05/0.1181, allocations: 12 kB / 0.5023 GB, free: 11.05 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004237/0.1185, allocations: 188.7 kB / 0.5024 GB, free: 10.86 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.1185, allocations: 3.938 kB / 0.5024 GB, free: 10.85 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.467e-05/0.1186, allocations: 8 kB / 0.5024 GB, free: 10.84 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.973e-06/0.1186, allocations: 4 kB / 0.5024 GB, free: 10.84 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002614/0.1188, allocations: 99.92 kB / 0.5025 GB, free: 10.74 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008844/0.1197, allocations: 0.4993 MB / 0.503 GB, free: 10.2 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004881/0.1202, allocations: 162.5 kB / 0.5032 GB, free: 10.03 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001596/0.1204, allocations: 61 kB / 0.5032 GB, free: 9.969 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.423e-05/0.1204, allocations: 8 kB / 0.5033 GB, free: 9.961 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003789/0.1208, allocations: 179.2 kB / 0.5034 GB, free: 9.77 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 1.483e-06/0.1208, allocations: 0 / 0.5034 GB, free: 9.77 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.0007904/0.1216, allocations: 325.2 kB / 0.5037 GB, free: 9.445 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001001/0.1217, allocations: 136.5 kB / 0.5039 GB, free: 9.281 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000504/0.1222, allocations: 409.6 kB / 0.5043 GB, free: 8.867 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.412e-05/0.1222, allocations: 33.7 kB / 0.5043 GB, free: 8.828 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001478/0.1224, allocations: 168.5 kB / 0.5044 GB, free: 8.66 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.999e-05/0.1224, allocations: 55.59 kB / 0.5045 GB, free: 8.605 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.142e-05/0.1225, allocations: 53.69 kB / 0.5046 GB, free: 8.547 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001733/0.1227, allocations: 346.8 kB / 0.5049 GB, free: 8.199 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001465/0.1228, allocations: 55.97 kB / 0.5049 GB, free: 8.145 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002536/0.1231, allocations: 175.3 kB / 0.5051 GB, free: 7.918 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004561/0.1235, allocations: 250.9 kB / 0.5053 GB, free: 7.633 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/0.1235, allocations: 64 / 0.5053 GB, free: 7.633 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005529/0.1241, allocations: 281.1 kB / 0.5056 GB, free: 7.352 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.1241, allocations: 11.94 kB / 0.5056 GB, free: 7.34 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.024e-05/0.1241, allocations: 7.984 kB / 0.5056 GB, free: 7.332 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.859e-05/0.1241, allocations: 4 kB / 0.5056 GB, free: 7.328 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001501/0.1243, allocations: 36.27 kB / 0.5057 GB, free: 7.293 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.09e-05/0.1243, allocations: 8 kB / 0.5057 GB, free: 7.285 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001684/0.1245, allocations: 31.83 kB / 0.5057 GB, free: 7.254 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.864e-05/0.1245, allocations: 12 kB / 0.5057 GB, free: 7.242 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.0002574/0.1247, allocations: 189.5 kB / 0.5059 GB, free: 7.047 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.055e-05/0.1248, allocations: 35.77 kB / 0.5059 GB, free: 7.012 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005753/0.1254, allocations: 276 kB / 0.5062 GB, free: 6.742 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-06/0.1254, allocations: 7.938 kB / 0.5062 GB, free: 6.734 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.117e-06/0.1254, allocations: 0 / 0.5062 GB, free: 6.734 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.1254, allocations: 0 / 0.5062 GB, free: 6.734 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003479/0.1257, allocations: 300.6 kB / 0.5065 GB, free: 6.398 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.1257, allocations: 0 / 0.5065 GB, free: 6.398 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.261e-05/0.1258, allocations: 15.98 kB / 0.5065 GB, free: 6.383 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.1258, allocations: 4 kB / 0.5065 GB, free: 6.379 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.047e-05/0.1258, allocations: 11.94 kB / 0.5065 GB, free: 6.367 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.1258, allocations: 0 / 0.5065 GB, free: 6.367 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.1258, allocations: 0 / 0.5065 GB, free: 6.367 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005299/0.1264, allocations: 292.7 kB / 0.5068 GB, free: 6.062 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.987e-05/0.1264, allocations: 31.7 kB / 0.5068 GB, free: 6.031 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.189e-05/0.1265, allocations: 12 kB / 0.5068 GB, free: 6.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001452/0.1266, allocations: 19.97 kB / 0.5069 GB, free: 6 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.122e-05/0.1267, allocations: 23.91 kB / 0.5069 GB, free: 5.977 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.12e-05/0.1267, allocations: 4 kB / 0.5069 GB, free: 5.973 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003389/0.1271, allocations: 291.2 kB / 0.5072 GB, free: 5.691 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1271, allocations: 0 / 0.5072 GB, free: 5.691 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003714/0.1274, allocations: 79.86 kB / 0.5072 GB, free: 5.613 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.002336/0.1298, allocations: 1.176 MB / 0.5084 GB, free: 4.566 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004528/0.1302, allocations: 172.2 kB / 0.5086 GB, free: 4.398 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.1302, allocations: 0 / 0.5086 GB, free: 4.398 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002034/0.1304, allocations: 81.78 kB / 0.5086 GB, free: 4.32 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004507/0.1309, allocations: 92.45 kB / 0.5087 GB, free: 4.238 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00427/0.1351, allocations: 3.047 MB / 0.5117 GB, free: 1.031 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004474/0.1356, allocations: 0.7795 MB / 0.5125 GB, free: 228 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001586/0.1357, allocations: 46.94 kB / 0.5125 GB, free: 180 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001644/0.1359, allocations: 103.4 kB / 0.5126 GB, free: 76 kB / 382.1 MB Notification: Performance of SimCode: time 9.22e-07/0.1359, allocations: 0 / 0.5126 GB, free: 76 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2285/0.3644, allocations: 8.307 MB / 0.5207 GB, free: 21.57 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.43/11.8, allocations: 1.375 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 & /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: 14.508869335986674] Failed to read output from testmodel.py, exit status != 0: 11.95747856493108 11.970337669 11.851929046 Calling exit ...