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.001358/0.001358, allocations: 102.1 kB / 19.7 MB, free: 2.25 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.001573/0.001573, allocations: 219.2 kB / 23.01 MB, free: 5.082 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.437/1.437, allocations: 230.6 MB / 256.8 MB, free: 7.977 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.06381/0.06381, allocations: 11.34 MB / 324.5 MB, free: 8.215 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: 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: 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.002008/0.002008, allocations: 63.91 kB / 452.3 MB, free: 9.984 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1208/0.1228, allocations: 56.06 MB / 0.4964 GB, free: 1.816 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing): time 0.003931/0.1268, allocations: 2.224 MB / 0.4986 GB, free: 15.58 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002738/0.1295, allocations: 1.528 MB / 0.5001 GB, free: 14.05 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001743/0.1297, allocations: 7.938 kB / 0.5001 GB, free: 14.04 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008882/0.1306, allocations: 278.1 kB / 0.5004 GB, free: 13.77 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006364/0.1312, allocations: 255 kB / 0.5006 GB, free: 13.52 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009909/0.1322, allocations: 310.8 kB / 0.5009 GB, free: 13.22 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005387/0.1327, allocations: 398.8 kB / 0.5013 GB, free: 12.83 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001789/0.1329, allocations: 49.3 kB / 0.5013 GB, free: 12.78 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003474/0.1333, allocations: 175.3 kB / 0.5015 GB, free: 12.61 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002427/0.1335, allocations: 163.2 kB / 0.5017 GB, free: 12.45 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.277e-05/0.1336, allocations: 24 kB / 0.5017 GB, free: 12.42 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003177/0.1339, allocations: 155.8 kB / 0.5018 GB, free: 12.27 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001176/0.134, allocations: 83.73 kB / 0.5019 GB, free: 12.19 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001579/0.1341, allocations: 139.1 kB / 0.5021 GB, free: 12.05 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005731/0.1347, allocations: 418.3 kB / 0.5025 GB, free: 11.64 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.053e-06/0.1347, allocations: 4 kB / 0.5025 GB, free: 11.64 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1347, allocations: 0 / 0.5025 GB, free: 11.64 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.416e-06/0.1347, allocations: 0 / 0.5025 GB, free: 11.64 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.001219/0.136, allocations: 0.6438 MB / 0.5031 GB, free: 10.95 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.947e-05/0.136, allocations: 12.03 kB / 0.5031 GB, free: 10.94 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002062/0.1362, allocations: 48.69 kB / 0.5031 GB, free: 10.89 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004542/0.1367, allocations: 274.4 kB / 0.5034 GB, free: 10.6 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.604e-05/0.1367, allocations: 8.375 kB / 0.5034 GB, free: 10.59 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.111e-05/0.1367, allocations: 23.92 kB / 0.5034 GB, free: 10.57 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003964/0.1371, allocations: 192.7 kB / 0.5036 GB, free: 10.37 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.055e-05/0.1371, allocations: 0 / 0.5036 GB, free: 10.37 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.284e-05/0.1371, allocations: 4 kB / 0.5036 GB, free: 10.36 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.1371, allocations: 4 kB / 0.5036 GB, free: 10.36 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002453/0.1374, allocations: 95.88 kB / 0.5037 GB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008725/0.1383, allocations: 0.4993 MB / 0.5042 GB, free: 9.723 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004843/0.1388, allocations: 158.6 kB / 0.5044 GB, free: 9.559 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001648/0.1389, allocations: 68.91 kB / 0.5044 GB, free: 9.488 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.778e-05/0.1389, allocations: 0 / 0.5044 GB, free: 9.488 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003635/0.1393, allocations: 181 kB / 0.5046 GB, free: 9.293 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 3.676e-06/0.1393, allocations: 3.984 kB / 0.5046 GB, free: 9.289 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.0007587/0.1401, allocations: 323.3 kB / 0.5049 GB, free: 8.969 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001048/0.1402, allocations: 136.5 kB / 0.505 GB, free: 8.805 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004943/0.1407, allocations: 405.6 kB / 0.5054 GB, free: 8.395 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.324e-05/0.1407, allocations: 37.7 kB / 0.5055 GB, free: 8.352 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001526/0.1409, allocations: 168.5 kB / 0.5056 GB, free: 8.184 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.127e-05/0.1409, allocations: 55.58 kB / 0.5057 GB, free: 8.129 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.844e-05/0.141, allocations: 57.69 kB / 0.5057 GB, free: 8.066 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000188/0.1412, allocations: 346.8 kB / 0.5061 GB, free: 7.719 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001444/0.1413, allocations: 55.97 kB / 0.5061 GB, free: 7.664 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002655/0.1416, allocations: 183.3 kB / 0.5063 GB, free: 7.43 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004428/0.142, allocations: 250.9 kB / 0.5065 GB, free: 7.145 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.142, allocations: 4 kB / 0.5065 GB, free: 7.141 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005308/0.1426, allocations: 273.4 kB / 0.5068 GB, free: 6.867 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/0.1426, allocations: 8 kB / 0.5068 GB, free: 6.859 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.238e-06/0.1426, allocations: 7.938 kB / 0.5068 GB, free: 6.852 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.934e-05/0.1426, allocations: 4 kB / 0.5068 GB, free: 6.848 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001502/0.1428, allocations: 43.84 kB / 0.5069 GB, free: 6.805 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.368e-06/0.1428, allocations: 4 kB / 0.5069 GB, free: 6.801 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00016/0.1429, allocations: 31.83 kB / 0.5069 GB, free: 6.77 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.086e-05/0.143, allocations: 15.98 kB / 0.5069 GB, free: 6.754 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.0002677/0.1432, allocations: 185.7 kB / 0.5071 GB, free: 6.562 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.667e-05/0.1433, allocations: 39.7 kB / 0.5071 GB, free: 6.523 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005729/0.1439, allocations: 268 kB / 0.5074 GB, free: 6.262 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.612e-06/0.1439, allocations: 11.81 kB / 0.5074 GB, free: 6.25 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.1439, allocations: 4 kB / 0.5074 GB, free: 6.246 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.1439, allocations: 0 / 0.5074 GB, free: 6.246 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000354/0.1442, allocations: 292.5 kB / 0.5077 GB, free: 5.918 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.1442, allocations: 0 / 0.5077 GB, free: 5.918 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.464e-05/0.1443, allocations: 12 kB / 0.5077 GB, free: 5.906 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.13e-06/0.1443, allocations: 3.984 kB / 0.5077 GB, free: 5.902 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.165e-05/0.1443, allocations: 11.94 kB / 0.5077 GB, free: 5.891 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.704e-06/0.1443, allocations: 0 / 0.5077 GB, free: 5.891 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.1443, allocations: 0 / 0.5077 GB, free: 5.891 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005301/0.1449, allocations: 288.8 kB / 0.508 GB, free: 5.59 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.374e-05/0.1449, allocations: 43.62 kB / 0.508 GB, free: 5.547 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.404e-05/0.145, allocations: 8 kB / 0.508 GB, free: 5.539 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001399/0.1451, allocations: 15.97 kB / 0.508 GB, free: 5.523 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.208e-05/0.1452, allocations: 15.98 kB / 0.5081 GB, free: 5.508 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.918e-05/0.1452, allocations: 15.92 kB / 0.5081 GB, free: 5.492 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003611/0.1456, allocations: 295.2 kB / 0.5083 GB, free: 5.207 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1456, allocations: 4 kB / 0.5084 GB, free: 5.203 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003695/0.1459, allocations: 71.92 kB / 0.5084 GB, free: 5.133 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.00167/0.1476, allocations: 454.6 kB / 0.5089 GB, free: 4.836 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005031/0.1481, allocations: 186.4 kB / 0.509 GB, free: 4.656 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.1481, allocations: 4 kB / 0.509 GB, free: 4.652 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001987/0.1483, allocations: 75.89 kB / 0.5091 GB, free: 4.578 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004698/0.1488, allocations: 85.05 kB / 0.5092 GB, free: 4.504 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001135/0.1499, allocations: 0.5541 MB / 0.5097 GB, free: 3.914 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004977/0.1504, allocations: 0.7797 MB / 0.5105 GB, free: 3.105 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.468e-05/0.1505, allocations: 31.42 kB / 0.5105 GB, free: 3.074 MB / 382.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1505, allocations: 0 / 0.5105 GB, free: 3.074 MB / 382.1 MB Notification: Performance of Templates: time 0.224/0.3745, allocations: 4.828 MB / 0.5152 GB, free: 22.36 MB / 382.1 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=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 7.895466712070629] Failed to read output from testmodel.py, exit status != 0: 0.3829155219718814 0.39428083099999994 0.25667995 Calling exit ...