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.0009394/0.0009394, allocations: 80.88 kB / 19.94 MB, free: 4.547 MB / 18.57 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.001093/0.001093, allocations: 181 kB / 23.36 MB, free: 1.133 MB / 18.57 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 0.9064/0.9064, allocations: 177.1 MB / 203.8 MB, free: 5.484 MB / 186.7 MB " [Timeout remaining time 179] 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.05183/0.05183, allocations: 8.622 MB / 268.9 MB, free: 4.797 MB / 250.7 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: translateModel(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing") translateModel(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.212e-06/1.212e-06, allocations: 0 / 288 MB, free: 1.629 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.867e-05/1.988e-05, allocations: 10.05 kB / 288.1 MB, free: 1.621 MB / 266.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing): time 0.1005/0.1005, allocations: 2.19 MB / 290.2 MB, free: 18.66 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001769/0.1022, allocations: 1.488 MB / 291.7 MB, free: 18.15 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001474/0.1024, allocations: 6.531 kB / 291.7 MB, free: 18.15 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006266/0.103, allocations: 276 kB / 292 MB, free: 18.1 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004411/0.1035, allocations: 257.9 kB / 292.3 MB, free: 18.02 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005812/0.104, allocations: 311.4 kB / 292.6 MB, free: 17.95 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003841/0.1044, allocations: 401.9 kB / 293 MB, free: 17.88 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001121/0.1045, allocations: 49.45 kB / 293 MB, free: 17.88 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003256/0.1049, allocations: 225 kB / 293.2 MB, free: 17.84 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001802/0.105, allocations: 136.8 kB / 293.4 MB, free: 17.82 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.768e-05/0.1051, allocations: 21.75 kB / 293.4 MB, free: 17.82 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002137/0.1053, allocations: 147.3 kB / 293.5 MB, free: 17.8 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.69e-05/0.1054, allocations: 82.95 kB / 293.6 MB, free: 17.78 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.308e-05/0.1055, allocations: 76.83 kB / 293.7 MB, free: 17.76 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003723/0.1058, allocations: 331.9 kB / 294 MB, free: 17.61 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.926e-06/0.1058, allocations: 2.062 kB / 294 MB, free: 17.61 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.12e-07/0.1058, allocations: 0 / 294 MB, free: 17.61 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.903e-06/0.1058, allocations: 4.75 kB / 294 MB, free: 17.61 MB / 266.7 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.0006222/0.1065, allocations: 0.5988 MB / 294.6 MB, free: 17.12 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.755e-05/0.1065, allocations: 9.062 kB / 294.6 MB, free: 17.12 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001477/0.1066, allocations: 41.88 kB / 294.7 MB, free: 17.12 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002461/0.1069, allocations: 252.3 kB / 294.9 MB, free: 16.91 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.779e-05/0.1069, allocations: 12.31 kB / 294.9 MB, free: 16.91 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.054e-05/0.1069, allocations: 12.77 kB / 294.9 MB, free: 16.91 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001807/0.1071, allocations: 180.3 kB / 295.1 MB, free: 16.79 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.863e-06/0.1071, allocations: 0 / 295.1 MB, free: 16.79 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.205e-05/0.1071, allocations: 5.891 kB / 295.1 MB, free: 16.79 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.129e-06/0.1071, allocations: 3.844 kB / 295.1 MB, free: 16.79 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.762e-05/0.1072, allocations: 34.05 kB / 295.1 MB, free: 16.78 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003811/0.1076, allocations: 299.9 kB / 295.4 MB, free: 16.57 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001739/0.1077, allocations: 140.6 kB / 295.6 MB, free: 16.49 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.897e-05/0.1078, allocations: 30.02 kB / 295.6 MB, free: 16.48 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.262e-05/0.1078, allocations: 3.312 kB / 295.6 MB, free: 16.48 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001618/0.1079, allocations: 197 kB / 295.8 MB, free: 16.33 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.573e-06/0.1079, allocations: 0 / 295.8 MB, free: 16.33 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0002024/0.1082, allocations: 141.2 kB / 295.9 MB, free: 16.29 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.911e-05/0.1082, allocations: 87.66 kB / 296 MB, free: 16.19 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002042/0.1084, allocations: 321.6 kB / 296.3 MB, free: 16 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.71e-05/0.1084, allocations: 34.38 kB / 296.4 MB, free: 15.96 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.731e-05/0.1084, allocations: 133 kB / 296.5 MB, free: 15.86 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.443e-05/0.1085, allocations: 61.22 kB / 296.6 MB, free: 15.81 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.885e-05/0.1085, allocations: 52.8 kB / 296.6 MB, free: 15.78 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.627e-05/0.1086, allocations: 349.3 kB / 297 MB, free: 15.45 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.384e-05/0.1086, allocations: 19.58 kB / 297 MB, free: 15.44 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.847e-05/0.1087, allocations: 211.2 kB / 297.2 MB, free: 15.2 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001405/0.1088, allocations: 191.1 kB / 297.4 MB, free: 15.06 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/0.1088, allocations: 1.375 kB / 297.4 MB, free: 15.06 MB / 266.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0001785/0.109, allocations: 165.7 kB / 297.5 MB, free: 15 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.254e-05/0.109, allocations: 6.219 kB / 297.5 MB, free: 15 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.109, allocations: 4.531 kB / 297.5 MB, free: 15 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.399e-05/0.109, allocations: 4.375 kB / 297.5 MB, free: 15 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.438e-05/0.1091, allocations: 35.25 kB / 297.6 MB, free: 14.99 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.8e-06/0.1091, allocations: 9.297 kB / 297.6 MB, free: 14.99 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.912e-05/0.1092, allocations: 26.84 kB / 297.6 MB, free: 14.98 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.269e-05/0.1092, allocations: 16.39 kB / 297.6 MB, free: 14.97 MB / 266.7 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.0001161/0.1093, allocations: 167.8 kB / 297.8 MB, free: 14.82 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.468e-05/0.1094, allocations: 26.12 kB / 297.8 MB, free: 14.82 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001765/0.1096, allocations: 132.2 kB / 297.9 MB, free: 14.77 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.1096, allocations: 2.406 kB / 298 MB, free: 14.77 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.704e-06/0.1096, allocations: 3.938 kB / 298 MB, free: 14.76 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.1096, allocations: 2.766 kB / 298 MB, free: 14.76 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001404/0.1097, allocations: 147.7 kB / 298.1 MB, free: 14.66 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.1097, allocations: 5.125 kB / 298.1 MB, free: 14.66 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.997e-05/0.1097, allocations: 17.05 kB / 298.1 MB, free: 14.66 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-06/0.1097, allocations: 1.344 kB / 298.1 MB, free: 14.66 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.048e-05/0.1098, allocations: 4.75 kB / 298.1 MB, free: 14.66 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.1098, allocations: 0 / 298.1 MB, free: 14.66 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.1098, allocations: 2.828 kB / 298.1 MB, free: 14.66 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001438/0.1099, allocations: 162.1 kB / 298.3 MB, free: 14.57 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.791e-05/0.1099, allocations: 34.47 kB / 298.3 MB, free: 14.55 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.158e-05/0.11, allocations: 17.05 kB / 298.3 MB, free: 14.54 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.76e-05/0.11, allocations: 19.92 kB / 298.4 MB, free: 14.53 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.083e-05/0.1101, allocations: 19.84 kB / 298.4 MB, free: 14.53 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.663e-05/0.1101, allocations: 6 kB / 298.4 MB, free: 14.53 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001163/0.1102, allocations: 132.5 kB / 298.5 MB, free: 14.49 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1102, allocations: 0 / 298.5 MB, free: 14.49 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002408/0.1104, allocations: 82.81 kB / 298.6 MB, free: 14.47 MB / 266.7 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.001041/0.1115, allocations: 0.5494 MB / 299.1 MB, free: 14.33 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001886/0.1117, allocations: 112.8 kB / 299.3 MB, free: 14.3 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 7.474e-06/0.1117, allocations: 6.156 kB / 299.3 MB, free: 14.3 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.843e-05/0.1117, allocations: 57.89 kB / 299.3 MB, free: 14.29 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002286/0.112, allocations: 86.88 kB / 299.4 MB, free: 14.26 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006673/0.1126, allocations: 480.3 kB / 299.9 MB, free: 13.96 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.169e-05/0.1127, allocations: 103.1 kB / 300 MB, free: 13.88 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.811e-05/0.1128, allocations: 47 kB / 300 MB, free: 13.86 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001263/0.1129, allocations: 108.4 kB / 300.1 MB, free: 13.81 MB / 266.7 MB Notification: Performance of SimCode: time 6.91e-07/0.1129, allocations: 0 / 300.1 MB, free: 13.81 MB / 266.7 MB Notification: Performance of Templates: time 0.006912/0.1198, allocations: 5.033 MB / 305.2 MB, free: 11.73 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.makefile [Timeout 660] (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 & ./IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing -abortSlowSimulation -alarm=240 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.6642119651660323]