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.001226/0.001226, allocations: 97.88 kB / 19.73 MB, free: 2.117 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.001429/0.001429, allocations: 218.7 kB / 23.03 MB, free: 4.922 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.36/1.36, allocations: 230.6 MB / 256.8 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.06158/0.06158, allocations: 11.34 MB / 324.6 MB, free: 8.012 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_Counter_Examples_countZeroCrossing",fmuType="cs",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.00188/0.00188, allocations: 67.91 kB / 451.7 MB, free: 10.32 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1101, allocations: 56.07 MB / 0.4959 GB, free: 2.152 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing): time 0.00355/0.1137, allocations: 2.107 MB / 0.498 GB, free: 32 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002388/0.1161, allocations: 1.438 MB / 0.4994 GB, free: 14.59 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001156/0.1162, allocations: 3.938 kB / 0.4994 GB, free: 14.58 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008177/0.117, allocations: 285.8 kB / 0.4997 GB, free: 14.3 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005382/0.1175, allocations: 247 kB / 0.4999 GB, free: 14.06 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007054/0.1182, allocations: 313.8 kB / 0.5002 GB, free: 13.76 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004491/0.1187, allocations: 395 kB / 0.5006 GB, free: 13.37 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001414/0.1188, allocations: 49.59 kB / 0.5006 GB, free: 13.32 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00028/0.1191, allocations: 179.2 kB / 0.5008 GB, free: 13.14 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002067/0.1193, allocations: 167.3 kB / 0.5009 GB, free: 12.98 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.15e-05/0.1194, allocations: 24 kB / 0.501 GB, free: 12.96 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002473/0.1196, allocations: 147.8 kB / 0.5011 GB, free: 12.81 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001075/0.1197, allocations: 71.77 kB / 0.5012 GB, free: 12.74 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001484/0.1199, allocations: 115.2 kB / 0.5013 GB, free: 12.63 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005222/0.1204, allocations: 430.2 kB / 0.5017 GB, free: 12.21 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.1204, allocations: 0 / 0.5017 GB, free: 12.21 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1204, allocations: 0 / 0.5017 GB, free: 12.21 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.151e-06/0.1204, allocations: 0 / 0.5017 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.001091/0.1215, allocations: 0.6457 MB / 0.5023 GB, free: 11.52 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.156e-05/0.1215, allocations: 8.031 kB / 0.5023 GB, free: 11.51 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.594e-05/0.1215, allocations: 4.188 kB / 0.5023 GB, free: 11.51 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.849e-05/0.1216, allocations: 46.73 kB / 0.5024 GB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001894/0.1218, allocations: 52.69 kB / 0.5024 GB, free: 11.4 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004308/0.1222, allocations: 274.4 kB / 0.5027 GB, free: 11.11 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.429e-05/0.1222, allocations: 15.94 kB / 0.5027 GB, free: 11.1 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.749e-05/0.1223, allocations: 19.98 kB / 0.5027 GB, free: 11.08 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004563/0.1227, allocations: 295.4 kB / 0.503 GB, free: 10.75 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.558e-06/0.1227, allocations: 0 / 0.503 GB, free: 10.75 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.419e-05/0.1228, allocations: 8 kB / 0.503 GB, free: 10.74 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.14e-05/0.1228, allocations: 4 kB / 0.503 GB, free: 10.74 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002606/0.123, allocations: 99.92 kB / 0.5031 GB, free: 10.64 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008211/0.1239, allocations: 479.4 kB / 0.5036 GB, free: 10.13 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004755/0.1243, allocations: 174.6 kB / 0.5037 GB, free: 9.949 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001592/0.1245, allocations: 64.83 kB / 0.5038 GB, free: 9.883 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.019e-05/0.1245, allocations: 3.984 kB / 0.5038 GB, free: 9.879 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003706/0.1249, allocations: 232.3 kB / 0.504 GB, free: 9.621 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 1.452e-06/0.1249, allocations: 4 kB / 0.504 GB, free: 9.617 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.0007231/0.1256, allocations: 329.3 kB / 0.5043 GB, free: 9.289 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.115e-05/0.1257, allocations: 144.4 kB / 0.5045 GB, free: 9.117 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004424/0.1261, allocations: 405.6 kB / 0.5049 GB, free: 8.707 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.037e-05/0.1262, allocations: 37.7 kB / 0.5049 GB, free: 8.664 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001305/0.1263, allocations: 172.5 kB / 0.5051 GB, free: 8.492 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.88e-05/0.1264, allocations: 59.58 kB / 0.5051 GB, free: 8.434 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.824e-05/0.1264, allocations: 49.7 kB / 0.5052 GB, free: 8.379 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000157/0.1266, allocations: 350.8 kB / 0.5055 GB, free: 8.027 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001495/0.1267, allocations: 55.97 kB / 0.5056 GB, free: 7.973 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003045/0.127, allocations: 311.8 kB / 0.5059 GB, free: 7.582 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004359/0.1275, allocations: 254.9 kB / 0.5061 GB, free: 7.293 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.19e-06/0.1275, allocations: 3.938 kB / 0.5061 GB, free: 7.289 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005169/0.128, allocations: 289 kB / 0.5064 GB, free: 7 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.749e-05/0.128, allocations: 4 kB / 0.5064 GB, free: 6.996 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.535e-06/0.128, allocations: 4.188 kB / 0.5064 GB, free: 6.992 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.616e-05/0.128, allocations: 4 kB / 0.5064 GB, free: 6.988 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001482/0.1282, allocations: 44.25 kB / 0.5064 GB, free: 6.945 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.128e-05/0.1282, allocations: 11.98 kB / 0.5064 GB, free: 6.934 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001534/0.1284, allocations: 27.88 kB / 0.5065 GB, free: 6.906 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.053e-05/0.1284, allocations: 12 kB / 0.5065 GB, free: 6.895 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.000223/0.1286, allocations: 177.5 kB / 0.5067 GB, free: 6.711 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.003e-05/0.1287, allocations: 43.75 kB / 0.5067 GB, free: 6.668 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005579/0.1292, allocations: 288.2 kB / 0.507 GB, free: 6.387 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.1292, allocations: 0 / 0.507 GB, free: 6.387 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.1292, allocations: 0 / 0.507 GB, free: 6.387 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.1292, allocations: 7.984 kB / 0.507 GB, free: 6.379 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00029/0.1295, allocations: 272.4 kB / 0.5072 GB, free: 6.07 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-06/0.1295, allocations: 0 / 0.5072 GB, free: 6.07 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.866e-05/0.1296, allocations: 15.98 kB / 0.5073 GB, free: 6.055 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.56e-06/0.1296, allocations: 4 kB / 0.5073 GB, free: 6.051 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.102e-05/0.1296, allocations: 11.98 kB / 0.5073 GB, free: 6.039 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/0.1296, allocations: 4 kB / 0.5073 GB, free: 6.035 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.1296, allocations: 0 / 0.5073 GB, free: 6.035 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005423/0.1302, allocations: 320.2 kB / 0.5076 GB, free: 5.707 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.357e-05/0.1302, allocations: 31.7 kB / 0.5076 GB, free: 5.676 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.454e-05/0.1303, allocations: 11.94 kB / 0.5076 GB, free: 5.664 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001514/0.1304, allocations: 23.97 kB / 0.5076 GB, free: 5.641 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.857e-05/0.1305, allocations: 15.97 kB / 0.5077 GB, free: 5.625 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.594e-05/0.1305, allocations: 12 kB / 0.5077 GB, free: 5.613 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003257/0.1309, allocations: 299.1 kB / 0.508 GB, free: 5.324 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1309, allocations: 0 / 0.508 GB, free: 5.324 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003673/0.1312, allocations: 75.94 kB / 0.508 GB, free: 5.25 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.002505/0.1337, allocations: 1.223 MB / 0.5092 GB, free: 4.184 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004813/0.1342, allocations: 191.6 kB / 0.5094 GB, free: 3.996 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.1342, allocations: 0 / 0.5094 GB, free: 3.996 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002113/0.1344, allocations: 87.89 kB / 0.5095 GB, free: 3.91 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000444/0.1349, allocations: 83 kB / 0.5096 GB, free: 3.836 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003965/0.1388, allocations: 3.069 MB / 0.5126 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001733/0.139, allocations: 189.3 kB / 0.5127 GB, free: 408 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001425/0.1391, allocations: 54.92 kB / 0.5128 GB, free: 352 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001773/0.1393, allocations: 99.41 kB / 0.5129 GB, free: 252 kB / 382.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1393, allocations: 0 / 0.5129 GB, free: 252 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.222/0.3614, allocations: 8.747 MB / 0.5214 GB, free: 22.32 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.88/11.25, allocations: 11.67 kB / 0.5214 GB, free: 22.32 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 os._exit(0), Time elapsed: 13.80268733901903] Failed to read output from testmodel.py, exit status != 0: 11.45597461995203 11.468219999 11.345270154 Calling exit ...