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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000927/0.000927, allocations: 111.3 kB / 15.23 MB, free: 0.6406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009741/0.0009742, allocations: 195.7 kB / 16.14 MB, free: 6.707 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.49/1.49, allocations: 205.1 MB / 222 MB, free: 4.762 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05362/0.05362, allocations: 10.74 MB / 280.1 MB, free: 10.73 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001304/0.001304, allocations: 63.91 kB / 340 MB, free: 23.7 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09134/0.09266, allocations: 49.02 MB / 389 MB, free: 6.609 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing): time 0.003547/0.09625, allocations: 2.185 MB / 391.2 MB, free: 4.406 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001995/0.09827, allocations: 1.24 MB / 392.4 MB, free: 3.156 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001199/0.09842, allocations: 4 kB / 392.4 MB, free: 3.152 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007256/0.09916, allocations: 251.4 kB / 392.7 MB, free: 2.906 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003529/0.09952, allocations: 175.4 kB / 392.8 MB, free: 2.734 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000687/0.1002, allocations: 295.5 kB / 393.1 MB, free: 2.445 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003544/0.1006, allocations: 374.9 kB / 393.5 MB, free: 2.078 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001374/0.1007, allocations: 61.14 kB / 393.5 MB, free: 2.02 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001968/0.1009, allocations: 147.3 kB / 393.7 MB, free: 1.875 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002189/0.1012, allocations: 147.3 kB / 393.8 MB, free: 1.73 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.366e-05/0.1012, allocations: 8 kB / 393.8 MB, free: 1.723 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001963/0.1014, allocations: 107.9 kB / 393.9 MB, free: 1.617 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.064e-05/0.1015, allocations: 71.73 kB / 394 MB, free: 1.547 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001148/0.1016, allocations: 123.1 kB / 394.1 MB, free: 1.426 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003854/0.102, allocations: 383.1 kB / 394.5 MB, free: 1.051 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.65e-06/0.102, allocations: 0 / 394.5 MB, free: 1.051 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.102, allocations: 3.938 kB / 394.5 MB, free: 1.047 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.338e-06/0.102, allocations: 0 / 394.5 MB, free: 1.047 MB / 286.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.0009984/0.103, allocations: 0.684 MB / 395.2 MB, free: 312 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.666e-05/0.1031, allocations: 12.03 kB / 395.2 MB, free: 300 kB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.868e-05/0.1031, allocations: 50.67 kB / 395.3 MB, free: 240 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.802e-05/0.1032, allocations: 44.41 kB / 395.3 MB, free: 196 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003768/0.1036, allocations: 332 kB / 395.6 MB, free: 15.83 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.575e-05/0.1036, allocations: 8.125 kB / 395.6 MB, free: 15.82 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.742e-05/0.1037, allocations: 15.98 kB / 395.6 MB, free: 15.8 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003534/0.104, allocations: 196.1 kB / 395.8 MB, free: 15.6 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.726e-06/0.104, allocations: 0 / 395.8 MB, free: 15.6 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.28e-05/0.1041, allocations: 8 kB / 395.8 MB, free: 15.59 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.318e-06/0.1041, allocations: 8 kB / 395.9 MB, free: 15.58 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002419/0.1043, allocations: 87.94 kB / 395.9 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007657/0.1051, allocations: 0.5313 MB / 396.5 MB, free: 14.91 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00045/0.1056, allocations: 162.8 kB / 396.6 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000152/0.1057, allocations: 79.41 kB / 396.7 MB, free: 14.67 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.32e-05/0.1058, allocations: 4 kB / 396.7 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003235/0.1061, allocations: 169 kB / 396.9 MB, free: 14.48 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.493e-06/0.1061, allocations: 0 / 396.9 MB, free: 14.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.0007096/0.1068, allocations: 322.8 kB / 397.2 MB, free: 14.16 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.683e-05/0.1069, allocations: 136.5 kB / 397.3 MB, free: 14 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004021/0.1073, allocations: 385.6 kB / 397.7 MB, free: 13.61 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.767e-05/0.1074, allocations: 33.7 kB / 397.7 MB, free: 13.57 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001191/0.1075, allocations: 164.4 kB / 397.9 MB, free: 13.41 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.965e-05/0.1075, allocations: 55.3 kB / 398 MB, free: 13.35 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.442e-05/0.1076, allocations: 53.69 kB / 398 MB, free: 13.29 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001523/0.1078, allocations: 354.7 kB / 398.4 MB, free: 12.94 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001392/0.1079, allocations: 60.17 kB / 398.4 MB, free: 12.88 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002318/0.1082, allocations: 183.5 kB / 398.6 MB, free: 12.64 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004163/0.1086, allocations: 250.8 kB / 398.8 MB, free: 12.36 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.94e-06/0.1086, allocations: 4 kB / 398.8 MB, free: 12.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004587/0.1091, allocations: 269.2 kB / 399.1 MB, free: 12.09 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.372e-05/0.1091, allocations: 8 kB / 399.1 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.1091, allocations: 4 kB / 399.1 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.386e-05/0.1091, allocations: 4 kB / 399.1 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001312/0.1093, allocations: 35.92 kB / 399.2 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.517e-06/0.1093, allocations: 7.938 kB / 399.2 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001435/0.1094, allocations: 31.73 kB / 399.2 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.742e-05/0.1095, allocations: 12 kB / 399.2 MB, free: 11.98 MB / 302.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.0002122/0.1097, allocations: 197.3 kB / 399.4 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.789e-05/0.1097, allocations: 31.62 kB / 399.4 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.545e-05/0.1098, allocations: 31.28 kB / 399.5 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.437e-06/0.1098, allocations: 7.938 kB / 399.5 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.1098, allocations: 0 / 399.5 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.1098, allocations: 7.984 kB / 399.5 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002741/0.1101, allocations: 309.3 kB / 399.8 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/0.1101, allocations: 7.984 kB / 399.8 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.373e-05/0.1102, allocations: 8 kB / 399.8 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.023e-06/0.1102, allocations: 0 / 399.8 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.014e-05/0.1102, allocations: 11.98 kB / 399.8 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.1102, allocations: 0 / 399.8 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.1102, allocations: 0 / 399.8 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004806/0.1107, allocations: 292.5 kB / 400.1 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.104e-05/0.1108, allocations: 112.7 kB / 400.2 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.535e-05/0.1109, allocations: 7.938 kB / 400.2 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001331/0.111, allocations: 15.98 kB / 400.2 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.053e-05/0.1111, allocations: 23.91 kB / 400.2 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.142e-05/0.1111, allocations: 8 kB / 400.3 MB, free: 10.83 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002705/0.1114, allocations: 279.2 kB / 400.5 MB, free: 10.57 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1114, allocations: 4 kB / 400.5 MB, free: 10.56 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000327/0.1117, allocations: 71.98 kB / 400.6 MB, free: 10.49 MB / 302.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.001606/0.1133, allocations: 1.171 MB / 401.8 MB, free: 9.391 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003925/0.1137, allocations: 179.8 kB / 401.9 MB, free: 9.215 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.1137, allocations: 0 / 401.9 MB, free: 9.215 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001835/0.1139, allocations: 91.89 kB / 402 MB, free: 9.125 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004162/0.1144, allocations: 77.94 kB / 402.1 MB, free: 9.043 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003492/0.1179, allocations: 3.074 MB / 405.2 MB, free: 5.816 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003254/0.1182, allocations: 0.7792 MB / 406 MB, free: 5.012 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001331/0.1183, allocations: 46.94 kB / 406 MB, free: 4.969 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001336/0.1185, allocations: 99.39 kB / 406.1 MB, free: 4.875 MB / 302.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1185, allocations: 0 / 406.1 MB, free: 4.875 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01845/0.1369, allocations: 7.376 MB / 413.5 MB, free: 13.53 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002231/0.1372, allocations: 287.3 kB / 413.8 MB, free: 13.14 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.819/1.956, allocations: 7.688 kB / 413.8 MB, free: 13.14 MB / 318.1 MB (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 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_Logical_Counter_Examples_countZeroCrossing.fmu > IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.pipe 2>&1)