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.001598/0.001598, allocations: 80.38 kB / 19.18 MB, free: 2.516 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.001601/0.001601, allocations: 159.9 kB / 22.46 MB, free: 5.375 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.483/1.483, allocations: 177.1 MB / 202.8 MB, free: 9.168 MB / 190.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.06149/0.06149, allocations: 8.616 MB / 267.8 MB, free: 8.555 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: Performance of FrontEnd - loaded program: time 1.413e-06/1.413e-06, allocations: 0 / 395.6 MB, free: 6.691 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.604e-05/2.745e-05, allocations: 6.219 kB / 395.6 MB, free: 6.684 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing): time 0.003794/0.003821, allocations: 2.123 MB / 397.7 MB, free: 4.543 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002719/0.006541, allocations: 1.426 MB / 399.1 MB, free: 3.109 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001291/0.00667, allocations: 7.938 kB / 399.1 MB, free: 3.102 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009039/0.007573, allocations: 279 kB / 399.4 MB, free: 2.828 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005984/0.008172, allocations: 261.9 kB / 399.7 MB, free: 2.574 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007532/0.008925, allocations: 315 kB / 400 MB, free: 2.266 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000494/0.009419, allocations: 398.8 kB / 400.4 MB, free: 1.875 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001324/0.009551, allocations: 45.31 kB / 400.4 MB, free: 1.836 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003863/0.009938, allocations: 231.3 kB / 400.6 MB, free: 1.609 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002166/0.01015, allocations: 139.6 kB / 400.8 MB, free: 1.473 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.088e-05/0.01021, allocations: 24 kB / 400.8 MB, free: 1.449 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002684/0.01047, allocations: 143.7 kB / 400.9 MB, free: 1.309 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001238/0.0106, allocations: 87.66 kB / 401 MB, free: 1.223 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001214/0.01072, allocations: 79.77 kB / 401.1 MB, free: 1.145 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006173/0.01134, allocations: 438.6 kB / 401.5 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.01134, allocations: 0 / 401.5 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.01134, allocations: 0 / 401.5 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.51e-06/0.01135, allocations: 0 / 401.5 MB, free: 0.7148 MB / 318.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.001211/0.01256, allocations: 0.636 MB / 402.1 MB, free: 36 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.707e-05/0.01259, allocations: 12.03 kB / 402.2 MB, free: 24 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002294/0.01282, allocations: 47.31 kB / 402.2 MB, free: 15.98 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004534/0.01328, allocations: 265.7 kB / 402.5 MB, free: 15.69 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.296e-05/0.0133, allocations: 16.36 kB / 402.5 MB, free: 15.67 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.019e-05/0.01333, allocations: 12.38 kB / 402.5 MB, free: 15.66 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004142/0.01374, allocations: 218.7 kB / 402.7 MB, free: 15.43 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.248e-05/0.01376, allocations: 3.938 kB / 402.7 MB, free: 15.43 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.301e-05/0.01378, allocations: 7.984 kB / 402.7 MB, free: 15.42 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.603e-06/0.01379, allocations: 4 kB / 402.7 MB, free: 15.41 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00031/0.0141, allocations: 103.9 kB / 402.8 MB, free: 15.31 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007973/0.01489, allocations: 440 kB / 403.3 MB, free: 14.85 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000512/0.01541, allocations: 158.8 kB / 403.4 MB, free: 14.69 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001784/0.01558, allocations: 68.83 kB / 403.5 MB, free: 14.62 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.663e-05/0.0156, allocations: 0 / 403.5 MB, free: 14.62 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004049/0.01601, allocations: 228.4 kB / 403.7 MB, free: 14.36 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.572e-06/0.01601, allocations: 0 / 403.7 MB, free: 14.36 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.0007948/0.0168, allocations: 340.4 kB / 404 MB, free: 14.03 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.001e-05/0.01688, allocations: 89.09 kB / 404.1 MB, free: 13.92 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006304/0.01751, allocations: 393.6 kB / 404.5 MB, free: 13.53 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.012e-05/0.01755, allocations: 37.69 kB / 404.5 MB, free: 13.48 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001468/0.0177, allocations: 168.5 kB / 404.7 MB, free: 13.32 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.493e-05/0.01777, allocations: 55.53 kB / 404.8 MB, free: 13.26 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001241/0.0179, allocations: 53.69 kB / 404.8 MB, free: 13.2 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002403/0.01814, allocations: 354.7 kB / 405.2 MB, free: 12.85 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002657/0.0184, allocations: 59.91 kB / 405.2 MB, free: 12.79 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004823/0.01889, allocations: 251.5 kB / 405.5 MB, free: 12.48 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005381/0.01942, allocations: 258.9 kB / 405.7 MB, free: 12.18 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.01943, allocations: 0 / 405.7 MB, free: 12.18 MB / 334.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005672/0.01999, allocations: 277.4 kB / 406 MB, free: 11.91 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.255e-05/0.02002, allocations: 8 kB / 406 MB, free: 11.9 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.02002, allocations: 0 / 406 MB, free: 11.9 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.066e-05/0.02004, allocations: 8 kB / 406 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001654/0.02021, allocations: 39.86 kB / 406 MB, free: 11.85 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.286e-05/0.02022, allocations: 4 kB / 406 MB, free: 11.85 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001759/0.0204, allocations: 31.83 kB / 406.1 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.655e-05/0.02043, allocations: 11.94 kB / 406.1 MB, free: 11.8 MB / 334.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.0003332/0.02076, allocations: 202 kB / 406.3 MB, free: 11.61 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.412e-05/0.02082, allocations: 35.77 kB / 406.3 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006391/0.02146, allocations: 280.8 kB / 406.6 MB, free: 11.29 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.243e-06/0.02147, allocations: 7.938 kB / 406.6 MB, free: 11.28 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.02147, allocations: 7.938 kB / 406.6 MB, free: 11.27 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.02148, allocations: 3.938 kB / 406.6 MB, free: 11.27 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000328/0.02181, allocations: 233.1 kB / 406.8 MB, free: 11.01 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.02181, allocations: 0 / 406.8 MB, free: 11.01 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.708e-05/0.02189, allocations: 15.98 kB / 406.9 MB, free: 10.99 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.594e-06/0.0219, allocations: 4 kB / 406.9 MB, free: 10.99 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.969e-05/0.02192, allocations: 4 kB / 406.9 MB, free: 10.98 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.178e-06/0.02193, allocations: 4 kB / 406.9 MB, free: 10.98 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.02193, allocations: 3.938 kB / 406.9 MB, free: 10.98 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000616/0.02254, allocations: 304.7 kB / 407.2 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.382e-05/0.02262, allocations: 39.58 kB / 407.2 MB, free: 10.62 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.545e-05/0.02267, allocations: 11.98 kB / 407.2 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001566/0.02283, allocations: 15.98 kB / 407.2 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.788e-05/0.02291, allocations: 15.97 kB / 407.3 MB, free: 10.58 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.147e-05/0.02294, allocations: 11.98 kB / 407.3 MB, free: 10.57 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003501/0.02329, allocations: 279.2 kB / 407.5 MB, free: 10.3 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.02329, allocations: 0 / 407.5 MB, free: 10.3 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000417/0.02371, allocations: 83.86 kB / 407.6 MB, free: 10.21 MB / 334.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 (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.001823/0.02553, allocations: 492.9 kB / 408.1 MB, free: 9.91 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00051/0.02604, allocations: 186.7 kB / 408.3 MB, free: 9.73 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.919e-06/0.02604, allocations: 4 kB / 408.3 MB, free: 9.727 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000223/0.02627, allocations: 84.58 kB / 408.4 MB, free: 9.645 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004891/0.02676, allocations: 80.34 kB / 408.4 MB, free: 9.57 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001072/0.02783, allocations: 0.5298 MB / 409 MB, free: 9.02 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002058/0.02803, allocations: 173.1 kB / 409.1 MB, free: 8.824 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001423/0.02818, allocations: 47.17 kB / 409.2 MB, free: 8.777 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.875e-05/0.02827, allocations: 28.5 kB / 409.2 MB, free: 8.75 MB / 334.1 MB Notification: Performance of SimCode: time 8.81e-07/0.02827, allocations: 4 kB / 409.2 MB, free: 8.746 MB / 334.1 MB Notification: Performance of Templates: time 0.01117/0.03944, allocations: 4.606 MB / 413.8 MB, free: 4.203 MB / 334.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: 4.512267109006643] Failed to read output from testmodel.py, exit status != 0: 0.04835551232099533 0.06475370400000001 0.050233851 Calling exit ...