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.001468/0.001468, allocations: 120.9 kB / 17.16 MB, free: 5.914 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.001538/0.001538, allocations: 208 kB / 20.13 MB, free: 2.969 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.386/1.386, allocations: 230.6 MB / 253.5 MB, free: 15.1 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.06095/0.06095, allocations: 11.33 MB / 320.9 MB, free: 14.13 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.001905/0.001905, allocations: 69.81 kB / 446.5 MB, free: 39.01 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08413/0.08603, allocations: 56 MB / 0.4908 GB, free: 3.473 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing): time 0.002913/0.08895, allocations: 2.201 MB / 0.4929 GB, free: 1.254 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002123/0.09107, allocations: 1.52 MB / 0.4944 GB, free: 15.73 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002173/0.09129, allocations: 7.938 kB / 0.4944 GB, free: 15.72 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000807/0.09209, allocations: 267.2 kB / 0.4946 GB, free: 15.46 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00064/0.09273, allocations: 251 kB / 0.4949 GB, free: 15.21 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008015/0.09354, allocations: 302.6 kB / 0.4952 GB, free: 14.92 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005752/0.09411, allocations: 402.9 kB / 0.4956 GB, free: 14.52 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001484/0.09426, allocations: 45.42 kB / 0.4956 GB, free: 14.48 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003465/0.09461, allocations: 179.3 kB / 0.4958 GB, free: 14.3 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002469/0.09485, allocations: 167.2 kB / 0.4959 GB, free: 14.14 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.794e-05/0.0949, allocations: 24 kB / 0.496 GB, free: 14.11 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002653/0.09517, allocations: 135.8 kB / 0.4961 GB, free: 13.98 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001111/0.09528, allocations: 83.73 kB / 0.4962 GB, free: 13.9 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001563/0.09543, allocations: 139.1 kB / 0.4963 GB, free: 13.76 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000568/0.096, allocations: 422.3 kB / 0.4967 GB, free: 13.35 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.096, allocations: 4 kB / 0.4967 GB, free: 13.34 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.09601, allocations: 0 / 0.4967 GB, free: 13.34 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.227e-06/0.09601, allocations: 0 / 0.4967 GB, free: 13.34 MB / 366.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.001214/0.09723, allocations: 0.7074 MB / 0.4974 GB, free: 12.57 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.09726, allocations: 12.03 kB / 0.4974 GB, free: 12.56 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.502e-05/0.09728, allocations: 8.125 kB / 0.4974 GB, free: 12.55 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.054e-05/0.09733, allocations: 46.73 kB / 0.4975 GB, free: 12.5 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001983/0.09753, allocations: 48.69 kB / 0.4975 GB, free: 12.45 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004701/0.098, allocations: 348.2 kB / 0.4978 GB, free: 12.08 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.869e-05/0.09802, allocations: 11.94 kB / 0.4978 GB, free: 12.07 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.352e-05/0.09805, allocations: 16 kB / 0.4979 GB, free: 12.05 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003876/0.09844, allocations: 196.1 kB / 0.4981 GB, free: 11.84 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/0.09845, allocations: 3.938 kB / 0.4981 GB, free: 11.84 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.415e-05/0.09847, allocations: 7.984 kB / 0.4981 GB, free: 11.83 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.09848, allocations: 4 kB / 0.4981 GB, free: 11.83 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002512/0.09873, allocations: 87.95 kB / 0.4981 GB, free: 11.74 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008125/0.09954, allocations: 0.5354 MB / 0.4987 GB, free: 11.16 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004627/0.1, allocations: 154.6 kB / 0.4988 GB, free: 11 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001683/0.1002, allocations: 72.98 kB / 0.4989 GB, free: 10.92 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.874e-05/0.1002, allocations: 7.938 kB / 0.4989 GB, free: 10.91 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003392/0.1005, allocations: 170.7 kB / 0.4991 GB, free: 10.73 MB / 366.1 MB Notification: Performance of pre-optimization done (n=21): time 1.412e-06/0.1005, allocations: 0 / 0.4991 GB, free: 10.73 MB / 366.1 MB Notification: Performance of matching and sorting (n=21): time 0.0007311/0.1013, allocations: 325.2 kB / 0.4994 GB, free: 10.41 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.627e-05/0.1014, allocations: 140.5 kB / 0.4995 GB, free: 10.24 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004633/0.1018, allocations: 405.6 kB / 0.4999 GB, free: 9.832 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.282e-05/0.1019, allocations: 33.7 kB / 0.4999 GB, free: 9.793 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001371/0.102, allocations: 168.5 kB / 0.5001 GB, free: 9.625 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.735e-05/0.1021, allocations: 55.58 kB / 0.5001 GB, free: 9.57 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.192e-05/0.1021, allocations: 53.69 kB / 0.5002 GB, free: 9.512 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001724/0.1023, allocations: 350.8 kB / 0.5005 GB, free: 9.16 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001439/0.1025, allocations: 55.97 kB / 0.5006 GB, free: 9.105 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000246/0.1027, allocations: 177.1 kB / 0.5007 GB, free: 8.879 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004269/0.1031, allocations: 246.9 kB / 0.501 GB, free: 8.598 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.969e-06/0.1031, allocations: 3.938 kB / 0.501 GB, free: 8.594 MB / 366.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005126/0.1036, allocations: 273.2 kB / 0.5012 GB, free: 8.32 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.592e-05/0.1037, allocations: 11.94 kB / 0.5013 GB, free: 8.309 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.289e-06/0.1037, allocations: 0 / 0.5013 GB, free: 8.309 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.226e-05/0.1037, allocations: 8 kB / 0.5013 GB, free: 8.301 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001362/0.1038, allocations: 39.86 kB / 0.5013 GB, free: 8.262 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.718e-06/0.1038, allocations: 4 kB / 0.5013 GB, free: 8.258 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001558/0.104, allocations: 35.77 kB / 0.5013 GB, free: 8.223 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.2e-05/0.104, allocations: 20.25 kB / 0.5014 GB, free: 8.203 MB / 366.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.0002404/0.1043, allocations: 185.4 kB / 0.5015 GB, free: 8.008 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.015e-05/0.1043, allocations: 39.7 kB / 0.5016 GB, free: 7.969 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.458e-05/0.1044, allocations: 31.36 kB / 0.5016 GB, free: 7.941 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.195e-06/0.1044, allocations: 4 kB / 0.5016 GB, free: 7.938 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.1044, allocations: 0 / 0.5016 GB, free: 7.938 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.496e-06/0.1044, allocations: 7.984 kB / 0.5016 GB, free: 7.93 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003218/0.1047, allocations: 321.3 kB / 0.5019 GB, free: 7.566 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.1047, allocations: 0 / 0.5019 GB, free: 7.566 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.116e-05/0.1048, allocations: 23.92 kB / 0.5019 GB, free: 7.543 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.1048, allocations: 0 / 0.5019 GB, free: 7.543 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.981e-05/0.1048, allocations: 7.984 kB / 0.502 GB, free: 7.535 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.1048, allocations: 0 / 0.502 GB, free: 7.535 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.1048, allocations: 0 / 0.502 GB, free: 7.535 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005151/0.1053, allocations: 292.1 kB / 0.5022 GB, free: 7.234 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.38e-05/0.1054, allocations: 112.9 kB / 0.5023 GB, free: 7.105 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.986e-05/0.1055, allocations: 11.94 kB / 0.5023 GB, free: 7.094 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001388/0.1056, allocations: 11.98 kB / 0.5024 GB, free: 7.082 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.039e-05/0.1057, allocations: 19.97 kB / 0.5024 GB, free: 7.062 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.41e-05/0.1057, allocations: 12 kB / 0.5024 GB, free: 7.051 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003269/0.106, allocations: 295.2 kB / 0.5027 GB, free: 6.766 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.106, allocations: 0 / 0.5027 GB, free: 6.766 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000351/0.1064, allocations: 79.86 kB / 0.5027 GB, free: 6.688 MB / 366.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.00229/0.1087, allocations: 1.175 MB / 0.5039 GB, free: 5.641 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004383/0.1091, allocations: 171.7 kB / 0.5041 GB, free: 5.473 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.1091, allocations: 0 / 0.5041 GB, free: 5.473 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001881/0.1093, allocations: 88.52 kB / 0.5041 GB, free: 5.387 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004254/0.1097, allocations: 83.33 kB / 0.5042 GB, free: 5.312 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003844/0.1135, allocations: 3.054 MB / 0.5072 GB, free: 2.105 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003982/0.1139, allocations: 0.7794 MB / 0.508 GB, free: 1.301 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001278/0.1141, allocations: 46.94 kB / 0.508 GB, free: 1.254 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000154/0.1142, allocations: 103.4 kB / 0.5081 GB, free: 1.152 MB / 366.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1142, allocations: 3.938 kB / 0.5081 GB, free: 1.148 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02644/0.1407, allocations: 8.147 MB / 0.5161 GB, free: 9.152 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.26/8.4, allocations: 21.22 kB / 0.5161 GB, free: 9.141 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 & /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: 10.989059799001552] Failed to read output from testmodel.py, exit status != 0: 8.580020636029076 8.605012799 8.504251709 Calling exit ...