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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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/IndustrialControlSystems 1.1.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/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 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=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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001215/0.001215, allocations: 113.2 kB / 16.37 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001394/0.001394, allocations: 197.6 kB / 17.31 MB, free: 5.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.298/1.298, allocations: 205.1 MB / 223.2 MB, free: 12.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05486/0.05486, allocations: 10.73 MB / 281.3 MB, free: 1.32 MB / 222.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001406/0.001406, allocations: 71.91 kB / 342 MB, free: 4.461 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2/0.2014, allocations: 49 MB / 391 MB, free: 49.95 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing): time 0.002966/0.2044, allocations: 2.153 MB / 393.2 MB, free: 48.47 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001554/0.206, allocations: 1.245 MB / 394.4 MB, free: 47.62 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001083/0.2061, allocations: 2.656 kB / 394.4 MB, free: 47.62 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006602/0.2068, allocations: 273.4 kB / 394.7 MB, free: 47.54 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0003633/0.2071, allocations: 193.5 kB / 394.9 MB, free: 47.45 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006102/0.2078, allocations: 319.9 kB / 395.2 MB, free: 47.29 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003258/0.2081, allocations: 385.4 kB / 395.5 MB, free: 47.12 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001266/0.2082, allocations: 70.62 kB / 395.6 MB, free: 47.09 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001873/0.2084, allocations: 158.8 kB / 395.8 MB, free: 47.02 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001669/0.2086, allocations: 154.7 kB / 395.9 MB, free: 46.95 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.924e-05/0.2086, allocations: 20.62 kB / 395.9 MB, free: 46.95 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001999/0.2089, allocations: 132.7 kB / 396.1 MB, free: 46.91 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.857e-05/0.2089, allocations: 77 kB / 396.1 MB, free: 46.88 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001026/0.2091, allocations: 133.2 kB / 396.3 MB, free: 46.78 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003872/0.2094, allocations: 394.6 kB / 396.7 MB, free: 46.62 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.2095, allocations: 4.875 kB / 396.7 MB, free: 46.62 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.2095, allocations: 0 / 396.7 MB, free: 46.62 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.22e-06/0.2095, allocations: 0 / 396.7 MB, free: 46.62 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.0008345/0.2103, allocations: 0.6908 MB / 397.4 MB, free: 46.02 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.911e-05/0.2104, allocations: 14.08 kB / 397.4 MB, free: 46.02 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.864e-05/0.2104, allocations: 33.42 kB / 397.4 MB, free: 46 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003428/0.2108, allocations: 330.6 kB / 397.7 MB, free: 45.72 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.891e-05/0.2108, allocations: 11.55 kB / 397.7 MB, free: 45.72 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.767e-05/0.2108, allocations: 21.19 kB / 397.8 MB, free: 45.71 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003333/0.2112, allocations: 200 kB / 398 MB, free: 45.6 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.2112, allocations: 5.188 kB / 398 MB, free: 45.59 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.911e-05/0.2112, allocations: 5.875 kB / 398 MB, free: 45.59 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.582e-06/0.2112, allocations: 3.703 kB / 398 MB, free: 45.59 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002265/0.2115, allocations: 95.59 kB / 398.1 MB, free: 45.56 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006788/0.2121, allocations: 0.5256 MB / 398.6 MB, free: 45.18 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004334/0.2126, allocations: 165.2 kB / 398.7 MB, free: 45.11 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001468/0.2127, allocations: 78.78 kB / 398.8 MB, free: 45.07 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.537e-05/0.2128, allocations: 2.312 kB / 398.8 MB, free: 45.07 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002999/0.2131, allocations: 172 kB / 399 MB, free: 44.97 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.433e-06/0.2131, allocations: 0 / 399 MB, free: 44.97 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.0006561/0.2138, allocations: 321 kB / 399.3 MB, free: 44.84 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.934e-05/0.2138, allocations: 144.2 kB / 399.4 MB, free: 44.67 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003152/0.2141, allocations: 383.2 kB / 399.8 MB, free: 44.44 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.031e-05/0.2142, allocations: 33.67 kB / 399.9 MB, free: 44.41 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.204e-05/0.2142, allocations: 164.3 kB / 400 MB, free: 44.26 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.771e-05/0.2143, allocations: 47.86 kB / 400.1 MB, free: 44.22 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.635e-05/0.2144, allocations: 55.12 kB / 400.1 MB, free: 44.18 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.122e-05/0.2144, allocations: 350.8 kB / 400.5 MB, free: 43.84 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001279/0.2146, allocations: 53.36 kB / 400.5 MB, free: 43.81 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001734/0.2147, allocations: 178.1 kB / 400.7 MB, free: 43.62 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003471/0.2151, allocations: 249.3 kB / 400.9 MB, free: 43.43 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.2151, allocations: 1.375 kB / 400.9 MB, free: 43.43 MB / 318.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004294/0.2155, allocations: 268.1 kB / 401.2 MB, free: 43.29 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.46e-05/0.2156, allocations: 14.67 kB / 401.2 MB, free: 43.28 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.2156, allocations: 2.344 kB / 401.2 MB, free: 43.28 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.553e-05/0.2156, allocations: 4.781 kB / 401.2 MB, free: 43.28 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001325/0.2157, allocations: 37.61 kB / 401.2 MB, free: 43.27 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.148e-06/0.2158, allocations: 4.75 kB / 401.3 MB, free: 43.27 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001453/0.2159, allocations: 35.77 kB / 401.3 MB, free: 43.24 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.888e-05/0.2159, allocations: 10.19 kB / 401.3 MB, free: 43.24 MB / 318.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.000163/0.2161, allocations: 188.8 kB / 401.5 MB, free: 43.08 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.674e-05/0.2162, allocations: 35.66 kB / 401.5 MB, free: 43.06 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.181e-05/0.2162, allocations: 33.72 kB / 401.6 MB, free: 43.03 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.2162, allocations: 6.312 kB / 401.6 MB, free: 43.02 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.299e-06/0.2162, allocations: 0 / 401.6 MB, free: 43.02 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.2163, allocations: 0 / 401.6 MB, free: 43.02 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000205/0.2165, allocations: 322.6 kB / 401.9 MB, free: 42.71 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.2165, allocations: 3.938 kB / 401.9 MB, free: 42.71 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.428e-05/0.2166, allocations: 17.39 kB / 401.9 MB, free: 42.7 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.285e-06/0.2166, allocations: 1.25 kB / 401.9 MB, free: 42.7 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.879e-05/0.2166, allocations: 11.42 kB / 401.9 MB, free: 42.7 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.2166, allocations: 1.125 kB / 401.9 MB, free: 42.7 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.2166, allocations: 0 / 401.9 MB, free: 42.7 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004361/0.217, allocations: 285.9 kB / 402.2 MB, free: 42.53 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.235e-05/0.2171, allocations: 105.4 kB / 402.3 MB, free: 42.42 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.62e-05/0.2172, allocations: 14.02 kB / 402.3 MB, free: 42.41 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001315/0.2173, allocations: 17.89 kB / 402.3 MB, free: 42.4 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.275e-05/0.2173, allocations: 18.62 kB / 402.3 MB, free: 42.39 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.277e-05/0.2174, allocations: 7.594 kB / 402.3 MB, free: 42.39 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002304/0.2176, allocations: 283.8 kB / 402.6 MB, free: 42.21 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2176, allocations: 0 / 402.6 MB, free: 42.21 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003277/0.218, allocations: 74.47 kB / 402.7 MB, free: 42.2 MB / 318.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.0008859/0.2188, allocations: 460.7 kB / 403.1 MB, free: 41.98 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003968/0.2193, allocations: 182.3 kB / 403.3 MB, free: 41.91 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.2193, allocations: 1.125 kB / 403.3 MB, free: 41.91 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001714/0.2194, allocations: 94.47 kB / 403.4 MB, free: 41.87 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003847/0.2198, allocations: 84.92 kB / 403.5 MB, free: 41.82 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006928/0.2205, allocations: 0.4919 MB / 404 MB, free: 41.49 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001761/0.2207, allocations: 0.7729 MB / 404.8 MB, free: 40.75 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001147/0.2208, allocations: 44.86 kB / 404.8 MB, free: 40.73 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.299e-05/0.2209, allocations: 35.52 kB / 404.8 MB, free: 40.72 MB / 318.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2209, allocations: 0 / 404.8 MB, free: 40.72 MB / 318.1 MB Notification: Performance of Templates: time 0.007446/0.2284, allocations: 4.476 MB / 409.3 MB, free: 38.01 MB / 318.1 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 -s gbode -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.pipe 2>&1)