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/Complex 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) 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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing") translateModel(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001509/0.001509, allocations: 183.2 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05697/0.05697, allocations: 10.75 MB / 27.48 MB, free: 1.875 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.353/1.353, allocations: 205.1 MB / 235.7 MB, free: 11.75 MB / 202.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009211/0.000921, allocations: 98.25 kB / 285.5 MB, free: 12.87 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 0.001081/0.001081, allocations: 59.92 kB / 345.3 MB, free: 0.9766 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2203/0.2214, allocations: 49 MB / 394.3 MB, free: 35.58 MB / 298.8 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing): time 0.002967/0.2244, allocations: 2.203 MB / 396.5 MB, free: 33.36 MB / 298.8 MB Notification: Performance of NFInst.instExpressions: time 0.001484/0.2259, allocations: 1.23 MB / 397.7 MB, free: 32.12 MB / 298.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001064/0.226, allocations: 7.938 kB / 397.7 MB, free: 32.12 MB / 298.8 MB Notification: Performance of NFTyping.typeComponents: time 0.0006416/0.2267, allocations: 255.4 kB / 398 MB, free: 31.87 MB / 298.8 MB Notification: Performance of NFTyping.typeBindings: time 0.0002931/0.227, allocations: 175.4 kB / 398.2 MB, free: 31.7 MB / 298.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006022/0.2276, allocations: 299.4 kB / 398.5 MB, free: 31.41 MB / 298.8 MB Notification: Performance of NFFlatten.flatten: time 0.0002613/0.2279, allocations: 371 kB / 398.8 MB, free: 31.04 MB / 298.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000126/0.228, allocations: 65.08 kB / 398.9 MB, free: 30.98 MB / 298.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000164/0.2282, allocations: 147.3 kB / 399 MB, free: 30.84 MB / 298.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001347/0.2283, allocations: 147.3 kB / 399.2 MB, free: 30.69 MB / 298.8 MB Notification: Performance of NFPackage.collectConstants: time 3.179e-05/0.2283, allocations: 8 kB / 399.2 MB, free: 30.68 MB / 298.8 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001596/0.2285, allocations: 107.9 kB / 399.3 MB, free: 30.58 MB / 298.8 MB Notification: Performance of NFScalarize.scalarize: time 7.558e-05/0.2286, allocations: 75.73 kB / 399.4 MB, free: 30.5 MB / 298.8 MB Notification: Performance of NFVerifyModel.verify: time 9.173e-05/0.2287, allocations: 115.2 kB / 399.5 MB, free: 30.39 MB / 298.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0003147/0.229, allocations: 392.8 kB / 399.9 MB, free: 30.01 MB / 298.8 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.229, allocations: 0 / 399.9 MB, free: 30.01 MB / 298.8 MB Notification: Performance of FrontEnd: time 6.71e-07/0.229, allocations: 0 / 399.9 MB, free: 30.01 MB / 298.8 MB Notification: Performance of Transformations before backend: time 5.18e-06/0.229, allocations: 0 / 399.9 MB, free: 30.01 MB / 298.8 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.0008706/0.2299, allocations: 0.6806 MB / 400.5 MB, free: 29.27 MB / 298.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.558e-05/0.23, allocations: 12.03 kB / 400.5 MB, free: 29.25 MB / 298.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.325e-05/0.23, allocations: 40.55 kB / 400.6 MB, free: 29.21 MB / 298.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003389/0.2304, allocations: 327.9 kB / 400.9 MB, free: 28.86 MB / 298.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.466e-05/0.2304, allocations: 12.38 kB / 400.9 MB, free: 28.84 MB / 298.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.873e-05/0.2304, allocations: 19.92 kB / 400.9 MB, free: 28.82 MB / 298.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003178/0.2308, allocations: 196 kB / 401.1 MB, free: 28.62 MB / 298.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.156e-05/0.2308, allocations: 0 / 401.1 MB, free: 28.62 MB / 298.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.969e-05/0.2308, allocations: 7.938 kB / 401.1 MB, free: 28.61 MB / 298.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.2308, allocations: 8 kB / 401.1 MB, free: 28.6 MB / 298.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002079/0.231, allocations: 99.92 kB / 401.2 MB, free: 28.5 MB / 298.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006461/0.2317, allocations: 0.5235 MB / 401.8 MB, free: 27.93 MB / 298.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000398/0.2321, allocations: 166.8 kB / 401.9 MB, free: 27.76 MB / 298.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001313/0.2322, allocations: 74.89 kB / 402 MB, free: 27.68 MB / 298.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.727e-05/0.2323, allocations: 8 kB / 402 MB, free: 27.68 MB / 298.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002644/0.2325, allocations: 171.4 kB / 402.2 MB, free: 27.49 MB / 298.8 MB Notification: Performance of pre-optimization done (n=21): time 1.422e-06/0.2326, allocations: 0 / 402.2 MB, free: 27.49 MB / 298.8 MB Notification: Performance of matching and sorting (n=21): time 0.0005782/0.2331, allocations: 314.1 kB / 402.5 MB, free: 27.18 MB / 298.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.5e-05/0.2332, allocations: 144.5 kB / 402.6 MB, free: 27.01 MB / 298.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002827/0.2335, allocations: 385.5 kB / 403 MB, free: 26.62 MB / 298.8 MB Notification: Performance of collectPreVariables (initialization): time 1.93e-05/0.2335, allocations: 33.7 kB / 403 MB, free: 26.58 MB / 298.8 MB Notification: Performance of collectInitialEqns (initialization): time 8.063e-05/0.2336, allocations: 164.5 kB / 403.2 MB, free: 26.41 MB / 298.8 MB Notification: Performance of collectInitialBindings (initialization): time 3.539e-05/0.2336, allocations: 55.33 kB / 403.2 MB, free: 26.36 MB / 298.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.964e-05/0.2337, allocations: 49.7 kB / 403.3 MB, free: 26.3 MB / 298.8 MB Notification: Performance of setup shared object (initialization): time 6.563e-05/0.2338, allocations: 346.8 kB / 403.6 MB, free: 25.96 MB / 298.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001201/0.2339, allocations: 60.17 kB / 403.7 MB, free: 25.9 MB / 298.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001602/0.2341, allocations: 180 kB / 403.9 MB, free: 25.67 MB / 298.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003319/0.2344, allocations: 254.9 kB / 404.1 MB, free: 25.38 MB / 298.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.2344, allocations: 0 / 404.1 MB, free: 25.38 MB / 298.8 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003932/0.2348, allocations: 277.2 kB / 404.4 MB, free: 25.1 MB / 298.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.583e-05/0.2349, allocations: 8 kB / 404.4 MB, free: 25.09 MB / 298.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.982e-06/0.2349, allocations: 0 / 404.4 MB, free: 25.09 MB / 298.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.802e-05/0.2349, allocations: 8 kB / 404.4 MB, free: 25.09 MB / 298.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001224/0.235, allocations: 35.92 kB / 404.4 MB, free: 25.05 MB / 298.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.536e-06/0.235, allocations: 4 kB / 404.4 MB, free: 25.05 MB / 298.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001334/0.2352, allocations: 31.77 kB / 404.5 MB, free: 25.02 MB / 298.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.587e-05/0.2352, allocations: 15.94 kB / 404.5 MB, free: 25 MB / 298.8 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.0001825/0.2354, allocations: 185.4 kB / 404.7 MB, free: 24.81 MB / 298.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.908e-05/0.2354, allocations: 35.56 kB / 404.7 MB, free: 24.78 MB / 298.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.82e-05/0.2355, allocations: 35.28 kB / 404.7 MB, free: 24.73 MB / 298.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.2355, allocations: 4 kB / 404.7 MB, free: 24.73 MB / 298.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.2355, allocations: 0 / 404.7 MB, free: 24.73 MB / 298.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.2355, allocations: 7.984 kB / 404.8 MB, free: 24.72 MB / 298.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001939/0.2357, allocations: 321.2 kB / 405.1 MB, free: 24.36 MB / 298.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.2357, allocations: 0 / 405.1 MB, free: 24.36 MB / 298.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.057e-05/0.2358, allocations: 15.94 kB / 405.1 MB, free: 24.34 MB / 298.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.013e-06/0.2358, allocations: 0 / 405.1 MB, free: 24.34 MB / 298.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.701e-05/0.2358, allocations: 7.984 kB / 405.1 MB, free: 24.34 MB / 298.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.2358, allocations: 0 / 405.1 MB, free: 24.34 MB / 298.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.2358, allocations: 0 / 405.1 MB, free: 24.34 MB / 298.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006895/0.2365, allocations: 0.9673 MB / 406.1 MB, free: 23.31 MB / 298.8 MB Notification: Performance of postOpt removeConstants (simulation): time 5.232e-05/0.2366, allocations: 108.7 kB / 406.2 MB, free: 23.18 MB / 298.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.14e-05/0.2367, allocations: 8 kB / 406.2 MB, free: 23.18 MB / 298.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001279/0.2368, allocations: 15.98 kB / 406.2 MB, free: 23.16 MB / 298.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.726e-05/0.2368, allocations: 19.97 kB / 406.2 MB, free: 23.14 MB / 298.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.161e-05/0.2369, allocations: 12 kB / 406.2 MB, free: 23.13 MB / 298.8 MB Notification: Performance of sorting global known variables: time 0.0002018/0.2371, allocations: 279.2 kB / 406.5 MB, free: 22.86 MB / 298.8 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2371, allocations: 0 / 406.5 MB, free: 22.86 MB / 298.8 MB Notification: Performance of remove unused functions: time 0.0004118/0.2375, allocations: 83.83 kB / 406.6 MB, free: 22.78 MB / 298.8 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.0008672/0.2384, allocations: 455.7 kB / 407 MB, free: 22.36 MB / 298.8 MB Notification: Performance of simCode: created initialization part: time 0.0003745/0.2388, allocations: 187.7 kB / 407.2 MB, free: 22.17 MB / 298.8 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.2388, allocations: 0 / 407.2 MB, free: 22.17 MB / 298.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0001637/0.239, allocations: 91.89 kB / 407.3 MB, free: 22.08 MB / 298.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004944/0.2395, allocations: 73.53 kB / 407.4 MB, free: 22.01 MB / 298.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009463/0.2404, allocations: 0.7292 MB / 408.1 MB, free: 21.25 MB / 298.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002097/0.2406, allocations: 0.7755 MB / 408.9 MB, free: 20.45 MB / 298.8 MB Notification: Performance of simCode: alias equations: time 0.0001317/0.2408, allocations: 54.92 kB / 408.9 MB, free: 20.39 MB / 298.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.186e-05/0.2408, allocations: 31.38 kB / 409 MB, free: 20.36 MB / 298.8 MB Notification: Performance of SimCode: time 2.2e-07/0.2409, allocations: 0 / 409 MB, free: 20.36 MB / 298.8 MB Notification: Performance of Templates: time 0.007148/0.248, allocations: 4.353 MB / 413.3 MB, free: 16 MB / 298.8 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.makefile (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)