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.001244/0.001244, allocations: 101.8 kB / 19.73 MB, free: 2.23 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.001559/0.001559, allocations: 217 kB / 23.04 MB, free: 5.074 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.34/1.34, allocations: 230.6 MB / 256.8 MB, free: 8 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.06089/0.06089, allocations: 11.34 MB / 324.6 MB, free: 8.23 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.001873/0.001873, allocations: 59.91 kB / 451.8 MB, free: 10.51 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09979/0.1017, allocations: 56.07 MB / 0.496 GB, free: 2.34 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing): time 0.003554/0.1052, allocations: 2.216 MB / 0.4982 GB, free: 112 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002449/0.1077, allocations: 1.528 MB / 0.4996 GB, free: 14.57 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001193/0.1078, allocations: 7.938 kB / 0.4997 GB, free: 14.57 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008015/0.1086, allocations: 274 kB / 0.4999 GB, free: 14.3 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005464/0.1091, allocations: 263 kB / 0.5002 GB, free: 14.04 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000669/0.1098, allocations: 314.5 kB / 0.5005 GB, free: 13.74 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004361/0.1102, allocations: 398.9 kB / 0.5008 GB, free: 13.35 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001365/0.1104, allocations: 49.59 kB / 0.5009 GB, free: 13.3 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002765/0.1107, allocations: 175.3 kB / 0.5011 GB, free: 13.12 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000216/0.1109, allocations: 171.2 kB / 0.5012 GB, free: 12.96 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.801e-05/0.1109, allocations: 24 kB / 0.5012 GB, free: 12.93 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000235/0.1111, allocations: 143.8 kB / 0.5014 GB, free: 12.79 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001004/0.1112, allocations: 79.73 kB / 0.5015 GB, free: 12.71 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001339/0.1114, allocations: 131.2 kB / 0.5016 GB, free: 12.59 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004996/0.1119, allocations: 430.2 kB / 0.502 GB, free: 12.16 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.1119, allocations: 4 kB / 0.502 GB, free: 12.16 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1119, allocations: 0 / 0.502 GB, free: 12.16 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.063e-06/0.1119, allocations: 3.938 kB / 0.502 GB, free: 12.16 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.001099/0.113, allocations: 0.6399 MB / 0.5026 GB, free: 11.47 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.107e-05/0.113, allocations: 12.03 kB / 0.5026 GB, free: 11.46 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.899e-05/0.113, allocations: 4.188 kB / 0.5026 GB, free: 11.46 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.591e-05/0.1131, allocations: 54.73 kB / 0.5027 GB, free: 11.39 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001837/0.1133, allocations: 48.69 kB / 0.5027 GB, free: 11.35 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004112/0.1137, allocations: 270.4 kB / 0.503 GB, free: 11.06 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.278e-05/0.1137, allocations: 19.92 kB / 0.503 GB, free: 11.04 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.559e-05/0.1137, allocations: 12 kB / 0.503 GB, free: 11.03 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003735/0.1141, allocations: 192.7 kB / 0.5032 GB, free: 10.83 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.095e-06/0.1141, allocations: 4 kB / 0.5032 GB, free: 10.82 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.045e-05/0.1141, allocations: 4 kB / 0.5032 GB, free: 10.82 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/0.1142, allocations: 4 kB / 0.5032 GB, free: 10.82 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002428/0.1144, allocations: 99.8 kB / 0.5033 GB, free: 10.72 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007763/0.1152, allocations: 0.5032 MB / 0.5038 GB, free: 10.17 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004369/0.1156, allocations: 158.6 kB / 0.504 GB, free: 10.01 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001522/0.1158, allocations: 61.02 kB / 0.504 GB, free: 9.945 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.581e-05/0.1158, allocations: 7.969 kB / 0.504 GB, free: 9.938 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003243/0.1161, allocations: 177 kB / 0.5042 GB, free: 9.746 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 1.253e-06/0.1161, allocations: 0 / 0.5042 GB, free: 9.746 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.0006899/0.1168, allocations: 323.3 kB / 0.5045 GB, free: 9.426 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.871e-05/0.1169, allocations: 136.5 kB / 0.5046 GB, free: 9.262 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004379/0.1173, allocations: 409.6 kB / 0.505 GB, free: 8.848 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.333e-05/0.1174, allocations: 37.69 kB / 0.5051 GB, free: 8.805 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001224/0.1175, allocations: 164.5 kB / 0.5052 GB, free: 8.641 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.848e-05/0.1175, allocations: 55.58 kB / 0.5053 GB, free: 8.586 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.78e-05/0.1176, allocations: 57.69 kB / 0.5053 GB, free: 8.523 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001573/0.1178, allocations: 346.8 kB / 0.5057 GB, free: 8.176 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001411/0.1179, allocations: 51.97 kB / 0.5057 GB, free: 8.125 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002318/0.1182, allocations: 183.6 kB / 0.5059 GB, free: 7.891 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004165/0.1186, allocations: 254.9 kB / 0.5061 GB, free: 7.602 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/0.1186, allocations: 3.938 kB / 0.5061 GB, free: 7.598 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004776/0.1191, allocations: 265.3 kB / 0.5064 GB, free: 7.332 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.787e-05/0.1191, allocations: 8.328 kB / 0.5064 GB, free: 7.324 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/0.1191, allocations: 12 kB / 0.5064 GB, free: 7.312 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.615e-05/0.1191, allocations: 7.984 kB / 0.5064 GB, free: 7.305 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001338/0.1192, allocations: 35.92 kB / 0.5064 GB, free: 7.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.068e-05/0.1192, allocations: 7.938 kB / 0.5065 GB, free: 7.262 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001523/0.1194, allocations: 31.83 kB / 0.5065 GB, free: 7.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.981e-05/0.1194, allocations: 15.94 kB / 0.5065 GB, free: 7.215 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.0002307/0.1196, allocations: 189.4 kB / 0.5067 GB, free: 7.02 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.652e-05/0.1197, allocations: 39.77 kB / 0.5067 GB, free: 6.98 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005206/0.1202, allocations: 267.9 kB / 0.507 GB, free: 6.719 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.1202, allocations: 0 / 0.507 GB, free: 6.719 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.1202, allocations: 4 kB / 0.507 GB, free: 6.715 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/0.1202, allocations: 4 kB / 0.507 GB, free: 6.711 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003091/0.1205, allocations: 288.5 kB / 0.5073 GB, free: 6.387 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.1205, allocations: 7.938 kB / 0.5073 GB, free: 6.379 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.573e-05/0.1206, allocations: 15.98 kB / 0.5073 GB, free: 6.363 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.118e-06/0.1206, allocations: 3.938 kB / 0.5073 GB, free: 6.359 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.835e-05/0.1206, allocations: 4 kB / 0.5073 GB, free: 6.355 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.477e-06/0.1206, allocations: 4 kB / 0.5073 GB, free: 6.352 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.1206, allocations: 0 / 0.5073 GB, free: 6.352 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005029/0.1211, allocations: 292.7 kB / 0.5076 GB, free: 6.047 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.195e-05/0.1212, allocations: 35.7 kB / 0.5076 GB, free: 6.012 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.859e-05/0.1212, allocations: 8 kB / 0.5076 GB, free: 6.004 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001375/0.1214, allocations: 15.97 kB / 0.5076 GB, free: 5.988 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.94e-05/0.1214, allocations: 27.84 kB / 0.5077 GB, free: 5.961 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.783e-05/0.1215, allocations: 12 kB / 0.5077 GB, free: 5.949 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003044/0.1218, allocations: 291.2 kB / 0.5079 GB, free: 5.668 MB / 382.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1218, allocations: 4 kB / 0.5079 GB, free: 5.664 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003361/0.1221, allocations: 75.92 kB / 0.508 GB, free: 5.59 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.002204/0.1243, allocations: 1.175 MB / 0.5092 GB, free: 4.543 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004097/0.1247, allocations: 170.4 kB / 0.5093 GB, free: 4.379 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.017e-06/0.1247, allocations: 4 kB / 0.5093 GB, free: 4.375 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001834/0.1249, allocations: 79.89 kB / 0.5094 GB, free: 4.297 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004228/0.1253, allocations: 89.02 kB / 0.5095 GB, free: 4.219 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003685/0.129, allocations: 3.05 MB / 0.5125 GB, free: 1.008 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003744/0.1294, allocations: 0.7756 MB / 0.5132 GB, free: 208 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001194/0.1295, allocations: 46.94 kB / 0.5133 GB, free: 160 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001501/0.1297, allocations: 107.4 kB / 0.5134 GB, free: 52 kB / 382.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1297, allocations: 0 / 0.5134 GB, free: 52 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2056/0.3353, allocations: 8.342 MB / 0.5215 GB, free: 21.88 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.74/11.08, allocations: 2.75 kB / 0.5215 GB, free: 21.88 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.605470663052984] Failed to read output from testmodel.py, exit status != 0: 11.288845992996357 11.310471746 11.194582649 Calling exit ...