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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00136/0.00136, allocations: 118.3 kB / 17.13 MB, free: 5.918 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00132/0.00132, allocations: 194.2 kB / 20.08 MB, free: 2.988 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.43/1.43, allocations: 225.6 MB / 248.5 MB, free: 3.613 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.06112/0.06112, allocations: 11.34 MB / 314.7 MB, free: 0.8008 MB / 238.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-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: 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 0.002717/0.002717, allocations: 63.91 kB / 438.5 MB, free: 7.742 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2814/0.2841, allocations: 54.84 MB / 493.3 MB, free: 24.07 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing): time 0.003505/0.2876, allocations: 2.165 MB / 495.5 MB, free: 22.57 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002064/0.2897, allocations: 1.343 MB / 496.8 MB, free: 21.65 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001642/0.2899, allocations: 2.75 kB / 496.8 MB, free: 21.65 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007942/0.2907, allocations: 269.9 kB / 497.1 MB, free: 21.57 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004388/0.2911, allocations: 201.9 kB / 497.3 MB, free: 21.48 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009001/0.292, allocations: 355.3 kB / 497.6 MB, free: 21.3 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004358/0.2924, allocations: 372.4 kB / 498 MB, free: 21.13 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000145/0.2926, allocations: 48.91 kB / 498.1 MB, free: 21.1 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002169/0.2928, allocations: 159.5 kB / 498.2 MB, free: 21.03 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001906/0.293, allocations: 162.8 kB / 498.4 MB, free: 20.96 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.35e-05/0.293, allocations: 20.97 kB / 498.4 MB, free: 20.96 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002865/0.2933, allocations: 133.4 kB / 498.5 MB, free: 20.92 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.352e-05/0.2934, allocations: 74.97 kB / 498.6 MB, free: 20.89 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001253/0.2935, allocations: 139.3 kB / 498.7 MB, free: 20.79 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005182/0.2941, allocations: 398.5 kB / 499.1 MB, free: 20.54 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.877e-06/0.2941, allocations: 1.531 kB / 499.1 MB, free: 20.54 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.055e-06/0.2941, allocations: 4 kB / 499.1 MB, free: 20.53 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.033e-05/0.2941, allocations: 0 / 499.1 MB, free: 20.53 MB / 366.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.001051/0.2951, allocations: 0.6925 MB / 499.8 MB, free: 19.88 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/0.2952, allocations: 13.33 kB / 499.8 MB, free: 19.88 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.73e-05/0.2953, allocations: 41.62 kB / 499.9 MB, free: 19.85 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003582/0.2956, allocations: 323.4 kB / 0.4885 GB, free: 19.55 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.287e-05/0.2956, allocations: 18.55 kB / 0.4885 GB, free: 19.54 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.33e-05/0.2957, allocations: 17.72 kB / 0.4885 GB, free: 19.53 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003507/0.296, allocations: 195.3 kB / 0.4887 GB, free: 19.39 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/0.296, allocations: 0 / 0.4887 GB, free: 19.39 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.168e-05/0.2961, allocations: 6.375 kB / 0.4887 GB, free: 19.38 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.7e-06/0.2961, allocations: 7.906 kB / 0.4887 GB, free: 19.38 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002341/0.2963, allocations: 92.84 kB / 0.4888 GB, free: 19.34 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006754/0.297, allocations: 0.5269 MB / 0.4893 GB, free: 18.86 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004692/0.2974, allocations: 160.9 kB / 0.4895 GB, free: 18.77 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001403/0.2976, allocations: 67.48 kB / 0.4895 GB, free: 18.73 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.908e-05/0.2976, allocations: 5.766 kB / 0.4895 GB, free: 18.73 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002895/0.2979, allocations: 174.8 kB / 0.4897 GB, free: 18.59 MB / 366.1 MB Notification: Performance of pre-optimization done (n=21): time 1.443e-06/0.2979, allocations: 0 / 0.4897 GB, free: 18.59 MB / 366.1 MB Notification: Performance of matching and sorting (n=21): time 0.000695/0.2986, allocations: 325.4 kB / 0.49 GB, free: 18.43 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.156e-05/0.2987, allocations: 137.2 kB / 0.4901 GB, free: 18.27 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003644/0.299, allocations: 382.4 kB / 0.4905 GB, free: 18.04 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.433e-05/0.299, allocations: 38.14 kB / 0.4905 GB, free: 18 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.717e-05/0.2991, allocations: 171.2 kB / 0.4907 GB, free: 17.84 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.164e-05/0.2992, allocations: 60.92 kB / 0.4908 GB, free: 17.79 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.284e-05/0.2992, allocations: 50.17 kB / 0.4908 GB, free: 17.75 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.297e-05/0.2993, allocations: 347.8 kB / 0.4911 GB, free: 17.41 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001347/0.2995, allocations: 53.03 kB / 0.4912 GB, free: 17.39 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001854/0.2996, allocations: 178.9 kB / 0.4914 GB, free: 17.2 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003706/0.3, allocations: 253.7 kB / 0.4916 GB, free: 17 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.3, allocations: 1.156 kB / 0.4916 GB, free: 17 MB / 366.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004622/0.3005, allocations: 272.3 kB / 0.4919 GB, free: 16.86 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.73e-05/0.3005, allocations: 6.625 kB / 0.4919 GB, free: 16.86 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.584e-06/0.3005, allocations: 2.688 kB / 0.4919 GB, free: 16.86 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.104e-05/0.3005, allocations: 4.719 kB / 0.4919 GB, free: 16.86 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001424/0.3007, allocations: 41.27 kB / 0.4919 GB, free: 16.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.217e-05/0.3007, allocations: 16.59 kB / 0.4919 GB, free: 16.83 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001557/0.3008, allocations: 27.56 kB / 0.492 GB, free: 16.81 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.954e-05/0.3008, allocations: 13.92 kB / 0.492 GB, free: 16.81 MB / 366.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.0002061/0.3011, allocations: 185.7 kB / 0.4921 GB, free: 16.65 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.9e-05/0.3011, allocations: 38.89 kB / 0.4922 GB, free: 16.62 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.629e-05/0.3012, allocations: 33.97 kB / 0.4922 GB, free: 16.6 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.08e-06/0.3012, allocations: 7.359 kB / 0.4922 GB, free: 16.6 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.612e-05/0.3012, allocations: 0 / 0.4922 GB, free: 16.6 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.3012, allocations: 0 / 0.4922 GB, free: 16.6 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002314/0.3014, allocations: 310.2 kB / 0.4925 GB, free: 16.3 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.3014, allocations: 5.594 kB / 0.4925 GB, free: 16.3 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.652e-05/0.3015, allocations: 12.91 kB / 0.4925 GB, free: 16.29 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.517e-06/0.3015, allocations: 9.203 kB / 0.4925 GB, free: 16.29 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.828e-05/0.3015, allocations: 6.531 kB / 0.4926 GB, free: 16.28 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.405e-06/0.3015, allocations: 1.312 kB / 0.4926 GB, free: 16.28 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.3015, allocations: 0 / 0.4926 GB, free: 16.28 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004728/0.302, allocations: 289.3 kB / 0.4928 GB, free: 16.11 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.349e-05/0.302, allocations: 113.6 kB / 0.4929 GB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.706e-05/0.3021, allocations: 7.438 kB / 0.4929 GB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001436/0.3022, allocations: 24.41 kB / 0.493 GB, free: 15.97 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.102e-05/0.3023, allocations: 15.58 kB / 0.493 GB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.549e-05/0.3023, allocations: 14.77 kB / 0.493 GB, free: 15.96 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000252/0.3026, allocations: 271.3 kB / 0.4933 GB, free: 15.79 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3026, allocations: 0 / 0.4933 GB, free: 15.79 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003811/0.303, allocations: 75.2 kB / 0.4933 GB, free: 15.78 MB / 366.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.001508/0.3045, allocations: 459.4 kB / 0.4938 GB, free: 15.56 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004394/0.3049, allocations: 178.2 kB / 0.4939 GB, free: 15.49 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.3049, allocations: 0 / 0.4939 GB, free: 15.49 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001929/0.3051, allocations: 81.2 kB / 0.494 GB, free: 15.45 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004391/0.3055, allocations: 83.45 kB / 0.4941 GB, free: 15.41 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008177/0.3064, allocations: 0.5482 MB / 0.4946 GB, free: 15.02 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001873/0.3066, allocations: 0.7803 MB / 0.4954 GB, free: 14.28 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.744e-05/0.3066, allocations: 32.41 kB / 0.4954 GB, free: 14.27 MB / 366.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3066, allocations: 0 / 0.4954 GB, free: 14.27 MB / 366.1 MB Notification: Performance of Templates: time 0.008367/0.315, allocations: 4.697 MB / 0.5 GB, free: 11.83 MB / 366.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.682694488903508] Failed to read output from testmodel.py, exit status != 0: 0.32511465810239315 0.331987499 0.035815255000000004 Calling exit ...